Class: TimelineTool
Tool to applying styles to nodes based on date to play them over in Timeline
Extends
Constructors
new TimelineTool()
new TimelineTool(
cadModel
):TimelineTool
Parameters
• cadModel: CogniteCadModel
Returns
Overrides
Cognite3DViewerToolBase
.constructor
Defined in
packages/tools/src/Timeline/TimelineTool.ts:22
Methods
createKeyframe()
createKeyframe(
date
):Keyframe
Create Key frame for the Timeline
Parameters
• date: Date
date value by Date.now() since January 1, 1970
Returns
Defined in
packages/tools/src/Timeline/TimelineTool.ts:63
dispose()
dispose():
void
Disposes the element and triggeres the 'disposed' event before clearing the list of dipose-listeners.
Returns
void
Overrides
Cognite3DViewerToolBase
.dispose
Defined in
packages/tools/src/Timeline/TimelineTool.ts:185
getAllKeyframes()
getAllKeyframes():
Keyframe
[]
Provides all Keyframes in the Timeline
Returns
Keyframe
[]
All Keyframes in Timeline
Defined in
packages/tools/src/Timeline/TimelineTool.ts:181
getKeyframeByDate()
getKeyframeByDate(
date
):undefined
|Keyframe
Returns the keyframe at the date given, or undefined if not found.
Parameters
• date: Date
Returns
undefined
| Keyframe
Defined in
packages/tools/src/Timeline/TimelineTool.ts:76
off()
off(
event
,handler
):void
Unregisters an event handler for the 'disposed'-event.
Parameters
• event: "disposed"
• handler
Returns
void
Inherited from
Defined in
packages/tools/src/Cognite3DViewerToolBase.ts:38
pause()
pause():
void
Pause any ongoing playback
Returns
void
Defined in
packages/tools/src/Timeline/TimelineTool.ts:162
play()
play(
startDate
,endDate
,totalDurationInMilliSeconds
):void
Starts playback of Timeline
Parameters
• startDate: Date
Keyframe date to start the Playback of Keyframes
• endDate: Date
Keyframe date to stop the Playback of Keyframes