Options
All
  • Public
  • Public/Protected
  • All
Menu
class

Tile backend

Hierarchy

Index

Constructors

constructor

Properties

_gl

_gl: WebGLRenderingContext

_options

_options: DisplayOptions

_program

_program: WebGLProgram

_uniforms

_uniforms: object

Type declaration

  • [key: string]: WebGLUniformLocation | null

Methods

_initWebGL

  • _initWebGL(): WebGLRenderingContext

_normalizedEventToPosition

  • _normalizedEventToPosition(x: number, y: number): [number, number]

_updateSize

  • _updateSize(): void

_updateTexture

  • _updateTexture(tileSet: HTMLImageElement): void

clear

  • clear(): void

computeFontSize

  • computeFontSize(): number

computeSize

  • computeSize(availWidth: number, availHeight: number): [number, number]

draw

eventToPosition

  • eventToPosition(x: number, y: number): [number, number]

getContainer

  • getContainer(): HTMLCanvasElement

schedule

  • schedule(cb: function): void

setOptions

Static isSupported

  • isSupported(): boolean

Generated using TypeDoc