Action

Action

Refer to DALS.Timeline for the encapsulating element, as DALS.Action is stored after the head state ([0]) of a DALS.Timeline .value.

Represents a state mutation that changes the head state, from which a new relative state can be computed.

Constructor:
Instance:
  • .id=Class.generateRandomID(DALS.Action): string
  • .options: Object - Reference variable to json.options.
  • .key: string
  • .name="New Action": string - Reference variable to json.options.name.
  • .timeline: string
  • .value: Object - The parsed JSON object contained within the object.
Methods:
  • delete(arg0_options:{ removed_from_timeline:boolean }) - Deletes the present action and removes it from the associated timeline.
  • jumpTo() - Forces program state to jump to the present action.
  • toJSON() | Object - Returns the JSON object of the current Action.
Static Fields:
Static Methods:

Constructor

new Action()

Source:

Members

instances :Array.<DALS.Action>

Source:
Type:

Methods

delete(arg0_optionsopt)

Deletes the present action and removes it from the associated timeline.

Source:
Parameters:
Name Type Attributes Description
arg0_options Object <optional>
Name Type Attributes Default Description
removed_from_timeline boolean <optional>
false

jumpTo()

Forces the current program state to jump to this DALS.Action.

Source:

toJSON() → {Object}

Returns the JSON object of the current Action.

Source:
Returns:
Type:
Object

(static) fromJSON(arg0_json) → {DALS.Action}

Creates a new Action from a JSON Object and assigns it to the timeline needed.

Source:
Parameters:
Name Type Description
arg0_json Object | string
Returns:
Type:
DALS.Action