UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

30 lines (29 loc) 750 B
export class BaseCanvasFactory { constructor({ enableHWA }: { enableHWA?: boolean | undefined; }); create(width: any, height: any): { canvas: void; context: any; }; reset({ canvas }: { canvas: any; }, width: any, height: any): void; destroy(canvasAndContext: any): void; /** * @ignore */ _createCanvas(width: any, height: any): void; #private; } export class DOMCanvasFactory extends BaseCanvasFactory { constructor({ ownerDocument, enableHWA }: { ownerDocument?: Document | undefined; enableHWA?: boolean | undefined; }); _document: Document; /** * @ignore */ _createCanvas(width: any, height: any): HTMLCanvasElement; }