Callback interface for instances that can create bends for an edge and graph.
Inheritance Hierarchy
IBendCreator
Remarks
Implementations of this interface may be found in the lookup of IEdge instances. This interface is used by GraphEditorInputMode to create new bends for an edge as soon as the user performs the bend creation gesture.
Type Details
- yFiles module
- view
See Also
Methods
Creates a bend at the position supplied at the given graph for the edge whose lookup provided this creator.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The context for which the bend should be created.
- graph - IGraph
- The graph, the edge belongs to.
- location - Point
- The preferred coordinates of the bend.
Returns
- ↪number
- The index of the bend in the edge's bends or
-1
if no bend has been created.
Constants
A static instance that does not create any bends.