Module: PhysicalAction

Physical action is a function which returns a function that gets called with the target element and an array of mapped behaviour names.
Parameters:
Name Type Description
firebolt Firebolt Instance of firebolt.
Properties
Name Type Description
context VisualUnit Instance of visual unit attached with the firebolt.
Source:
Returns:
Function which dispatches the behavioural action on event trigger.
Type
PhysicalActionInitializer

Methods

(inner) PhysicalActionInitializer(targetEl, behaviours)

This function binds the dom event to the target element and dispatches the behaviours with a payload which contains the criteria.
Parameters:
Name Type Description
targetEl D3Selection d3 selection of the target element.
behaviours Array Array of behaviours.
Source: