Class CanvasRenderer

A renderer for a HTMLCanvasElement.

Attach an instance of a BitmapGenerator with a attach method.

Hierarchy

Implements

Constructors

Properties

bitmapHandler: ((event: CustomEvent<any>) => void)

Type declaration

    • (event: CustomEvent<any>): void
    • Parameters

      • event: CustomEvent<any>

      Returns void

ctx: CanvasRenderingContext2D

The rendering context of a target canvas.

generator: BitmapGenerator

The attached bitmap generator.

height: number

Target image height in pixels.

isAnimating: boolean

Animation state.

readyHandler: (() => void)

Type declaration

    • (): void
    • Returns void

spool: BitmapDetail[]
target: HTMLCanvasElement

The target canvas.

width: number

Target image width in pixels.

Methods