Hierarchy

  • GlobalCanvas

Constructors

Methods

  • Parameters

    • width: number = DEFAULT_CANVAS_SIZE
    • height: number = DEFAULT_CANVAS_SIZE

    Returns void

Accessors

  • get canvas(): null | HTMLCanvasElement | OffscreenCanvas
  • Returns null | HTMLCanvasElement | OffscreenCanvas

Properties

_canvas: null | HTMLCanvasElement | OffscreenCanvas = null
_glContext: null | BackendContext = null
width: number = DEFAULT_CANVAS_SIZE
height: number = DEFAULT_CANVAS_SIZE
retainCount: number = 0

Generated using TypeDoc