AnimationControls
Animation controls
Constructor Summary
Public Constructor | ||
public |
constructor(stage: Stage) Create animation controls |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public get |
True when all animations are paused |
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
Add an animation |
|
public |
Clear all animations |
|
public |
dispose() |
|
public |
move(moveTo: Vector3, duration: Number): MoveAnimation Add a move animation |
|
public |
moveComponent(component: Component, moveTo: Vector3, duration: Number): MoveAnimation Add a component move animation |
|
public |
orient(orientTo: OrientationMatrix | Array, duration: Number): Array Add an orient animation |
|
public |
Pause all animations |
|
public |
Remove an animation |
|
public |
Resume all animations |
|
public |
Add a rock animation |
|
public |
rockComponent(component: Component, axis: Vector3, angle: Number, end: Number, duration: Number): SpinAnimation Add a component rock animation |
|
public |
rotate(rotateTo: Quaternion, duration: Number): RotateAnimation Add a rotate animation |
|
public |
Run all animations |
|
public |
spin(axis: Vector3, angle: Number, duration: Number): SpinAnimation Add a spin animation |
|
public |
spinComponent(component: Component, axis: Vector3, angle: Number, duration: Number): SpinAnimation Add a component spin animation |
|
public |
timeout(callback: Function, duration: Number): TimeoutAnimation Add a timeout animation |
|
public |
Toggle all animations |
|
public |
Add a value animation |
|
public |
zoom(zoomTo: Number, duration: Number): ZoomAnimation Add a zoom animation |
|
public |
Add a zoom and a move animation |
Public Constructors
Public Members
public animationList source
public controls source
public finishedList source
public stage source
public viewer source
Public Methods
public add(animation: Animation): Animation source
Add an animation
Params:
Name | Type | Attribute | Description |
animation | Animation | the animation |
public dispose() source
public moveComponent(component: Component, moveTo: Vector3, duration: Number): MoveAnimation source
Add a component move animation
public orient(orientTo: OrientationMatrix | Array, duration: Number): Array source
Add an orient animation
Params:
Name | Type | Attribute | Description |
orientTo | OrientationMatrix | Array | target orientation |
|
duration | Number | animation time in milliseconds |
public remove(animation: Animation): undefined source
Remove an animation
Params:
Name | Type | Attribute | Description |
animation | Animation | the animation |
public rock(axis: Vector3, angle: Number, end: Number, duration: Number): SpinAnimation source
Add a rock animation
public rockComponent(component: Component, axis: Vector3, angle: Number, end: Number, duration: Number): SpinAnimation source
Add a component rock animation
public rotate(rotateTo: Quaternion, duration: Number): RotateAnimation source
Add a rotate animation
Params:
Name | Type | Attribute | Description |
rotateTo | Quaternion | target rotation |
|
duration | Number | animation time in milliseconds |
public run(stats: Stats): undefined source
Run all animations
Params:
Name | Type | Attribute | Description |
stats | Stats | a viewer stats objects |
public spin(axis: Vector3, angle: Number, duration: Number): SpinAnimation source
Add a spin animation
public spinComponent(component: Component, axis: Vector3, angle: Number, duration: Number): SpinAnimation source
Add a component spin animation
public timeout(callback: Function, duration: Number): TimeoutAnimation source
Add a timeout animation
public value(valueFrom: Number, valueTo: Number, callback: Function, duration: Number): ValueAnimation source
Add a value animation