Members
Methods
addAction(arg0_json, arg1_optionsopt) → {DALS.Action}
Adds a given action to the current timeline and immediately parses it by default.
- Method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_json |
Object
|
string
|
||||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
- Type:
-
DALS.Action
assignChildTimelines()
Assigns the .child_timelines field for the present timeline by looking for any attached DALS.Timeline instances.
- Method of: DALS.Timeline
- Source:
branch(arg0_optionsopt) → {DALS.Timeline}
Branches off a new timeline from the current timeline. If the current timeline is not selected, the branch node is automatically placed at the end of the timeline.
- Method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
{} |
Refer to DALS.Timeline.options for information on what options are acceptable. |
Returns:
- Type:
-
DALS.Timeline
generateFlippedGraph() → {Object}
Flips a generated graph from generateGraph() by switching the .x/.y coordinates of each node.
- Method of: DALS.Timeline
- Source:
Returns:
- Type:
-
Object
generateGraph(arg0_options) → {Object}
Generates a timeline graph starting from the current DALS.Timeline instance with plotted .x/.y fields for node positions. Used in ve.Component.UndoRedo for rendering canvas displays.
- Method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_options |
Object
|
Returns:
- Type:
-
Object
getGroups() → {Array.<Array.<DALS.Action>>}
Groups together actions with the same .key field to avoid their duplication and returns the grouped .value of the present timeline acoordingly.
- Method of: DALS.Timeline
- Source:
Returns:
- Type:
-
Array.<Array.<DALS.Action>>
getTimelineWidth() → {number}
Returns the width of the present timeline, accounting for any .child_timelines that may exist.
- Method of: DALS.Timeline
- Source:
Returns:
- Type:
-
number
jumpToAction(arg0_action_id)
Jumps to a specific action ID in the timeline, starting from its head, utilising .parseAction()
- Method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_action_id |
number
|
string
|
removeAction(arg0_action_id)
Removes an action from the timeline based upon its ID.
- Method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_action_id |
string
|
(static) generateGraph() → {Object}
Generates a global timeline graph from the root DALS.Timeline.initial_timeline.
- Static method of: DALS.Timeline
- Source:
Returns:
- Type:
-
Object
(static) getGraphMaxX(arg0_graph) → {number}
Returns the max .x value from a given graph from DALS.Timeline.generateGraph() to assess its dimensions.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_graph |
Object
|
Returns:
- Type:
-
number
(static) getGraphMaxY(arg0_graph) → {number}
Returns the max .y value from a given graph from DALS.Timeline.generateGraph() to assess its dimensions.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_graph |
Object
|
Returns:
- Type:
-
number
(static) getTimeline(arg0_timeline_id) → {DALS.Timeline}
Returns a DALS.Timeline object based upon a timeline ID string.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_timeline_id |
Object
|
string
|
Returns:
- Type:
-
DALS.Timeline
(static) jumpToTimeline(arg0_timeline_id)
Jumps to the start of a timeline based off its ID.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_timeline_id |
DALS.Timeline
|
string
|
(static) load(arg0_file_path)
Loads in a new state based upon the JSON data contained at a file path.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_path |
string
|
(static) loadState(arg0_json)
Loads the current state for DALS/ve.UndoRedo. Contract function.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_json |
Object
|
string
|
(static) parseAction(arg0_jsonopt)
Parses an action for DALS/ve.UndoRedo. Contract function.
- Source:
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_json |
Object
|
string
|
<optional> |
|
(static) redo() → {number}
Redoes an action group in the current timeline. Returns the jumped to index.
- Static method of: DALS.Timeline
- Source:
Returns:
- Type:
-
number
(static) save(arg0_file_path)
Saves the present state as JSON to a new file path.
- Static method of: DALS.Timeline
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_path |
string
|
(static) saveState() → {Object}
Saves the current state for DALS/ve.UndoRedo. Contract function.
- Source:
Returns:
- Type:
-
Object
(static) undo() → {number}
Undoes an action group in the current timeline. Returns the jumped to index.
- Static method of: DALS.Timeline
- Source:
Returns:
- Type:
-
number