Skip to main content

Namespace: presets

Functions​

node​

â–¸ node(config): Object

Options preset for node-canvas.

Parameters​

NameTypeDescription
configIConfigPreset requirements.

Returns​

Object

Preset object.

NameType
windowany
ignoreAnimationboolean
ignoreMouseboolean
DOMParserDOMParser
fetchFetch
createCanvas(width: number, height: number) => any
createImage(src: string) => Promise<any>

Defined in​

src/presets/node.ts:40


offscreen​

â–¸ offscreen(config?): Object

Options preset for OffscreenCanvas.

Parameters​

NameTypeDescription
configIConfigPreset requirements.

Returns​

Object

Preset object.

NameType
windowany
ignoreAnimationboolean
ignoreMouseboolean
DOMParserDOMParser
createCanvas(width: number, height: number) => OffscreenCanvas
createImage(url: string) => Promise<ImageBitmap>

Defined in​

src/presets/offscreen.ts:16