Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewerControls

Viewer controls

Hierarchy

  • ViewerControls

Index

Constructors

constructor

Properties

stage

stage: Stage

the stage object

viewer

viewer: Viewer

Accessors

position

  • get position(): Vector3

rotation

  • get rotation(): Quaternion

Methods

align

  • align(basis: Matrix4 | number[]): void

applyMatrix

  • applyMatrix(matrix: Matrix4 | number[]): void

center

  • center(position: Vector3 | number[]): void

changed

  • changed(): void

distance

  • distance(z: number): void

getCanvasScaleFactor

  • getCanvasScaleFactor(z?: number): number

getOrientation

  • getOrientation(optionalTarget?: Matrix4): any

getPositionOnCanvas

  • getPositionOnCanvas(position: Vector3, optionalTarget?: Vector2): any

orient

  • orient(orientation?: Matrix4): void

rotate

  • rotate(quaternion: Quaternion | number[]): void

spin

  • spin(axis: Vector3 | number[], angle: number): void

translate

  • translate(vector: Vector3 | number[]): void

zoom

  • zoom(delta: number): void

Object literals

signals

signals: object

changed

changed: Signal<T> = new Signal()

Generated using TypeDoc