Menu

Class UniversalCanvas

Hierarchy

  • UniversalCanvas

Implements

  • CanvasInterface

Index

Constructors

constructor

Properties

dstHeight

dstHeight: number

Backing canvas height (real pixels) Note that this factors in device pixel ratio, so it may not reflect the size of the canvas in CSS pixels

dstWidth

dstWidth: number

Backing canvas width (real pixels) Note that this factors in device pixel ratio, so it may not reflect the size of the canvas in CSS pixels

frameIndex

frameIndex: number

height

height: number

View height (CSS pixels)

isHtml5

isHtml5: boolean = false

isReady

isReady: boolean = false

note

renderer

renderer: CanvasInterface

srcHeight

srcHeight: number

srcWidth

srcWidth: number

stereoscopeMode

stereoscopeMode: CanvasStereoscopicMode = CanvasStereoscopicMode.None

stereoscopeStrength

stereoscopeStrength: number = 1

supportedStereoscopeModes

supportedStereoscopeModes: CanvasStereoscopicMode[] = []

width

width: number

View width (CSS pixels)

Methods

clear

  • clear(color?: [number, number, number, number]): void

destroy

  • destroy(): void

drawFrame

  • drawFrame(frameIndex: number): void

fallbackIfPossible

  • fallbackIfPossible(): void

forceUpdate

  • forceUpdate(): void

getBlob

  • getBlob(type?: string, quality?: any): Promise<Blob>

getDataUrl

  • getDataUrl(type?: string, quality?: any): string

requestStereoScopeMode

setCanvasSize

  • setCanvasSize(width: number, height: number): void

setNote

switchToHtml5

  • switchToHtml5(): void