Interface that is used by the GraphSnapContext for port to collect a number of SnapResults during the move/edit operation.
Inheritance Hierarchy
Remarks
See Also
Members
No filters for this type
Methods
Called when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
Called when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
abstract
Parameters
- context: GraphSnapContext
- The snap context which manages the snap lines and the settings.
- evt: CollectSnapResultsEventArgs
- The event argument to obtain the necessary information from and add results to.
- suggestedLocation: Point
- The location of the bend if the bend would not snap.
- port: IPort
- The port that is being moved
Static Methods
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort): void): IPortSnapResultProviderstaticCreates an implementation of the interface IPortSnapResultProvider by using the given function as implementation for its collectSnapResults method.
create
(collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort): void): IPortSnapResultProviderstatic
Creates an implementation of the interface IPortSnapResultProvider by using the given function as implementation for its collectSnapResults method.
static
Parameters
- collectSnapResults: function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort): void
- A function for IPortSnapResultProvider's single abstract method collectSnapResults.
Return Value
- IPortSnapResultProvider
- An instance of the IPortSnapResultProvider interface based on the given function.