Type.
Listener.
Add a feature to the collection of features that we may snap to.
Feature.
Whether to listen to the feature change or not
Defaults to true
.
Increases the revision counter and dispatches a 'change' event.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Clean up.
Gets a value.
Key name.
Value.
Return whether the interaction is currently active.
true
if the interaction is active, false
otherwise.
Get a list of object property names.
List of property names.
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Type.
Listeners.
Get the map associated with this interaction.
Map.
Get an object of all property names and values.
Object.
Get the version number for this object. Each time the object is modified, its version number will be incremented.
Revision.
Type. If not provided,
true
will be returned if this event target has any listeners.
Has listeners.
Key name.
Old value.
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
Type.
Listener.
Remove a feature from the collection of features that we may snap to.
Feature
Whether to unlisten to the feature change
or not. Defaults to true
.
Sets a value.
Key name.
Value.
Update without triggering an event.
Activate or deactivate the interaction.
Active.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Update without triggering an event.
Pixel
Coordinate
Map.
Snap result
This function is used to determine if "down" events should be propagated to other interactions or should be stopped.
Was the event handled by the interaction?
Should the down
event be stopped?
Unlisten for a certain type of event.
The event type or array of event types.
The listener function.
Unsets a property.
Key name.
Unset without triggering an event.
Generated using TypeDoc