NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import KeyActions from 'ngl/src/controls/key-actions.js'
public class | source

KeyActions

Key actions provided as static methods

Static Method Summary

Static Public Methods
public static

Stage auto view

public static

Toggle stage animations

public static

Toggle stage rocking

public static

Toggle stage spinning

Static Public Methods

public static autoView(stage: Stage): undefined source

Stage auto view

Params:

NameTypeAttributeDescription
stage Stage

the stage

Return:

undefined

public static toggleAnimations(stage: Stage): undefined source

Toggle stage animations

Params:

NameTypeAttributeDescription
stage Stage

the stage

Return:

undefined

public static toggleRock(stage: Stage): undefined source

Toggle stage rocking

Params:

NameTypeAttributeDescription
stage Stage

the stage

Return:

undefined

public static toggleSpin(stage: Stage): undefined source

Toggle stage spinning

Params:

NameTypeAttributeDescription
stage Stage

the stage

Return:

undefined