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

Rectangular backend

Hierarchy

Index

Constructors

constructor

Properties

_canvasCache

_canvasCache: object

Type declaration

  • [key: string]: HTMLCanvasElement

_ctx

_ctx: CanvasRenderingContext2D

_options

_options: DisplayOptions

_spacingX

_spacingX: number

_spacingY

_spacingY: number

Static cache

cache: boolean = false

Methods

_drawNoCache

  • _drawNoCache(data: DisplayData, clearBefore: boolean): void

_drawWithCache

_normalizedEventToPosition

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

_updateSize

  • _updateSize(): void

clear

  • clear(): void

computeFontSize

  • computeFontSize(availWidth: number, availHeight: number): 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

Generated using TypeDoc