Interface that can be used to find bends at specific locations in the canvas.
Inheritance Hierarchy
IBendSelectionTester
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IBendSelectionTester
Methods
Returns the bends within the given rectangle.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context to use for querying the position.
- rectangle - Rect
- A rectangle in world coordinates.
Returns
- ↪IEnumerable<IBend>
- The bends inside of
rectangle
.
Returns the bend at the given world coordinate position.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context to use for querying the position.
- location - Point
- A location in world coordinates.
Returns
- ↪IBend
- The bend at the position or
null
if there is no bend.
Static Methods
Creates an implementation of the interface IBendSelectionTester from the given definition.
Remarks
The given object must contain exactly the abstract members of the IBendSelectionTester interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getHitBend - function(IInputModeContext, Point):IBend
Returns the bend at the given world coordinate position.
This property holds the implementation for getHitBend.
- getBendsInBox - function(IInputModeContext, Rect):IEnumerable<IBend>
Returns the bends within the given rectangle.
This property holds the implementation for getBendsInBox.
Returns
- ↪IBendSelectionTester
- An instance of the IBendSelectionTester interface based on the given definition.