Provides the snap results to the GraphSnapContext during dragging of labels.
Inheritance Hierarchy
ILabelSnapResultProvider
Remarks
Type Details
- yFiles module
- view
See Also
Methods
collectSnapResults
(context: GraphSnapContext, evt: CollectSnapResultsEventArgs, suggestedLayout: IOrientedRectangle, label: ILabel)Called when the given label
is dragged to add SnapResults for the SnapReferences provided by the context
.
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 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.