Interface for an implementation which evaluates a list of given SnapLines for a node which is resized and adds a set of SnapResults for sizes to which this node can potentially snap.
Inheritance Hierarchy
INodeReshapeSnapResultProvider
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.INodeReshapeSnapResultProvider
Methods
collectSnapResults
(context: GraphSnapContext, evt: CollectSnapResultsEventArgs, node: INode, reshapeContext: ReshapeRectangleContext)Called when a node's handle is dragged to add SnapResults for OrthogonalSnapLines or sizes to which this node can potentially snap during resizing.
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 context from and add the results to.
- node - INode
- The node that is being reshaped.
- reshapeContext - ReshapeRectangleContext
- Carries information about the reshape operation.
Static Methods
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext):void) : INodeReshapeSnapResultProviderCreates an implementation of the interface INodeReshapeSnapResultProvider 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, INode, ReshapeRectangleContext):void
- A function for INodeReshapeSnapResultProvider's single abstract method collectSnapResults.
Returns
- ↪INodeReshapeSnapResultProvider
- An instance of the INodeReshapeSnapResultProvider interface based on the given function.