Interface that is used to test whether a rendered item is deemed to be inside a lasso selection path.
Inheritance Hierarchy
ILassoTestable
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.ILassoTestable
See Also
Methods
Returns true
if the corresponding item is considered to intersect the given path.
Remarks
This method may return false
if the item cannot be selected using a lasso selection or optionally if the item is only partially contained within the path.
Implementations should respect the hitTestRadius if lasso selections should behave differently on different zoom levels.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- the current input mode context
- lassoPath - GeneralPath
- the path describing the lasso selection bounds
Returns
- ↪boolean
true
if the item is considered to be captured by the lasso
Static Methods
Creates an implementation of the interface ILassoTestable by using the given function as implementation for its isInPath method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- isInPath - function(IInputModeContext, GeneralPath):boolean
- A function for ILassoTestable's single abstract method isInPath.
Returns
- ↪ILassoTestable
- An instance of the ILassoTestable interface based on the given function.