An interface that checks for containment of an IBend in 2D coordinate space.
Inheritance Hierarchy
IContainsBendTester
Remarks
This interface is used to determine which bends of edges that connect child nodes are moved when the parent node is moved. Therefore, special care has to be taken if you want to provide this interface in the node lookup for other purposes, as this can also affect implicit bend movement.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IContainsBendTester
Methods
Determines whether the provided bend
is deemed to lie within the shape this test is implemented for.
Remarks
This method is used to determine which bends of edges that connect child nodes are moved when the parent node is moved. If an implementation of IContainsBendTester is present in the node's lookup, this method is called with the bend and the bend will be moved together with the parent node iff
true
is returned. If no implementation is provided, only bends that lie inside the bounds of the parent node are moved.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.
- bend - IBend
- The bend to test
Returns
- ↪boolean
true
iff the bend is contained within the shape.