The IBendCreator which is used by default to create bends interactively.
Remarks
This implementation can handle orthogonal edge segments.
An instance of this class can be found in the lookup of an edge, e.g. It is used used during the interactive creation of bends.
Type Details
- yfiles module
- view-editor
- yfiles-umd modules
- view-editor, view-table, view
- Legacy UMD name
- yfiles.input.DefaultBendCreator
Methods
Creates a bend at the given graph for the given edge at the position supplied.
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.
- edge - IEdge
- The edge.
- location - Point
- The preferred coordinates of the bend.
Returns
- ↪number
- The index of the bend in the edges' bends or
-1
if no bend has been created.