@divriots/pdfjs-dist 3.10.111-divriots2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODE_OF_CONDUCT.md +15 -0
- package/LICENSE +177 -0
- package/README.md +14 -0
- package/build/pdf.js +18009 -0
- package/build/pdf.js.map +1 -0
- package/build/pdf.min.js +22 -0
- package/build/pdf.sandbox.js +280 -0
- package/build/pdf.sandbox.js.map +1 -0
- package/build/pdf.sandbox.min.js +22 -0
- package/build/pdf.worker.entry.js +19 -0
- package/build/pdf.worker.js +57863 -0
- package/build/pdf.worker.js.map +1 -0
- package/build/pdf.worker.min.js +22 -0
- package/cmaps/78-EUC-H.bcmap +0 -0
- package/cmaps/78-EUC-V.bcmap +0 -0
- package/cmaps/78-H.bcmap +0 -0
- package/cmaps/78-RKSJ-H.bcmap +0 -0
- package/cmaps/78-RKSJ-V.bcmap +0 -0
- package/cmaps/78-V.bcmap +0 -0
- package/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-V.bcmap +0 -0
- package/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/cmaps/B5-H.bcmap +0 -0
- package/cmaps/B5-V.bcmap +0 -0
- package/cmaps/B5pc-H.bcmap +0 -0
- package/cmaps/B5pc-V.bcmap +0 -0
- package/cmaps/CNS-EUC-H.bcmap +0 -0
- package/cmaps/CNS-EUC-V.bcmap +0 -0
- package/cmaps/CNS1-H.bcmap +0 -0
- package/cmaps/CNS1-V.bcmap +0 -0
- package/cmaps/CNS2-H.bcmap +0 -0
- package/cmaps/CNS2-V.bcmap +3 -0
- package/cmaps/ETHK-B5-H.bcmap +0 -0
- package/cmaps/ETHK-B5-V.bcmap +0 -0
- package/cmaps/ETen-B5-H.bcmap +0 -0
- package/cmaps/ETen-B5-V.bcmap +0 -0
- package/cmaps/ETenms-B5-H.bcmap +3 -0
- package/cmaps/ETenms-B5-V.bcmap +0 -0
- package/cmaps/EUC-H.bcmap +0 -0
- package/cmaps/EUC-V.bcmap +0 -0
- package/cmaps/Ext-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/cmaps/Ext-V.bcmap +0 -0
- package/cmaps/GB-EUC-H.bcmap +0 -0
- package/cmaps/GB-EUC-V.bcmap +0 -0
- package/cmaps/GB-H.bcmap +4 -0
- package/cmaps/GB-V.bcmap +0 -0
- package/cmaps/GBK-EUC-H.bcmap +0 -0
- package/cmaps/GBK-EUC-V.bcmap +0 -0
- package/cmaps/GBK2K-H.bcmap +0 -0
- package/cmaps/GBK2K-V.bcmap +0 -0
- package/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/cmaps/GBT-EUC-H.bcmap +0 -0
- package/cmaps/GBT-EUC-V.bcmap +0 -0
- package/cmaps/GBT-H.bcmap +0 -0
- package/cmaps/GBT-V.bcmap +0 -0
- package/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/cmaps/H.bcmap +0 -0
- package/cmaps/HKdla-B5-H.bcmap +0 -0
- package/cmaps/HKdla-B5-V.bcmap +0 -0
- package/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/cmaps/HKm314-B5-H.bcmap +0 -0
- package/cmaps/HKm314-B5-V.bcmap +0 -0
- package/cmaps/HKm471-B5-H.bcmap +0 -0
- package/cmaps/HKm471-B5-V.bcmap +0 -0
- package/cmaps/HKscs-B5-H.bcmap +0 -0
- package/cmaps/HKscs-B5-V.bcmap +0 -0
- package/cmaps/Hankaku.bcmap +0 -0
- package/cmaps/Hiragana.bcmap +0 -0
- package/cmaps/KSC-EUC-H.bcmap +0 -0
- package/cmaps/KSC-EUC-V.bcmap +0 -0
- package/cmaps/KSC-H.bcmap +0 -0
- package/cmaps/KSC-Johab-H.bcmap +0 -0
- package/cmaps/KSC-Johab-V.bcmap +0 -0
- package/cmaps/KSC-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/cmaps/Katakana.bcmap +0 -0
- package/cmaps/LICENSE +36 -0
- package/cmaps/NWP-H.bcmap +0 -0
- package/cmaps/NWP-V.bcmap +0 -0
- package/cmaps/RKSJ-H.bcmap +0 -0
- package/cmaps/RKSJ-V.bcmap +0 -0
- package/cmaps/Roman.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/cmaps/V.bcmap +0 -0
- package/cmaps/WP-Symbol.bcmap +0 -0
- package/image_decoders/pdf.image_decoders.js +7490 -0
- package/image_decoders/pdf.image_decoders.js.map +1 -0
- package/image_decoders/pdf.image_decoders.min.js +22 -0
- package/legacy/build/pdf.d.ts +1 -0
- package/legacy/build/pdf.js +22941 -0
- package/legacy/build/pdf.js.map +1 -0
- package/legacy/build/pdf.min.js +22 -0
- package/legacy/build/pdf.sandbox.js +3274 -0
- package/legacy/build/pdf.sandbox.js.map +1 -0
- package/legacy/build/pdf.sandbox.min.js +22 -0
- package/legacy/build/pdf.worker.entry.js +19 -0
- package/legacy/build/pdf.worker.js +62058 -0
- package/legacy/build/pdf.worker.js.map +1 -0
- package/legacy/build/pdf.worker.min.js +22 -0
- package/legacy/image_decoders/pdf.image_decoders.js +10615 -0
- package/legacy/image_decoders/pdf.image_decoders.js.map +1 -0
- package/legacy/image_decoders/pdf.image_decoders.min.js +22 -0
- package/legacy/web/images/annotation-check.svg +11 -0
- package/legacy/web/images/annotation-comment.svg +16 -0
- package/legacy/web/images/annotation-help.svg +26 -0
- package/legacy/web/images/annotation-insert.svg +10 -0
- package/legacy/web/images/annotation-key.svg +11 -0
- package/legacy/web/images/annotation-newparagraph.svg +11 -0
- package/legacy/web/images/annotation-noicon.svg +7 -0
- package/legacy/web/images/annotation-note.svg +42 -0
- package/legacy/web/images/annotation-paperclip.svg +6 -0
- package/legacy/web/images/annotation-paragraph.svg +16 -0
- package/legacy/web/images/annotation-pushpin.svg +7 -0
- package/legacy/web/images/loading-icon.gif +0 -0
- package/legacy/web/pdf_viewer.css +1375 -0
- package/legacy/web/pdf_viewer.d.ts +1 -0
- package/legacy/web/pdf_viewer.js +10502 -0
- package/legacy/web/pdf_viewer.js.map +1 -0
- package/package.json +35 -0
- package/standard_fonts/FoxitDingbats.pfb +0 -0
- package/standard_fonts/FoxitFixed.pfb +0 -0
- package/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/standard_fonts/FoxitSerif.pfb +0 -0
- package/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/standard_fonts/FoxitSymbol.pfb +0 -0
- package/standard_fonts/LICENSE_FOXIT +27 -0
- package/standard_fonts/LICENSE_LIBERATION +102 -0
- package/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/types/external/webL10n/l10n.d.ts +0 -0
- package/types/src/display/annotation_layer.d.ts +203 -0
- package/types/src/display/annotation_storage.d.ts +89 -0
- package/types/src/display/api.d.ts +1592 -0
- package/types/src/display/base_factory.d.ts +54 -0
- package/types/src/display/canvas.d.ts +208 -0
- package/types/src/display/display_utils.d.ts +277 -0
- package/types/src/display/editor/annotation_editor_layer.d.ts +196 -0
- package/types/src/display/editor/editor.d.ts +325 -0
- package/types/src/display/editor/freetext.d.ts +72 -0
- package/types/src/display/editor/ink.d.ts +95 -0
- package/types/src/display/editor/stamp.d.ts +28 -0
- package/types/src/display/editor/tools.d.ts +349 -0
- package/types/src/display/font_loader.d.ts +43 -0
- package/types/src/display/metadata.d.ts +11 -0
- package/types/src/display/optional_content_config.d.ts +13 -0
- package/types/src/display/pattern_helper.d.ts +73 -0
- package/types/src/display/text_layer.d.ts +151 -0
- package/types/src/display/transport_stream.d.ts +68 -0
- package/types/src/display/worker_options.d.ts +27 -0
- package/types/src/display/xfa_layer.d.ts +46 -0
- package/types/src/display/xfa_text.d.ts +19 -0
- package/types/src/pdf.d.ts +62 -0
- package/types/src/shared/image_utils.d.ts +17 -0
- package/types/src/shared/message_handler.d.ts +43 -0
- package/types/src/shared/murmurhash3.d.ts +7 -0
- package/types/src/shared/scripting_utils.d.ts +16 -0
- package/types/src/shared/util.d.ts +398 -0
- package/types/web/annotation_editor_layer_builder.d.ts +50 -0
- package/types/web/annotation_layer_builder.d.ts +83 -0
- package/types/web/app_options.d.ts +14 -0
- package/types/web/download_manager.d.ts +14 -0
- package/types/web/event_utils.d.ts +75 -0
- package/types/web/generic_scripting.d.ts +8 -0
- package/types/web/genericl10n.d.ts +13 -0
- package/types/web/interfaces.d.ts +163 -0
- package/types/web/l10n_utils.d.ts +7 -0
- package/types/web/pdf_find_controller.d.ts +108 -0
- package/types/web/pdf_find_utils.d.ts +16 -0
- package/types/web/pdf_history.d.ts +168 -0
- package/types/web/pdf_link_service.d.ts +243 -0
- package/types/web/pdf_page_view.d.ts +209 -0
- package/types/web/pdf_rendering_queue.d.ts +53 -0
- package/types/web/pdf_scripting_manager.component.d.ts +5 -0
- package/types/web/pdf_scripting_manager.d.ts +61 -0
- package/types/web/pdf_single_page_viewer.d.ts +7 -0
- package/types/web/pdf_thumbnail_view.d.ts +131 -0
- package/types/web/pdf_thumbnail_viewer.d.ts +104 -0
- package/types/web/pdf_viewer.component.d.ts +24 -0
- package/types/web/pdf_viewer.d.ts +455 -0
- package/types/web/struct_tree_layer_builder.d.ts +7 -0
- package/types/web/text_accessibility.d.ts +42 -0
- package/types/web/text_highlighter.d.ts +63 -0
- package/types/web/text_layer_builder.d.ts +64 -0
- package/types/web/ui_utils.d.ts +288 -0
- package/types/web/xfa_layer_builder.d.ts +41 -0
- package/web/images/annotation-check.svg +11 -0
- package/web/images/annotation-comment.svg +16 -0
- package/web/images/annotation-help.svg +26 -0
- package/web/images/annotation-insert.svg +10 -0
- package/web/images/annotation-key.svg +11 -0
- package/web/images/annotation-newparagraph.svg +11 -0
- package/web/images/annotation-noicon.svg +7 -0
- package/web/images/annotation-note.svg +42 -0
- package/web/images/annotation-paperclip.svg +6 -0
- package/web/images/annotation-paragraph.svg +16 -0
- package/web/images/annotation-pushpin.svg +7 -0
- package/web/images/loading-icon.gif +0 -0
- package/web/pdf_viewer.css +1375 -0
- package/web/pdf_viewer.d.ts +1 -0
- package/web/pdf_viewer.js +7752 -0
- package/web/pdf_viewer.js.map +1 -0
- package/webpack.js +26 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export class BaseCanvasFactory {
|
|
2
|
+
create(width: any, height: any): {
|
|
3
|
+
canvas: void;
|
|
4
|
+
context: any;
|
|
5
|
+
};
|
|
6
|
+
reset(canvasAndContext: any, width: any, height: any): void;
|
|
7
|
+
destroy(canvasAndContext: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
_createCanvas(width: any, height: any): void;
|
|
12
|
+
}
|
|
13
|
+
export class BaseCMapReaderFactory {
|
|
14
|
+
constructor({ baseUrl, isCompressed }: {
|
|
15
|
+
baseUrl?: null | undefined;
|
|
16
|
+
isCompressed?: boolean | undefined;
|
|
17
|
+
});
|
|
18
|
+
baseUrl: any;
|
|
19
|
+
isCompressed: boolean;
|
|
20
|
+
fetch({ name }: {
|
|
21
|
+
name: any;
|
|
22
|
+
}): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* @ignore
|
|
25
|
+
*/
|
|
26
|
+
_fetchData(url: any, compressionType: any): void;
|
|
27
|
+
}
|
|
28
|
+
export class BaseFilterFactory {
|
|
29
|
+
addFilter(maps: any): string;
|
|
30
|
+
addHCMFilter(fgColor: any, bgColor: any): string;
|
|
31
|
+
addHighlightHCMFilter(fgColor: any, bgColor: any, newFgColor: any, newBgColor: any): string;
|
|
32
|
+
destroy(keepHCM?: boolean): void;
|
|
33
|
+
}
|
|
34
|
+
export class BaseStandardFontDataFactory {
|
|
35
|
+
constructor({ baseUrl }: {
|
|
36
|
+
baseUrl?: null | undefined;
|
|
37
|
+
});
|
|
38
|
+
baseUrl: any;
|
|
39
|
+
fetch({ filename }: {
|
|
40
|
+
filename: any;
|
|
41
|
+
}): Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
_fetchData(url: any): void;
|
|
46
|
+
}
|
|
47
|
+
export class BaseSVGFactory {
|
|
48
|
+
create(width: any, height: any, skipDimensions?: boolean): void;
|
|
49
|
+
createElement(type: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
_createSVG(type: any): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
export class CanvasGraphics {
|
|
2
|
+
constructor(canvasCtx: any, commonObjs: any, objs: any, canvasFactory: any, filterFactory: any, { optionalContentConfig, markedContentStack }: {
|
|
3
|
+
optionalContentConfig: any;
|
|
4
|
+
markedContentStack?: null | undefined;
|
|
5
|
+
}, annotationCanvasMap: any, pageColors: any);
|
|
6
|
+
ctx: any;
|
|
7
|
+
current: CanvasExtraState;
|
|
8
|
+
stateStack: any[];
|
|
9
|
+
pendingClip: {} | {} | null;
|
|
10
|
+
pendingEOFill: boolean;
|
|
11
|
+
res: any;
|
|
12
|
+
xobjs: any;
|
|
13
|
+
commonObjs: any;
|
|
14
|
+
objs: any;
|
|
15
|
+
canvasFactory: any;
|
|
16
|
+
filterFactory: any;
|
|
17
|
+
groupStack: any[];
|
|
18
|
+
processingType3: any;
|
|
19
|
+
baseTransform: any;
|
|
20
|
+
baseTransformStack: any[];
|
|
21
|
+
groupLevel: number;
|
|
22
|
+
smaskStack: any[];
|
|
23
|
+
smaskCounter: number;
|
|
24
|
+
tempSMask: any;
|
|
25
|
+
suspendedCtx: any;
|
|
26
|
+
contentVisible: boolean;
|
|
27
|
+
markedContentStack: never[];
|
|
28
|
+
optionalContentConfig: any;
|
|
29
|
+
cachedCanvases: CachedCanvases;
|
|
30
|
+
cachedPatterns: Map<any, any>;
|
|
31
|
+
annotationCanvasMap: any;
|
|
32
|
+
viewportScale: number;
|
|
33
|
+
outputScaleX: number;
|
|
34
|
+
outputScaleY: number;
|
|
35
|
+
pageColors: any;
|
|
36
|
+
_cachedScaleForStroking: number[];
|
|
37
|
+
_cachedGetSinglePixelWidth: number | null;
|
|
38
|
+
_cachedBitmapsMap: Map<any, any>;
|
|
39
|
+
getObject(data: any, fallback?: null): any;
|
|
40
|
+
beginDrawing({ transform, viewport, transparency, background, }: {
|
|
41
|
+
transform: any;
|
|
42
|
+
viewport: any;
|
|
43
|
+
transparency?: boolean | undefined;
|
|
44
|
+
background?: null | undefined;
|
|
45
|
+
}): void;
|
|
46
|
+
compositeCtx: any;
|
|
47
|
+
transparentCanvas: any;
|
|
48
|
+
executeOperatorList(operatorList: any, executionStartIdx: any, continueCallback: any, stepper: any): any;
|
|
49
|
+
endDrawing(): void;
|
|
50
|
+
_scaleImage(img: any, inverseTransform: any): {
|
|
51
|
+
img: any;
|
|
52
|
+
paintWidth: any;
|
|
53
|
+
paintHeight: any;
|
|
54
|
+
};
|
|
55
|
+
_createMaskCanvas(img: any): {
|
|
56
|
+
canvas: any;
|
|
57
|
+
offsetX: number;
|
|
58
|
+
offsetY: number;
|
|
59
|
+
};
|
|
60
|
+
setLineWidth(width: any): void;
|
|
61
|
+
setLineCap(style: any): void;
|
|
62
|
+
setLineJoin(style: any): void;
|
|
63
|
+
setMiterLimit(limit: any): void;
|
|
64
|
+
setDash(dashArray: any, dashPhase: any): void;
|
|
65
|
+
setRenderingIntent(intent: any): void;
|
|
66
|
+
setFlatness(flatness: any): void;
|
|
67
|
+
setGState(states: any): void;
|
|
68
|
+
get inSMaskMode(): boolean;
|
|
69
|
+
checkSMaskState(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Soft mask mode takes the current main drawing canvas and replaces it with
|
|
72
|
+
* a temporary canvas. Any drawing operations that happen on the temporary
|
|
73
|
+
* canvas need to be composed with the main canvas that was suspended (see
|
|
74
|
+
* `compose()`). The temporary canvas also duplicates many of its operations
|
|
75
|
+
* on the suspended canvas to keep them in sync, so that when the soft mask
|
|
76
|
+
* mode ends any clipping paths or transformations will still be active and in
|
|
77
|
+
* the right order on the canvas' graphics state stack.
|
|
78
|
+
*/
|
|
79
|
+
beginSMaskMode(): void;
|
|
80
|
+
endSMaskMode(): void;
|
|
81
|
+
compose(dirtyBox: any): void;
|
|
82
|
+
save(): void;
|
|
83
|
+
restore(): void;
|
|
84
|
+
transform(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
|
85
|
+
constructPath(ops: any, args: any, minMax: any): void;
|
|
86
|
+
closePath(): void;
|
|
87
|
+
stroke(consumePath?: boolean): void;
|
|
88
|
+
closeStroke(): void;
|
|
89
|
+
fill(consumePath?: boolean): void;
|
|
90
|
+
eoFill(): void;
|
|
91
|
+
fillStroke(): void;
|
|
92
|
+
eoFillStroke(): void;
|
|
93
|
+
closeFillStroke(): void;
|
|
94
|
+
closeEOFillStroke(): void;
|
|
95
|
+
endPath(): void;
|
|
96
|
+
clip(): void;
|
|
97
|
+
eoClip(): void;
|
|
98
|
+
beginText(): void;
|
|
99
|
+
endText(): void;
|
|
100
|
+
setCharSpacing(spacing: any): void;
|
|
101
|
+
setWordSpacing(spacing: any): void;
|
|
102
|
+
setHScale(scale: any): void;
|
|
103
|
+
setLeading(leading: any): void;
|
|
104
|
+
setFont(fontRefName: any, size: any): void;
|
|
105
|
+
setTextRenderingMode(mode: any): void;
|
|
106
|
+
setTextRise(rise: any): void;
|
|
107
|
+
moveText(x: any, y: any): void;
|
|
108
|
+
setLeadingMoveText(x: any, y: any): void;
|
|
109
|
+
setTextMatrix(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
|
110
|
+
nextLine(): void;
|
|
111
|
+
paintChar(character: any, x: any, y: any, patternTransform: any): void;
|
|
112
|
+
get isFontSubpixelAAEnabled(): any;
|
|
113
|
+
showText(glyphs: any): void;
|
|
114
|
+
showType3Text(glyphs: any): void;
|
|
115
|
+
setCharWidth(xWidth: any, yWidth: any): void;
|
|
116
|
+
setCharWidthAndBounds(xWidth: any, yWidth: any, llx: any, lly: any, urx: any, ury: any): void;
|
|
117
|
+
getColorN_Pattern(IR: any): any;
|
|
118
|
+
setStrokeColorN(...args: any[]): void;
|
|
119
|
+
setFillColorN(...args: any[]): void;
|
|
120
|
+
setStrokeRGBColor(r: any, g: any, b: any): void;
|
|
121
|
+
setFillRGBColor(r: any, g: any, b: any): void;
|
|
122
|
+
_getPattern(objId: any, matrix?: null): any;
|
|
123
|
+
shadingFill(objId: any): void;
|
|
124
|
+
beginInlineImage(): void;
|
|
125
|
+
beginImageData(): void;
|
|
126
|
+
paintFormXObjectBegin(matrix: any, bbox: any): void;
|
|
127
|
+
paintFormXObjectEnd(): void;
|
|
128
|
+
beginGroup(group: any): void;
|
|
129
|
+
endGroup(group: any): void;
|
|
130
|
+
beginAnnotation(id: any, rect: any, transform: any, matrix: any, hasOwnCanvas: any): void;
|
|
131
|
+
annotationCanvas: any;
|
|
132
|
+
endAnnotation(): void;
|
|
133
|
+
paintImageMaskXObject(img: any): void;
|
|
134
|
+
paintImageMaskXObjectRepeat(img: any, scaleX: any, skewX: number | undefined, skewY: number | undefined, scaleY: any, positions: any): void;
|
|
135
|
+
paintImageMaskXObjectGroup(images: any): void;
|
|
136
|
+
paintImageXObject(objId: any): void;
|
|
137
|
+
paintImageXObjectRepeat(objId: any, scaleX: any, scaleY: any, positions: any): void;
|
|
138
|
+
applyTransferMapsToCanvas(ctx: any): any;
|
|
139
|
+
applyTransferMapsToBitmap(imgData: any): any;
|
|
140
|
+
paintInlineImageXObject(imgData: any): void;
|
|
141
|
+
paintInlineImageXObjectGroup(imgData: any, map: any): void;
|
|
142
|
+
paintSolidColorImageMask(): void;
|
|
143
|
+
markPoint(tag: any): void;
|
|
144
|
+
markPointProps(tag: any, properties: any): void;
|
|
145
|
+
beginMarkedContent(tag: any): void;
|
|
146
|
+
beginMarkedContentProps(tag: any, properties: any): void;
|
|
147
|
+
endMarkedContent(): void;
|
|
148
|
+
beginCompat(): void;
|
|
149
|
+
endCompat(): void;
|
|
150
|
+
consumePath(clipBox: any): void;
|
|
151
|
+
getSinglePixelWidth(): number;
|
|
152
|
+
getScaleForStroking(): number[];
|
|
153
|
+
rescaleAndStroke(saveRestore: any): void;
|
|
154
|
+
isContentVisible(): boolean;
|
|
155
|
+
#private;
|
|
156
|
+
}
|
|
157
|
+
declare class CanvasExtraState {
|
|
158
|
+
constructor(width: any, height: any);
|
|
159
|
+
alphaIsShape: boolean;
|
|
160
|
+
fontSize: number;
|
|
161
|
+
fontSizeScale: number;
|
|
162
|
+
textMatrix: number[];
|
|
163
|
+
textMatrixScale: number;
|
|
164
|
+
fontMatrix: number[];
|
|
165
|
+
leading: number;
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
lineX: number;
|
|
169
|
+
lineY: number;
|
|
170
|
+
charSpacing: number;
|
|
171
|
+
wordSpacing: number;
|
|
172
|
+
textHScale: number;
|
|
173
|
+
textRenderingMode: number;
|
|
174
|
+
textRise: number;
|
|
175
|
+
fillColor: string;
|
|
176
|
+
strokeColor: string;
|
|
177
|
+
patternFill: boolean;
|
|
178
|
+
fillAlpha: number;
|
|
179
|
+
strokeAlpha: number;
|
|
180
|
+
lineWidth: number;
|
|
181
|
+
activeSMask: any;
|
|
182
|
+
transferMaps: string;
|
|
183
|
+
clone(): any;
|
|
184
|
+
setCurrentPoint(x: any, y: any): void;
|
|
185
|
+
updatePathMinMax(transform: any, x: any, y: any): void;
|
|
186
|
+
minX: any;
|
|
187
|
+
minY: any;
|
|
188
|
+
maxX: any;
|
|
189
|
+
maxY: any;
|
|
190
|
+
updateRectMinMax(transform: any, rect: any): void;
|
|
191
|
+
updateScalingPathMinMax(transform: any, minMax: any): void;
|
|
192
|
+
updateCurvePathMinMax(transform: any, x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): void;
|
|
193
|
+
getPathBoundingBox(pathType?: string, transform?: null): any[];
|
|
194
|
+
updateClipFromPath(): void;
|
|
195
|
+
isEmptyClip(): boolean;
|
|
196
|
+
startNewPathAndClipBox(box: any): void;
|
|
197
|
+
clipBox: any;
|
|
198
|
+
getClippedPathBoundingBox(pathType?: string, transform?: null): number[] | null;
|
|
199
|
+
}
|
|
200
|
+
declare class CachedCanvases {
|
|
201
|
+
constructor(canvasFactory: any);
|
|
202
|
+
canvasFactory: any;
|
|
203
|
+
cache: any;
|
|
204
|
+
getCanvas(id: any, width: any, height: any): any;
|
|
205
|
+
delete(id: any): void;
|
|
206
|
+
clear(): void;
|
|
207
|
+
}
|
|
208
|
+
export {};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
export type PageViewportParameters = {
|
|
2
|
+
/**
|
|
3
|
+
* - The xMin, yMin, xMax and
|
|
4
|
+
* yMax coordinates.
|
|
5
|
+
*/
|
|
6
|
+
viewBox: Array<number>;
|
|
7
|
+
/**
|
|
8
|
+
* - The scale of the viewport.
|
|
9
|
+
*/
|
|
10
|
+
scale: number;
|
|
11
|
+
/**
|
|
12
|
+
* - The rotation, in degrees, of the viewport.
|
|
13
|
+
*/
|
|
14
|
+
rotation: number;
|
|
15
|
+
/**
|
|
16
|
+
* - The horizontal, i.e. x-axis, offset. The
|
|
17
|
+
* default value is `0`.
|
|
18
|
+
*/
|
|
19
|
+
offsetX?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* - The vertical, i.e. y-axis, offset. The
|
|
22
|
+
* default value is `0`.
|
|
23
|
+
*/
|
|
24
|
+
offsetY?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* - If true, the y-axis will not be flipped.
|
|
27
|
+
* The default value is `false`.
|
|
28
|
+
*/
|
|
29
|
+
dontFlip?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
export type PageViewportCloneParameters = {
|
|
32
|
+
/**
|
|
33
|
+
* - The scale, overriding the one in the cloned
|
|
34
|
+
* viewport. The default value is `this.scale`.
|
|
35
|
+
*/
|
|
36
|
+
scale?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* - The rotation, in degrees, overriding the one
|
|
39
|
+
* in the cloned viewport. The default value is `this.rotation`.
|
|
40
|
+
*/
|
|
41
|
+
rotation?: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* - The horizontal, i.e. x-axis, offset.
|
|
44
|
+
* The default value is `this.offsetX`.
|
|
45
|
+
*/
|
|
46
|
+
offsetX?: number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* - The vertical, i.e. y-axis, offset.
|
|
49
|
+
* The default value is `this.offsetY`.
|
|
50
|
+
*/
|
|
51
|
+
offsetY?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - If true, the x-axis will not be flipped.
|
|
54
|
+
* The default value is `false`.
|
|
55
|
+
*/
|
|
56
|
+
dontFlip?: boolean | undefined;
|
|
57
|
+
};
|
|
58
|
+
export const AnnotationPrefix: "pdfjs_internal_id_";
|
|
59
|
+
export function deprecated(details: any): void;
|
|
60
|
+
export class DOMCanvasFactory extends BaseCanvasFactory {
|
|
61
|
+
constructor({ ownerDocument }?: {
|
|
62
|
+
ownerDocument?: Document | undefined;
|
|
63
|
+
});
|
|
64
|
+
_document: Document;
|
|
65
|
+
/**
|
|
66
|
+
* @ignore
|
|
67
|
+
*/
|
|
68
|
+
_createCanvas(width: any, height: any): HTMLCanvasElement;
|
|
69
|
+
}
|
|
70
|
+
export class DOMCMapReaderFactory extends BaseCMapReaderFactory {
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
_fetchData(url: any, compressionType: any): Promise<{
|
|
75
|
+
cMapData: any;
|
|
76
|
+
compressionType: any;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* FilterFactory aims to create some SVG filters we can use when drawing an
|
|
81
|
+
* image (or whatever) on a canvas.
|
|
82
|
+
* Filters aren't applied with ctx.putImageData because it just overwrites the
|
|
83
|
+
* underlying pixels.
|
|
84
|
+
* With these filters, it's possible for example to apply some transfer maps on
|
|
85
|
+
* an image without the need to apply them on the pixel arrays: the renderer
|
|
86
|
+
* does the magic for us.
|
|
87
|
+
*/
|
|
88
|
+
export class DOMFilterFactory extends BaseFilterFactory {
|
|
89
|
+
constructor({ docId, ownerDocument }?: {
|
|
90
|
+
docId: any;
|
|
91
|
+
ownerDocument?: Document | undefined;
|
|
92
|
+
});
|
|
93
|
+
addFilter(maps: any): any;
|
|
94
|
+
addHCMFilter(fgColor: any, bgColor: any): any;
|
|
95
|
+
addHighlightHCMFilter(fgColor: any, bgColor: any, newFgColor: any, newBgColor: any): any;
|
|
96
|
+
#private;
|
|
97
|
+
}
|
|
98
|
+
export class DOMStandardFontDataFactory extends BaseStandardFontDataFactory {
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
|
+
*/
|
|
102
|
+
_fetchData(url: any): Promise<any>;
|
|
103
|
+
}
|
|
104
|
+
export class DOMSVGFactory extends BaseSVGFactory {
|
|
105
|
+
/**
|
|
106
|
+
* @ignore
|
|
107
|
+
*/
|
|
108
|
+
_createSVG(type: any): any;
|
|
109
|
+
}
|
|
110
|
+
export function getColorValues(colors: any): void;
|
|
111
|
+
export function getCurrentTransform(ctx: any): any[];
|
|
112
|
+
export function getCurrentTransformInverse(ctx: any): any[];
|
|
113
|
+
/**
|
|
114
|
+
* Gets the filename from a given URL.
|
|
115
|
+
* @param {string} url
|
|
116
|
+
* @param {boolean} [onlyStripPath]
|
|
117
|
+
* @returns {string}
|
|
118
|
+
*/
|
|
119
|
+
export function getFilenameFromUrl(url: string, onlyStripPath?: boolean | undefined): string;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the filename or guessed filename from the url (see issue 3455).
|
|
122
|
+
* @param {string} url - The original PDF location.
|
|
123
|
+
* @param {string} defaultFilename - The value returned if the filename is
|
|
124
|
+
* unknown, or the protocol is unsupported.
|
|
125
|
+
* @returns {string} Guessed PDF filename.
|
|
126
|
+
*/
|
|
127
|
+
export function getPdfFilenameFromUrl(url: string, defaultFilename?: string): string;
|
|
128
|
+
export function getRGB(color: any): any;
|
|
129
|
+
/**
|
|
130
|
+
* NOTE: This is (mostly) intended to support printing of XFA forms.
|
|
131
|
+
*/
|
|
132
|
+
export function getXfaPageViewport(xfaPage: any, { scale, rotation }: {
|
|
133
|
+
scale?: number | undefined;
|
|
134
|
+
rotation?: number | undefined;
|
|
135
|
+
}): PageViewport;
|
|
136
|
+
export function isDataScheme(url: any): boolean;
|
|
137
|
+
export function isPdfFile(filename: any): boolean;
|
|
138
|
+
export function isValidFetchUrl(url: any, baseUrl: any): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* @param {string} src
|
|
141
|
+
* @param {boolean} [removeScriptElement]
|
|
142
|
+
* @returns {Promise<void>}
|
|
143
|
+
*/
|
|
144
|
+
export function loadScript(src: string, removeScriptElement?: boolean | undefined): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* @typedef {Object} PageViewportParameters
|
|
147
|
+
* @property {Array<number>} viewBox - The xMin, yMin, xMax and
|
|
148
|
+
* yMax coordinates.
|
|
149
|
+
* @property {number} scale - The scale of the viewport.
|
|
150
|
+
* @property {number} rotation - The rotation, in degrees, of the viewport.
|
|
151
|
+
* @property {number} [offsetX] - The horizontal, i.e. x-axis, offset. The
|
|
152
|
+
* default value is `0`.
|
|
153
|
+
* @property {number} [offsetY] - The vertical, i.e. y-axis, offset. The
|
|
154
|
+
* default value is `0`.
|
|
155
|
+
* @property {boolean} [dontFlip] - If true, the y-axis will not be flipped.
|
|
156
|
+
* The default value is `false`.
|
|
157
|
+
*/
|
|
158
|
+
/**
|
|
159
|
+
* @typedef {Object} PageViewportCloneParameters
|
|
160
|
+
* @property {number} [scale] - The scale, overriding the one in the cloned
|
|
161
|
+
* viewport. The default value is `this.scale`.
|
|
162
|
+
* @property {number} [rotation] - The rotation, in degrees, overriding the one
|
|
163
|
+
* in the cloned viewport. The default value is `this.rotation`.
|
|
164
|
+
* @property {number} [offsetX] - The horizontal, i.e. x-axis, offset.
|
|
165
|
+
* The default value is `this.offsetX`.
|
|
166
|
+
* @property {number} [offsetY] - The vertical, i.e. y-axis, offset.
|
|
167
|
+
* The default value is `this.offsetY`.
|
|
168
|
+
* @property {boolean} [dontFlip] - If true, the x-axis will not be flipped.
|
|
169
|
+
* The default value is `false`.
|
|
170
|
+
*/
|
|
171
|
+
/**
|
|
172
|
+
* PDF page viewport created based on scale, rotation and offset.
|
|
173
|
+
*/
|
|
174
|
+
export class PageViewport {
|
|
175
|
+
/**
|
|
176
|
+
* @param {PageViewportParameters}
|
|
177
|
+
*/
|
|
178
|
+
constructor({ viewBox, scale, rotation, offsetX, offsetY, dontFlip, }: PageViewportParameters);
|
|
179
|
+
viewBox: number[];
|
|
180
|
+
scale: number;
|
|
181
|
+
rotation: number;
|
|
182
|
+
offsetX: number;
|
|
183
|
+
offsetY: number;
|
|
184
|
+
transform: number[];
|
|
185
|
+
width: number;
|
|
186
|
+
height: number;
|
|
187
|
+
/**
|
|
188
|
+
* The original, un-scaled, viewport dimensions.
|
|
189
|
+
* @type {Object}
|
|
190
|
+
*/
|
|
191
|
+
get rawDims(): Object;
|
|
192
|
+
/**
|
|
193
|
+
* Clones viewport, with optional additional properties.
|
|
194
|
+
* @param {PageViewportCloneParameters} [params]
|
|
195
|
+
* @returns {PageViewport} Cloned viewport.
|
|
196
|
+
*/
|
|
197
|
+
clone({ scale, rotation, offsetX, offsetY, dontFlip, }?: PageViewportCloneParameters | undefined): PageViewport;
|
|
198
|
+
/**
|
|
199
|
+
* Converts PDF point to the viewport coordinates. For examples, useful for
|
|
200
|
+
* converting PDF location into canvas pixel coordinates.
|
|
201
|
+
* @param {number} x - The x-coordinate.
|
|
202
|
+
* @param {number} y - The y-coordinate.
|
|
203
|
+
* @returns {Array} Array containing `x`- and `y`-coordinates of the
|
|
204
|
+
* point in the viewport coordinate space.
|
|
205
|
+
* @see {@link convertToPdfPoint}
|
|
206
|
+
* @see {@link convertToViewportRectangle}
|
|
207
|
+
*/
|
|
208
|
+
convertToViewportPoint(x: number, y: number): any[];
|
|
209
|
+
/**
|
|
210
|
+
* Converts PDF rectangle to the viewport coordinates.
|
|
211
|
+
* @param {Array} rect - The xMin, yMin, xMax and yMax coordinates.
|
|
212
|
+
* @returns {Array} Array containing corresponding coordinates of the
|
|
213
|
+
* rectangle in the viewport coordinate space.
|
|
214
|
+
* @see {@link convertToViewportPoint}
|
|
215
|
+
*/
|
|
216
|
+
convertToViewportRectangle(rect: any[]): any[];
|
|
217
|
+
/**
|
|
218
|
+
* Converts viewport coordinates to the PDF location. For examples, useful
|
|
219
|
+
* for converting canvas pixel location into PDF one.
|
|
220
|
+
* @param {number} x - The x-coordinate.
|
|
221
|
+
* @param {number} y - The y-coordinate.
|
|
222
|
+
* @returns {Array} Array containing `x`- and `y`-coordinates of the
|
|
223
|
+
* point in the PDF coordinate space.
|
|
224
|
+
* @see {@link convertToViewportPoint}
|
|
225
|
+
*/
|
|
226
|
+
convertToPdfPoint(x: number, y: number): any[];
|
|
227
|
+
}
|
|
228
|
+
export class PDFDateString {
|
|
229
|
+
/**
|
|
230
|
+
* Convert a PDF date string to a JavaScript `Date` object.
|
|
231
|
+
*
|
|
232
|
+
* The PDF date string format is described in section 7.9.4 of the official
|
|
233
|
+
* PDF 32000-1:2008 specification. However, in the PDF 1.7 reference (sixth
|
|
234
|
+
* edition) Adobe describes the same format including a trailing apostrophe.
|
|
235
|
+
* This syntax in incorrect, but Adobe Acrobat creates PDF files that contain
|
|
236
|
+
* them. We ignore all apostrophes as they are not necessary for date parsing.
|
|
237
|
+
*
|
|
238
|
+
* Moreover, Adobe Acrobat doesn't handle changing the date to universal time
|
|
239
|
+
* and doesn't use the user's time zone (effectively ignoring the HH' and mm'
|
|
240
|
+
* parts of the date string).
|
|
241
|
+
*
|
|
242
|
+
* @param {string} input
|
|
243
|
+
* @returns {Date|null}
|
|
244
|
+
*/
|
|
245
|
+
static toDateObject(input: string): Date | null;
|
|
246
|
+
}
|
|
247
|
+
export class PixelsPerInch {
|
|
248
|
+
static CSS: number;
|
|
249
|
+
static PDF: number;
|
|
250
|
+
static PDF_TO_CSS_UNITS: number;
|
|
251
|
+
}
|
|
252
|
+
declare const RenderingCancelledException_base: any;
|
|
253
|
+
export class RenderingCancelledException extends RenderingCancelledException_base {
|
|
254
|
+
[x: string]: any;
|
|
255
|
+
constructor(msg: any, extraDelay?: number);
|
|
256
|
+
extraDelay: number;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @param {HTMLDivElement} div
|
|
260
|
+
* @param {PageViewport} viewport
|
|
261
|
+
* @param {boolean} mustFlip
|
|
262
|
+
* @param {boolean} mustRotate
|
|
263
|
+
*/
|
|
264
|
+
export function setLayerDimensions(div: HTMLDivElement, viewport: PageViewport, mustFlip?: boolean, mustRotate?: boolean): void;
|
|
265
|
+
export class StatTimer {
|
|
266
|
+
started: any;
|
|
267
|
+
times: any[];
|
|
268
|
+
time(name: any): void;
|
|
269
|
+
timeEnd(name: any): void;
|
|
270
|
+
toString(): string;
|
|
271
|
+
}
|
|
272
|
+
import { BaseCanvasFactory } from "./base_factory.js";
|
|
273
|
+
import { BaseCMapReaderFactory } from "./base_factory.js";
|
|
274
|
+
import { BaseFilterFactory } from "./base_factory.js";
|
|
275
|
+
import { BaseStandardFontDataFactory } from "./base_factory.js";
|
|
276
|
+
import { BaseSVGFactory } from "./base_factory.js";
|
|
277
|
+
export {};
|