I

INodeReshapeSnapResultProvider

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

Members

No filters for this type

Methods

Called when a node's handle is dragged to add SnapResults for OrthogonalSnapLines or sizes to which this node can potentially snap during resizing.
abstract

Parameters

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

Creates an implementation of the interface INodeReshapeSnapResultProvider by using the given function as implementation for its collectSnapResults method.
static

Parameters

collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext): void
A function for INodeReshapeSnapResultProvider's single abstract method collectSnapResults.

Return Value

INodeReshapeSnapResultProvider
An instance of the INodeReshapeSnapResultProvider interface based on the given function.