new Interaction(evt, reacts)
Create an Interaction object.
Parameters:
Name | Type | Description |
---|---|---|
evt |
UserEvent | The event that will trigger reactions. It can be either a SelectEvent or a InputEvent object. |
reacts |
Reaction[] | Array of the Reaction object that will be triggered by the event. |
Example
var i1 = new WIND.Interaction(e, new Array(react11,react12,react13,react14,react15,react16));
Methods
-
activate()
-
Activate the interaction.
Example
var i1 = new WIND.Interaction(e, new Array(react11,react12,react13,react14,react15,react16)); i1.activate();
-
addReaction(react)
-
Add a reaction object to the Interaction.
Parameters:
Name Type Description react
WIND.SystemReaction[] The reaction we want to add to the reaction. It can be either an InternalReaction or ExternalReaction object. Example
var i1 = new WIND.Interaction(e, new Array(react11,react12,react13,react14,react15,react16)); var react17 = new WIND.ExternalReaction(annot, "zoom"); i1.addReaction(react17);