I

ILabelSnapResultProvider

Provides the snap results to the GraphSnapContext during dragging of labels.
Inheritance Hierarchy

Remarks

This interface is queried from the ILookup of the INodes that are being moved during the edit.

See Also

API

GraphSnapContext, snapResultProvider

Members

No filters for this type

Methods

Called when the given label is dragged to add SnapResults for the SnapReferences provided by the context.
abstract

Parameters

context: GraphSnapContext
The snap context which manages the snap references and the settings.
evt: CollectSnapResultsEventArgs
The event argument to obtain the necessary information from and add results to.
suggestedLayout: IOrientedRectangle
The layout of the label that would be used without snapping.
label: ILabel
The label that is dragged.

Static Methods

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

Parameters

collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel): void
A function for ILabelSnapResultProvider's single abstract method collectSnapResults.

Return Value

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