Queried by the GraphSnapContext to add SnapReferences to its collections during the initialization phase.
Inheritance Hierarchy
Remarks
Implementations of this interface are queried by GraphSnapContext for each item that is not modified during the edit using the lookup of the respective item.
See Also
Members
No filters for this type
Methods
Called by the GraphSnapContext when a drag is about to start.
Called by the GraphSnapContext when a drag is about to start.
abstract
Parameters
- context: GraphSnapContext
- The context which holds the settings for the snap lines. Note that implementations should not change the state of the context explicitly.
- evt: CollectSnapReferencesEventArgs
- The argument to use for adding snap references.
Static Methods
create
(addSnapReferences: function(GraphSnapContext, CollectSnapReferencesEventArgs): void): ISnapReferenceProviderstaticCreates an implementation of the interface ISnapReferenceProvider by using the given function as implementation for its addSnapReferences method.
create
(addSnapReferences: function(GraphSnapContext, CollectSnapReferencesEventArgs): void): ISnapReferenceProviderstatic
Creates an implementation of the interface ISnapReferenceProvider by using the given function as implementation for its addSnapReferences method.
static
Parameters
- addSnapReferences: function(GraphSnapContext, CollectSnapReferencesEventArgs): void
- A function for ISnapReferenceProvider's single abstract method addSnapReferences.
Return Value
- ISnapReferenceProvider
- An instance of the ISnapReferenceProvider interface based on the given function.