Provides the snap results to the GraphSnapContext during dragging of labels.
Inheritance Hierarchy
Remarks
See Also
Members
No filters for this type
Methods
Called when the given label is dragged to add SnapResults for the SnapReferences provided by the context.
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.
Implemented in
LabelSnapResultProvider.collectSnapResultsStatic Methods
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel): void): ILabelSnapResultProviderstaticCreates an implementation of the interface ILabelSnapResultProvider by using the given function as implementation for its collectSnapResults method.
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel): void): ILabelSnapResultProviderstatic
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.