Interface that is used by the GraphSnapContext for bends to collect a number of SnapResults during the move/edit operation.
Inheritance Hierarchy
IBendSnapResultProvider
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IBendSnapResultProvider
See Also
Methods
collectSnapResults
(context: GraphSnapContext, evt: CollectSnapResultsEventArgs, suggestedLocation: Point, bend: IBend)Called when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - GraphSnapContext
- The snap context which manages the snap lines and the settings.
- evt - CollectSnapResultsEventArgs
- The event argument to obtain the necessary information from and add results to.
- suggestedLocation - Point
- The location of the bend if the bend would not snap.
- bend - IBend
- The bend that is being moved.
Static Methods
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IBend):void) : IBendSnapResultProviderCreates an implementation of the interface IBendSnapResultProvider by using the given function as implementation for its collectSnapResults method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- collectSnapResults - function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IBend):void
- A function for IBendSnapResultProvider's single abstract method collectSnapResults.
Returns
- ↪IBendSnapResultProvider
- An instance of the IBendSnapResultProvider interface based on the given function.