Namespace: presets
Functions​
node​
â–¸ node(config
): Object
Options preset for node-canvas
.
Parameters​
Name | Type | Description |
---|---|---|
config | IConfig | Preset requirements. |
Returns​
Object
Preset object.
Name | Type |
---|---|
window | any |
ignoreAnimation | boolean |
ignoreMouse | boolean |
DOMParser | DOMParser |
fetch | Fetch |
createCanvas | (width : number , height : number ) => any |
createImage | (src : string ) => Promise <any > |
Defined in​
offscreen​
â–¸ offscreen(config?
): Object
Options preset for OffscreenCanvas
.
Parameters​
Name | Type | Description |
---|---|---|
config | IConfig | Preset requirements. |
Returns​
Object
Preset object.
Name | Type |
---|---|
window | any |
ignoreAnimation | boolean |
ignoreMouse | boolean |
DOMParser | DOMParser |
createCanvas | (width : number , height : number ) => OffscreenCanvas |
createImage | (url : string ) => Promise <ImageBitmap > |