NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import {SpinAnimation} from 'ngl/src/animation/animation.js'
public class | source

SpinAnimation

Extends:

Animation → SpinAnimation

Spin animation. Spin around an axis.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Private Methods
private

_init()

private

_tick()

Inherited Summary

From class Animation
public get

True when animation has finished

public get

True when animation is paused

public
public
public
public
public
public
public
public
private
private
private
public

Pause animation

public

resume(releaseHold: Boolean): undefined

Resume animation

public

then(callback: Function): Promise

Promise-like interface

public

tick()

public

Toggle animation

private abstract

init animation

private abstract

called on every tick

Public Constructors

public constructor() source

Override:

Animation#constructor

Public Members

public angle source

public axis source

Private Methods

private _init() source

init animation

Override:

Animation#_init

private _tick() source

called on every tick

Override:

Animation#_tick