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

static

Parameters

collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel): void

Return Value

ILabelSnapResultProvider