Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Animations

Index

Constructors

constructor

Methods

addZoom

  • addZoom(distance: number, duration: number, direction?: vec3): Promise<void>
  • Animates transition from the current view to target view

    Parameters

    • distance: number
    • duration: number

      Duration of the transition in milliseconds

    • Optional direction: vec3

    Returns Promise<void>

clear

  • clear(): void

startRotation

  • startRotation(): Promise<void>

stopRotation

  • stopRotation(): void

viewTo

  • viewTo(end: { height: number; mv: mat4 }, duration: number, easing?: EasingType): Promise<void>
  • Animates transition from the current view to target view. Animations are queued and execuded in sequence.

    Parameters

    • end: { height: number; mv: mat4 }

      Target model view matrix

      • height: number
      • mv: mat4
    • duration: number

      Duration of the transition in milliseconds

    • Default value easing: EasingType = EasingType.SINUS2

    Returns Promise<void>

Generated using TypeDoc