Functions
node
- node(config: IConfig): { DOMParser: DOMParser; createCanvas: (width: number, height: number) => any; createImage: (src: string) => Promise<any>; fetch: Fetch; ignoreAnimation: boolean; ignoreMouse: boolean; window: any }
Parameters
Returns { DOMParser: DOMParser; createCanvas: (width: number, height: number) => any; createImage: (src: string) => Promise<any>; fetch: Fetch; ignoreAnimation: boolean; ignoreMouse: boolean; window: any }
DOMParser: DOMParser
createCanvas: (width: number, height: number) => any
- (width: number, height: number): any
Parameters
width: number
height: number
Returns any
createImage: (src: string) => Promise<any>
- (src: string): Promise<any>
Parameters
Returns Promise<any>
fetch: Fetch
ignoreAnimation: boolean
ignoreMouse: boolean
window: any
offscreen
- offscreen(config?: IConfig): { DOMParser: DOMParser; ignoreAnimation: boolean; ignoreMouse: boolean; window: any; createCanvas: any; createImage: any }
Parameters
Returns { DOMParser: DOMParser; ignoreAnimation: boolean; ignoreMouse: boolean; window: any; createCanvas: any; createImage: any }
DOMParser: DOMParser
ignoreAnimation: boolean
ignoreMouse: boolean
window: any
createCanvas:function
- createCanvas(width: number, height: number): OffscreenCanvas
Parameters
width: number
height: number
Returns OffscreenCanvas
createImage:function
- createImage(url: string): Promise<ImageBitmap>
Parameters
Returns Promise<ImageBitmap>
Options preset for
node-canvas
.