Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimationData

Hierarchy

  • AbstractTreeNodeData
    • AnimationData

Implements

Index

Constructors

  • Creates a custom data node.

    Parameters

    • name: string
    • tracks: IAnimationTrack[]
    • start: number
    • duration: number
    • Optional id: string

      the id

    • Optional version: string

    Returns AnimationData

Accessors

  • get animate(): boolean
  • get animationTime(): number
  • set animationTime(value: number): void
  • get convertedObject(): {}
  • set convertedObject(value: {}): void
  • The converted object of the tree node.

    Returns {}

    • [key: string]: unknown
  • The converted object of the tree node.

    Parameters

    • value: {}
      • [key: string]: unknown

    Returns void

  • get duration(): number
  • get id(): string
  • The ID of the tree node data.

    Returns string

  • get name(): string
  • get repeat(): boolean
  • set repeat(value: boolean): void
  • get reset(): boolean
  • set reset(value: boolean): void
  • get start(): number
  • get updateCallback(): null | ((newVersion: string, oldVersion: string) => void)
  • set updateCallback(value: null | ((newVersion: string, oldVersion: string) => void)): void
  • The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    Returns null | ((newVersion: string, oldVersion: string) => void)

  • The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    Parameters

    • value: null | ((newVersion: string, oldVersion: string) => void)

    Returns void

  • get updateCallbackConvertedObject(): null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
  • set updateCallbackConvertedObject(value: null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)): void
  • The update callback for the converted object of the tree node.

    Returns null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)

  • The update callback for the converted object of the tree node.

    Parameters

    • value: null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)

    Returns void

  • get version(): string
  • The version of the tree node data. If the version changes, the node data will be marked for an update. A version change can be triggered via updateVersion.

    Returns string

Methods

  • continueAnimation(): void
  • pauseAnimation(): void
  • startAnimation(): void
  • stopAnimation(): void
  • updateVersion(): void