Skip to main content

Type Alias: CanvasFactory

CanvasFactory = (width, height) => OffscreenCanvas

Defined in: src/lib/classes/Layer/index.ts:30

Creates the canvas that stores a layer's image data. Replaceable so tests can run without a real canvas.

Parameters​

width​

number

height​

number

Returns​

OffscreenCanvas