@chialab/pdfjs-lib 1.0.0-alpha.3 → 1.0.0-alpha.32
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/README.md +15 -7
- package/dist/browser/{FoxitDingbats-SB6TO3S5.js → FoxitDingbats-XZTZYAP6.js} +1 -1
- package/dist/browser/{FoxitFixed-UIGSMBQB.js → FoxitFixed-DRWD6QNM.js} +1 -1
- package/dist/browser/{FoxitFixedBold-2PAEIZAT.js → FoxitFixedBold-A3IBPIFC.js} +1 -1
- package/dist/browser/{FoxitFixedBoldItalic-OSQUQDEE.js → FoxitFixedBoldItalic-V4ORMFGL.js} +1 -1
- package/dist/browser/{FoxitFixedItalic-W73RDK22.js → FoxitFixedItalic-Z7BSNTJA.js} +1 -1
- package/dist/browser/{FoxitSerif-3HH3SOZF.js → FoxitSerif-Y34FHWHO.js} +1 -1
- package/dist/browser/{FoxitSerifBold-HXP2QOO7.js → FoxitSerifBold-NCWBT4GX.js} +1 -1
- package/dist/browser/{FoxitSerifBoldItalic-FZXLNWD7.js → FoxitSerifBoldItalic-YTEOG5ZU.js} +1 -1
- package/dist/browser/{FoxitSerifItalic-WQFHUBI2.js → FoxitSerifItalic-3H547RIJ.js} +1 -1
- package/dist/browser/{FoxitSymbol-OVWU7LKS.js → FoxitSymbol-EMTQEYPB.js} +1 -1
- package/dist/browser/{LiberationSans-Bold-GSJN42N5.js → LiberationSans-Bold-MGX34QV4.js} +1 -1
- package/dist/browser/LiberationSans-Bold-PQY5JZAT.js +9 -0
- package/dist/browser/LiberationSans-BoldItalic-PBNZJX4S.js +9 -0
- package/dist/browser/{LiberationSans-BoldItalic-UCPQJ3L2.js → LiberationSans-BoldItalic-WSEQ5LH5.js} +1 -1
- package/dist/browser/{LiberationSans-Italic-6CIHEALY.js → LiberationSans-Italic-E4SLDR4M.js} +1 -1
- package/dist/browser/LiberationSans-Italic-NAYVQTNG.js +9 -0
- package/dist/browser/{LiberationSans-Regular-KIF3IRJY.js → LiberationSans-Regular-3SH5NGZO.js} +1 -1
- package/dist/browser/LiberationSans-Regular-FMNBW2LE.js +9 -0
- package/dist/browser/NodeUtilsStabs-AQQCOPNR.js +19 -0
- package/dist/browser/chunk-3ZTAZS2X.js +25 -0
- package/dist/browser/{chunk-O4UKW7AD.js → chunk-7YYVRRNF.js} +5 -0
- package/dist/browser/{chunk-DYHYQ33L.js → chunk-R7G44NYV.js} +834 -84
- package/dist/browser/index.js +21411 -4924
- package/dist/browser/openjpeg-Q27OVS4T.js +9 -0
- package/dist/browser/qcms_bg-BCJEADMU.js +9 -0
- package/dist/browser/worker.js +8373 -7091
- package/dist/index.d.ts +11 -1
- package/dist/lib/AnnotationData.d.ts +8 -8
- package/dist/lib/AnnotationOperatorsList.d.ts +21 -0
- package/dist/lib/Canvas.d.ts +0 -5
- package/dist/lib/CanvasGraphics.d.ts +1 -0
- package/dist/lib/NodeCanvasFactory.d.ts +9 -0
- package/dist/lib/NodeFilterFactory.d.ts +10 -0
- package/dist/lib/NodeUtils.d.ts +24 -0
- package/dist/lib/Path2D.d.ts +9 -49
- package/dist/lib/StandardFontDataFactory.d.ts +2 -2
- package/dist/lib/StructTreePage.d.ts +5 -0
- package/dist/lib/Svg.d.ts +144 -0
- package/dist/lib/SvgCanvasContext.d.ts +36 -22
- package/dist/lib/TextLayer.d.ts +48 -10
- package/dist/lib/TextLayer_v2.d.ts +8 -0
- package/dist/lib/WasmFactory.d.ts +5 -0
- package/dist/lib/utils.d.ts +22 -3
- package/dist/node/{FoxitDingbats-65AZ2Z2V.js → FoxitDingbats-UZC34T4F.js} +1 -1
- package/dist/node/{FoxitFixed-OZGLVVOQ.js → FoxitFixed-DSJVG3IJ.js} +1 -1
- package/dist/node/{FoxitFixedBold-37OOYMV7.js → FoxitFixedBold-YSX4X5NA.js} +1 -1
- package/dist/node/{FoxitFixedBoldItalic-XYFHEG2V.js → FoxitFixedBoldItalic-IFYYA6RR.js} +1 -1
- package/dist/node/{FoxitFixedItalic-MM7OSGS6.js → FoxitFixedItalic-4PEFPCQV.js} +1 -1
- package/dist/node/{FoxitSerif-MLMJQPRP.js → FoxitSerif-7SSP2H2U.js} +1 -1
- package/dist/node/{FoxitSerifBold-AC7RJQWJ.js → FoxitSerifBold-KLMURJ6N.js} +1 -1
- package/dist/node/{FoxitSerifBoldItalic-YCQ4CLKE.js → FoxitSerifBoldItalic-VSYHWLRM.js} +1 -1
- package/dist/node/{FoxitSerifItalic-CXVTCST4.js → FoxitSerifItalic-NTOPMQDD.js} +1 -1
- package/dist/node/{FoxitSymbol-VUGMZN5C.js → FoxitSymbol-QPUM74UN.js} +1 -1
- package/dist/node/{LiberationSans-Bold-XSHQQBWB.js → LiberationSans-Bold-BXFYN4PV.js} +1 -1
- package/dist/node/LiberationSans-Bold-VIZ4XT4N.js +9 -0
- package/dist/node/{LiberationSans-BoldItalic-CTAZRFRL.js → LiberationSans-BoldItalic-DQQC5TNJ.js} +1 -1
- package/dist/node/LiberationSans-BoldItalic-WXMOSICD.js +9 -0
- package/dist/node/LiberationSans-Italic-34IBVQZ4.js +9 -0
- package/dist/node/{LiberationSans-Italic-WIOTUKLC.js → LiberationSans-Italic-Z4MFN6PY.js} +1 -1
- package/dist/node/LiberationSans-Regular-JOSGNSW5.js +9 -0
- package/dist/node/{LiberationSans-Regular-CDMMZL5S.js → LiberationSans-Regular-MACKS2VL.js} +1 -1
- package/dist/node/NodeUtils-SRP3N4DX.js +20 -0
- package/dist/node/chunk-4Y7OZIIX.js +1319 -0
- package/dist/node/chunk-R66TN6BM.js +2072 -0
- package/dist/node/chunk-T2JWSGAF.js +1225 -0
- package/dist/node/chunk-ZFIGV5OT.js +63 -0
- package/dist/node/index.js +19837 -5007
- package/dist/node/openjpeg-QFJSFVSJ.js +9 -0
- package/dist/node/qcms_bg-PRPVJQFC.js +9 -0
- package/dist/node/worker.js +8382 -7098
- package/dist/pdf.js/external/openjpeg/openjpeg.d.ts +2 -0
- package/dist/pdf.js/external/qcms/qcms.d.ts +92 -0
- package/dist/pdf.js/external/qcms/qcms_utils.d.ts +14 -0
- package/dist/pdf.js/src/core/arithmetic_decoder.d.ts +21 -0
- package/dist/pdf.js/src/core/ascii_85_stream.d.ts +8 -0
- package/dist/pdf.js/src/core/ascii_hex_stream.d.ts +8 -0
- package/dist/pdf.js/src/core/base_stream.d.ts +32 -0
- package/dist/pdf.js/src/core/binary_cmap.d.ts +3 -0
- package/dist/pdf.js/src/core/ccitt.d.ts +72 -0
- package/dist/pdf.js/src/core/ccitt_stream.d.ts +9 -0
- package/dist/pdf.js/src/core/cff_font.d.ts +15 -0
- package/dist/pdf.js/src/core/cff_parser.d.ts +166 -0
- package/dist/pdf.js/src/core/charsets.d.ts +3 -0
- package/dist/pdf.js/src/core/cmap.d.ts +37 -0
- package/dist/pdf.js/src/core/colorspace.d.ts +177 -0
- package/dist/pdf.js/src/core/colorspace_utils.d.ts +21 -0
- package/dist/pdf.js/src/core/core_utils.d.ts +140 -0
- package/dist/pdf.js/src/core/decode_stream.d.ts +25 -0
- package/dist/pdf.js/src/core/encodings.d.ts +7 -0
- package/dist/pdf.js/src/core/flate_stream.d.ts +15 -0
- package/dist/pdf.js/src/core/font_renderer.d.ts +34 -0
- package/dist/pdf.js/src/core/fonts.d.ts +98 -0
- package/dist/pdf.js/src/core/fonts_utils.d.ts +32 -0
- package/dist/pdf.js/src/core/glyf.d.ts +44 -0
- package/dist/pdf.js/src/core/glyphlist.d.ts +2 -0
- package/dist/pdf.js/src/core/icc_colorspace.d.ts +22 -0
- package/dist/pdf.js/src/core/jbig2.d.ts +12 -0
- package/dist/pdf.js/src/core/jbig2_stream.d.ts +17 -0
- package/dist/pdf.js/src/core/jpeg_stream.d.ts +25 -0
- package/dist/pdf.js/src/core/jpg.d.ts +62 -0
- package/dist/pdf.js/src/core/jpx.d.ts +35 -0
- package/dist/pdf.js/src/core/jpx_stream.d.ts +17 -0
- package/dist/pdf.js/src/core/lzw_stream.d.ts +21 -0
- package/dist/pdf.js/src/core/metrics.d.ts +2 -0
- package/dist/pdf.js/src/core/name_number_tree.d.ts +21 -0
- package/dist/pdf.js/src/core/opentype_file_builder.d.ts +12 -0
- package/dist/pdf.js/src/core/parser.d.ts +81 -0
- package/dist/pdf.js/src/core/predictor_stream.d.ts +15 -0
- package/dist/pdf.js/src/core/primitives.d.ts +78 -0
- package/dist/pdf.js/src/core/run_length_stream.d.ts +7 -0
- package/dist/pdf.js/src/core/standard_fonts.d.ts +18 -0
- package/dist/pdf.js/src/core/stream.d.ts +21 -0
- package/dist/pdf.js/src/core/struct_tree.d.ts +92 -0
- package/dist/pdf.js/src/core/to_unicode_map.d.ts +21 -0
- package/dist/pdf.js/src/core/type1_font.d.ts +17 -0
- package/dist/pdf.js/src/core/type1_parser.d.ts +29 -0
- package/dist/pdf.js/src/core/unicode.d.ts +5 -0
- package/dist/pdf.js/src/display/annotation_layer.d.ts +35 -5
- package/dist/pdf.js/src/display/annotation_storage.d.ts +3 -8
- package/dist/pdf.js/src/display/api.d.ts +86 -77
- package/dist/pdf.js/src/display/api_utils.d.ts +13 -0
- package/dist/pdf.js/src/display/canvas.d.ts +88 -94
- package/dist/pdf.js/src/display/canvas_dependency_tracker.d.ts +160 -0
- package/dist/pdf.js/src/display/display_utils.d.ts +34 -1
- package/dist/pdf.js/src/display/draw_layer.d.ts +2 -2
- package/dist/pdf.js/src/display/editor/alt_text.d.ts +1 -1
- package/dist/pdf.js/src/display/editor/annotation_editor_layer.d.ts +10 -8
- package/dist/pdf.js/src/display/editor/color_picker.d.ts +20 -1
- package/dist/pdf.js/src/display/editor/comment.d.ts +47 -0
- package/dist/pdf.js/src/display/editor/draw.d.ts +8 -8
- package/dist/pdf.js/src/display/editor/drawers/freedraw.d.ts +4 -3
- package/dist/pdf.js/src/display/editor/drawers/highlight.d.ts +2 -1
- package/dist/pdf.js/src/display/editor/drawers/signaturedraw.d.ts +13 -13
- package/dist/pdf.js/src/display/editor/editor.d.ts +117 -16
- package/dist/pdf.js/src/display/editor/freetext.d.ts +11 -7
- package/dist/pdf.js/src/display/editor/highlight.d.ts +9 -3
- package/dist/pdf.js/src/display/editor/ink.d.ts +6 -0
- package/dist/pdf.js/src/display/editor/signature.d.ts +3 -5
- package/dist/pdf.js/src/display/editor/stamp.d.ts +4 -3
- package/dist/pdf.js/src/display/editor/toolbar.d.ts +8 -3
- package/dist/pdf.js/src/display/editor/tools.d.ts +36 -12
- package/dist/pdf.js/src/display/font_loader.d.ts +27 -1
- package/dist/pdf.js/src/display/metadata.d.ts +1 -2
- package/dist/pdf.js/src/display/optional_content_config.d.ts +1 -1
- package/dist/pdf.js/src/display/pattern_helper.d.ts +6 -4
- package/dist/pdf.js/src/display/pdf_objects.d.ts +40 -0
- package/dist/pdf.js/src/display/text_layer.d.ts +9 -9
- package/dist/pdf.js/src/display/touch_manager.d.ts +5 -1
- package/dist/pdf.js/src/display/worker_options.d.ts +2 -2
- package/dist/pdf.js/src/pdf.d.ts +9 -1
- package/dist/pdf.js/src/shared/obj-bin-transform.d.ts +64 -0
- package/dist/pdf.js/src/shared/scripting_utils.d.ts +2 -0
- package/dist/pdf.js/src/shared/util.d.ts +129 -102
- package/dist/pdf.js/web/comment_manager.d.ts +20 -0
- package/dist/pdf.js/web/interfaces.d.ts +7 -0
- package/dist/pdf.js/web/text_accessibility.d.ts +1 -1
- package/package.json +16 -4
- package/dist/node/chunk-7MW5RQZ5.js +0 -30
- package/dist/node/chunk-KTTVPO2G.js +0 -1775
- package/dist/pdf.js/src/display/node_utils.d.ts +0 -32
|
@@ -48,7 +48,7 @@ export type DocumentInitParameters = {
|
|
|
48
48
|
range?: PDFDataRangeTransport | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* - Specify maximum number of bytes fetched
|
|
51
|
-
* per range request. The default value is
|
|
51
|
+
* per range request. The default value is 65536 (= 2^16).
|
|
52
52
|
*/
|
|
53
53
|
rangeChunkSize?: number | undefined;
|
|
54
54
|
/**
|
|
@@ -83,6 +83,11 @@ export type DocumentInitParameters = {
|
|
|
83
83
|
* The default value is {DOMCMapReaderFactory}.
|
|
84
84
|
*/
|
|
85
85
|
CMapReaderFactory?: Object | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* - The URL where the predefined ICC profiles are
|
|
88
|
+
* located. Include the trailing slash.
|
|
89
|
+
*/
|
|
90
|
+
iccUrl?: string | undefined;
|
|
86
91
|
/**
|
|
87
92
|
* - When `true`, fonts that aren't
|
|
88
93
|
* embedded in the PDF document will fallback to a system font.
|
|
@@ -409,15 +414,24 @@ export type GetAnnotationsParameters = {
|
|
|
409
414
|
*/
|
|
410
415
|
export type RenderParameters = {
|
|
411
416
|
/**
|
|
412
|
-
* - A
|
|
413
|
-
*
|
|
417
|
+
* - A DOM Canvas object. The default
|
|
418
|
+
* value is the canvas associated with the `canvasContext` parameter if no
|
|
419
|
+
* value is provided explicitly.
|
|
414
420
|
*/
|
|
415
|
-
|
|
421
|
+
canvas: HTMLCanvasElement | null;
|
|
416
422
|
/**
|
|
417
423
|
* - Rendering viewport obtained by calling
|
|
418
424
|
* the `PDFPageProxy.getViewport` method.
|
|
419
425
|
*/
|
|
420
426
|
viewport: PageViewport;
|
|
427
|
+
/**
|
|
428
|
+
* - 2D context of a DOM
|
|
429
|
+
* Canvas object for backwards compatibility; it is recommended to use the
|
|
430
|
+
* `canvas` parameter instead.
|
|
431
|
+
* If the context must absolutely be used to render the page, the canvas must
|
|
432
|
+
* be null.
|
|
433
|
+
*/
|
|
434
|
+
canvasContext?: CanvasRenderingContext2D | undefined;
|
|
421
435
|
/**
|
|
422
436
|
* - Rendering intent, can be 'display', 'print',
|
|
423
437
|
* or 'any'. The default value is 'display'.
|
|
@@ -478,7 +492,18 @@ export type RenderParameters = {
|
|
|
478
492
|
* - Render the page in editing mode.
|
|
479
493
|
*/
|
|
480
494
|
isEditing?: boolean | undefined;
|
|
495
|
+
/**
|
|
496
|
+
* - Record the dependencies and bounding
|
|
497
|
+
* boxes of all PDF operations that render onto the canvas.
|
|
498
|
+
*/
|
|
499
|
+
recordOperations?: boolean | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* - If provided, only
|
|
502
|
+
* run for which this function returns `true`.
|
|
503
|
+
*/
|
|
504
|
+
operationsFilter?: OperationsFilter | undefined;
|
|
481
505
|
};
|
|
506
|
+
export type OperationsFilter = (index: number) => boolean;
|
|
482
507
|
/**
|
|
483
508
|
* Page getOperatorList parameters.
|
|
484
509
|
*/
|
|
@@ -604,7 +629,7 @@ export const build: string;
|
|
|
604
629
|
* @property {PDFDataRangeTransport} [range] - Allows for using a custom range
|
|
605
630
|
* transport implementation.
|
|
606
631
|
* @property {number} [rangeChunkSize] - Specify maximum number of bytes fetched
|
|
607
|
-
* per range request. The default value is
|
|
632
|
+
* per range request. The default value is 65536 (= 2^16).
|
|
608
633
|
* @property {PDFWorker} [worker] - The worker that will be used for loading and
|
|
609
634
|
* parsing the PDF data.
|
|
610
635
|
* @property {number} [verbosity] - Controls the logging level; the constants
|
|
@@ -619,6 +644,8 @@ export const build: string;
|
|
|
619
644
|
* @property {Object} [CMapReaderFactory] - The factory that will be used when
|
|
620
645
|
* reading built-in CMap files.
|
|
621
646
|
* The default value is {DOMCMapReaderFactory}.
|
|
647
|
+
* @property {string} [iccUrl] - The URL where the predefined ICC profiles are
|
|
648
|
+
* located. Include the trailing slash.
|
|
622
649
|
* @property {boolean} [useSystemFonts] - When `true`, fonts that aren't
|
|
623
650
|
* embedded in the PDF document will fallback to a system font.
|
|
624
651
|
* The default value is `true` in web environments and `false` in Node.js;
|
|
@@ -725,13 +752,6 @@ export const build: string;
|
|
|
725
752
|
* @returns {PDFDocumentLoadingTask}
|
|
726
753
|
*/
|
|
727
754
|
export function getDocument(src?: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask;
|
|
728
|
-
export class LoopbackPort {
|
|
729
|
-
postMessage(obj: any, transfer: any): void;
|
|
730
|
-
addEventListener(name: any, listener: any, options?: null): void;
|
|
731
|
-
removeEventListener(name: any, listener: any): void;
|
|
732
|
-
terminate(): void;
|
|
733
|
-
#private;
|
|
734
|
-
}
|
|
735
755
|
/**
|
|
736
756
|
* Abstract class to support range requests file loading.
|
|
737
757
|
*
|
|
@@ -751,11 +771,6 @@ export class PDFDataRangeTransport {
|
|
|
751
771
|
initialData: Uint8Array<ArrayBufferLike> | null;
|
|
752
772
|
progressiveDone: boolean;
|
|
753
773
|
contentDispositionFilename: string;
|
|
754
|
-
_rangeListeners: any[];
|
|
755
|
-
_progressListeners: any[];
|
|
756
|
-
_progressiveReadListeners: any[];
|
|
757
|
-
_progressiveDoneListeners: any[];
|
|
758
|
-
_readyCapability: PromiseWithResolvers<any>;
|
|
759
774
|
/**
|
|
760
775
|
* @param {function} listener
|
|
761
776
|
*/
|
|
@@ -794,6 +809,7 @@ export class PDFDataRangeTransport {
|
|
|
794
809
|
*/
|
|
795
810
|
requestDataRange(begin: number, end: number): void;
|
|
796
811
|
abort(): void;
|
|
812
|
+
#private;
|
|
797
813
|
}
|
|
798
814
|
/**
|
|
799
815
|
* @typedef {Object} OnProgressParameters
|
|
@@ -806,10 +822,19 @@ export class PDFDataRangeTransport {
|
|
|
806
822
|
* after which individual pages can be rendered.
|
|
807
823
|
*/
|
|
808
824
|
export class PDFDocumentLoadingTask {
|
|
809
|
-
static "__#
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
825
|
+
static "__#private@#docId": number;
|
|
826
|
+
/**
|
|
827
|
+
* @private
|
|
828
|
+
*/
|
|
829
|
+
private _capability;
|
|
830
|
+
/**
|
|
831
|
+
* @private
|
|
832
|
+
*/
|
|
833
|
+
private _transport;
|
|
834
|
+
/**
|
|
835
|
+
* @private
|
|
836
|
+
*/
|
|
837
|
+
private _worker;
|
|
813
838
|
/**
|
|
814
839
|
* Unique identifier for the document loading task.
|
|
815
840
|
* @type {string}
|
|
@@ -845,6 +870,13 @@ export class PDFDocumentLoadingTask {
|
|
|
845
870
|
* completed.
|
|
846
871
|
*/
|
|
847
872
|
destroy(): Promise<void>;
|
|
873
|
+
/**
|
|
874
|
+
* Attempt to fetch the raw data of the PDF document, when e.g.
|
|
875
|
+
* - An exception was thrown during document initialization.
|
|
876
|
+
* - An `onPassword` callback is delaying initialization.
|
|
877
|
+
* @returns {Promise<Uint8Array>}
|
|
878
|
+
*/
|
|
879
|
+
getData(): Promise<Uint8Array>;
|
|
848
880
|
}
|
|
849
881
|
/**
|
|
850
882
|
* Proxy to a `PDFDocument` in the worker thread.
|
|
@@ -948,6 +980,13 @@ export class PDFDocumentProxy {
|
|
|
948
980
|
* for mapping named attachments to their content.
|
|
949
981
|
*/
|
|
950
982
|
getAttachments(): Promise<any>;
|
|
983
|
+
/**
|
|
984
|
+
* @param {Set<number>} types - The annotation types to retrieve.
|
|
985
|
+
* @param {Set<number>} pageIndexesToSkip
|
|
986
|
+
* @returns {Promise<Array<Object>>} A promise that is resolved with a list of
|
|
987
|
+
* annotations data.
|
|
988
|
+
*/
|
|
989
|
+
getAnnotationsByType(types: Set<number>, pageIndexesToSkip: Set<number>): Promise<Array<Object>>;
|
|
951
990
|
/**
|
|
952
991
|
* @returns {Promise<Object | null>} A promise that is resolved with
|
|
953
992
|
* an {Object} with the JavaScript actions:
|
|
@@ -1197,10 +1236,16 @@ export class PDFDocumentProxy {
|
|
|
1197
1236
|
* Page render parameters.
|
|
1198
1237
|
*
|
|
1199
1238
|
* @typedef {Object} RenderParameters
|
|
1200
|
-
* @property {
|
|
1201
|
-
*
|
|
1239
|
+
* @property {HTMLCanvasElement|null} canvas - A DOM Canvas object. The default
|
|
1240
|
+
* value is the canvas associated with the `canvasContext` parameter if no
|
|
1241
|
+
* value is provided explicitly.
|
|
1202
1242
|
* @property {PageViewport} viewport - Rendering viewport obtained by calling
|
|
1203
1243
|
* the `PDFPageProxy.getViewport` method.
|
|
1244
|
+
* @property {CanvasRenderingContext2D} [canvasContext] - 2D context of a DOM
|
|
1245
|
+
* Canvas object for backwards compatibility; it is recommended to use the
|
|
1246
|
+
* `canvas` parameter instead.
|
|
1247
|
+
* If the context must absolutely be used to render the page, the canvas must
|
|
1248
|
+
* be null.
|
|
1204
1249
|
* @property {string} [intent] - Rendering intent, can be 'display', 'print',
|
|
1205
1250
|
* or 'any'. The default value is 'display'.
|
|
1206
1251
|
* @property {number} [annotationMode] Controls which annotations are rendered
|
|
@@ -1238,6 +1283,15 @@ export class PDFDocumentProxy {
|
|
|
1238
1283
|
* annotation ids with canvases used to render them.
|
|
1239
1284
|
* @property {PrintAnnotationStorage} [printAnnotationStorage]
|
|
1240
1285
|
* @property {boolean} [isEditing] - Render the page in editing mode.
|
|
1286
|
+
* @property {boolean} [recordOperations] - Record the dependencies and bounding
|
|
1287
|
+
* boxes of all PDF operations that render onto the canvas.
|
|
1288
|
+
* @property {OperationsFilter} [operationsFilter] - If provided, only
|
|
1289
|
+
* run for which this function returns `true`.
|
|
1290
|
+
*/
|
|
1291
|
+
/**
|
|
1292
|
+
* @callback OperationsFilter
|
|
1293
|
+
* @param {number} index - The index of the operation.
|
|
1294
|
+
* @returns {boolean} If false, the operation is ignored.
|
|
1241
1295
|
*/
|
|
1242
1296
|
/**
|
|
1243
1297
|
* Page getOperatorList parameters.
|
|
@@ -1300,6 +1354,7 @@ export class PDFPageProxy {
|
|
|
1300
1354
|
objs: PDFObjects;
|
|
1301
1355
|
_intentStates: Map<any, any>;
|
|
1302
1356
|
destroyed: boolean;
|
|
1357
|
+
recordedBBoxes: any;
|
|
1303
1358
|
/**
|
|
1304
1359
|
* @type {number} Page number of the page. First page is 1.
|
|
1305
1360
|
*/
|
|
@@ -1360,7 +1415,7 @@ export class PDFPageProxy {
|
|
|
1360
1415
|
* @returns {RenderTask} An object that contains a promise that is
|
|
1361
1416
|
* resolved when the page finishes rendering.
|
|
1362
1417
|
*/
|
|
1363
|
-
render({ canvasContext, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, }: RenderParameters): RenderTask;
|
|
1418
|
+
render({ canvasContext, canvas, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, recordOperations, operationsFilter, }: RenderParameters): RenderTask;
|
|
1364
1419
|
/**
|
|
1365
1420
|
* @param {GetOperatorListParameters} params - Page getOperatorList
|
|
1366
1421
|
* parameters.
|
|
@@ -1443,19 +1498,20 @@ export class PDFPageProxy {
|
|
|
1443
1498
|
* @param {PDFWorkerParameters} params - The worker initialization parameters.
|
|
1444
1499
|
*/
|
|
1445
1500
|
export class PDFWorker {
|
|
1446
|
-
static "__#
|
|
1447
|
-
static "__#
|
|
1448
|
-
static "__#
|
|
1501
|
+
static "__#private@#fakeWorkerId": number;
|
|
1502
|
+
static "__#private@#isWorkerDisabled": boolean;
|
|
1503
|
+
static "__#private@#workerPorts": WeakMap<WeakKey, any>;
|
|
1449
1504
|
/**
|
|
1450
1505
|
* @param {PDFWorkerParameters} params - The worker initialization parameters.
|
|
1506
|
+
* @returns {PDFWorker}
|
|
1451
1507
|
*/
|
|
1452
|
-
static
|
|
1508
|
+
static create(params: PDFWorkerParameters): PDFWorker;
|
|
1453
1509
|
/**
|
|
1454
1510
|
* The current `workerSrc`, when it exists.
|
|
1455
1511
|
* @type {string}
|
|
1456
1512
|
*/
|
|
1457
1513
|
static get workerSrc(): string;
|
|
1458
|
-
static get "__#
|
|
1514
|
+
static get "__#private@#mainThreadWorkerMessageHandler"(): any;
|
|
1459
1515
|
static get _setupFakeWorkerGlobal(): any;
|
|
1460
1516
|
constructor({ name, port, verbosity, }?: {
|
|
1461
1517
|
name?: null | undefined;
|
|
@@ -1465,10 +1521,6 @@ export class PDFWorker {
|
|
|
1465
1521
|
name: any;
|
|
1466
1522
|
destroyed: boolean;
|
|
1467
1523
|
verbosity: number;
|
|
1468
|
-
_readyCapability: PromiseWithResolvers<any>;
|
|
1469
|
-
_port: any;
|
|
1470
|
-
_webWorker: Worker | null;
|
|
1471
|
-
_messageHandler: MessageHandler | null;
|
|
1472
1524
|
/**
|
|
1473
1525
|
* Promise for worker initialization completion.
|
|
1474
1526
|
* @type {Promise<void>}
|
|
@@ -1484,9 +1536,6 @@ export class PDFWorker {
|
|
|
1484
1536
|
* @type {MessageHandler}
|
|
1485
1537
|
*/
|
|
1486
1538
|
get messageHandler(): MessageHandler;
|
|
1487
|
-
_initializeFromPort(port: any): void;
|
|
1488
|
-
_initialize(): void;
|
|
1489
|
-
_setupFakeWorker(): void;
|
|
1490
1539
|
/**
|
|
1491
1540
|
* Destroys the worker instance.
|
|
1492
1541
|
*/
|
|
@@ -1542,45 +1591,5 @@ import { PrintAnnotationStorage } from "./annotation_storage.js";
|
|
|
1542
1591
|
import { AnnotationStorage } from "./annotation_storage.js";
|
|
1543
1592
|
import { Metadata } from "./metadata.js";
|
|
1544
1593
|
import { StatTimer } from "./display_utils.js";
|
|
1545
|
-
|
|
1546
|
-
* A PDF document and page is built of many objects. E.g. there are objects for
|
|
1547
|
-
* fonts, images, rendering code, etc. These objects may get processed inside of
|
|
1548
|
-
* a worker. This class implements some basic methods to manage these objects.
|
|
1549
|
-
*/
|
|
1550
|
-
declare class PDFObjects {
|
|
1551
|
-
/**
|
|
1552
|
-
* If called *without* callback, this returns the data of `objId` but the
|
|
1553
|
-
* object needs to be resolved. If it isn't, this method throws.
|
|
1554
|
-
*
|
|
1555
|
-
* If called *with* a callback, the callback is called with the data of the
|
|
1556
|
-
* object once the object is resolved. That means, if you call this method
|
|
1557
|
-
* and the object is already resolved, the callback gets called right away.
|
|
1558
|
-
*
|
|
1559
|
-
* @param {string} objId
|
|
1560
|
-
* @param {function} [callback]
|
|
1561
|
-
* @returns {any}
|
|
1562
|
-
*/
|
|
1563
|
-
get(objId: string, callback?: Function): any;
|
|
1564
|
-
/**
|
|
1565
|
-
* @param {string} objId
|
|
1566
|
-
* @returns {boolean}
|
|
1567
|
-
*/
|
|
1568
|
-
has(objId: string): boolean;
|
|
1569
|
-
/**
|
|
1570
|
-
* @param {string} objId
|
|
1571
|
-
* @returns {boolean}
|
|
1572
|
-
*/
|
|
1573
|
-
delete(objId: string): boolean;
|
|
1574
|
-
/**
|
|
1575
|
-
* Resolves the object `objId` with optional `data`.
|
|
1576
|
-
*
|
|
1577
|
-
* @param {string} objId
|
|
1578
|
-
* @param {any} [data]
|
|
1579
|
-
*/
|
|
1580
|
-
resolve(objId: string, data?: any): void;
|
|
1581
|
-
clear(): void;
|
|
1582
|
-
[Symbol.iterator](): Generator<any[], void, unknown>;
|
|
1583
|
-
#private;
|
|
1584
|
-
}
|
|
1594
|
+
import { PDFObjects } from "./pdf_objects.js";
|
|
1585
1595
|
import { MessageHandler } from "../shared/message_handler.js";
|
|
1586
|
-
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function getDataProp(val: any): Uint8Array<any>;
|
|
2
|
+
export function getFactoryUrlProp(val: any): string | null;
|
|
3
|
+
export function getUrlProp(val: any): string | null;
|
|
4
|
+
export function isNameProxy(v: any): boolean;
|
|
5
|
+
export function isRefProxy(v: any): boolean;
|
|
6
|
+
export const isValidExplicitDest: (dest?: any) => boolean;
|
|
7
|
+
export class LoopbackPort {
|
|
8
|
+
postMessage(obj: any, transfer: any): void;
|
|
9
|
+
addEventListener(name: any, listener: any, options?: null): void;
|
|
10
|
+
removeEventListener(name: any, listener: any): void;
|
|
11
|
+
terminate(): void;
|
|
12
|
+
#private;
|
|
13
|
+
}
|
|
@@ -2,7 +2,7 @@ export class CanvasGraphics {
|
|
|
2
2
|
constructor(canvasCtx: any, commonObjs: any, objs: any, canvasFactory: any, filterFactory: any, { optionalContentConfig, markedContentStack }: {
|
|
3
3
|
optionalContentConfig: any;
|
|
4
4
|
markedContentStack?: null | undefined;
|
|
5
|
-
}, annotationCanvasMap: any, pageColors: any);
|
|
5
|
+
}, annotationCanvasMap: any, pageColors: any, dependencyTracker: any);
|
|
6
6
|
ctx: any;
|
|
7
7
|
current: CanvasExtraState;
|
|
8
8
|
stateStack: any[];
|
|
@@ -15,7 +15,6 @@ export class CanvasGraphics {
|
|
|
15
15
|
canvasFactory: any;
|
|
16
16
|
filterFactory: any;
|
|
17
17
|
groupStack: any[];
|
|
18
|
-
processingType3: any;
|
|
19
18
|
baseTransform: any;
|
|
20
19
|
baseTransformStack: any[];
|
|
21
20
|
groupLevel: number;
|
|
@@ -36,7 +35,8 @@ export class CanvasGraphics {
|
|
|
36
35
|
_cachedScaleForStroking: number[];
|
|
37
36
|
_cachedGetSinglePixelWidth: number | null;
|
|
38
37
|
_cachedBitmapsMap: Map<any, any>;
|
|
39
|
-
|
|
38
|
+
dependencyTracker: any;
|
|
39
|
+
getObject(opIdx: any, data: any, fallback?: null): any;
|
|
40
40
|
beginDrawing({ transform, viewport, transparency, background, }: {
|
|
41
41
|
transform: any;
|
|
42
42
|
viewport: any;
|
|
@@ -45,26 +45,26 @@ export class CanvasGraphics {
|
|
|
45
45
|
}): void;
|
|
46
46
|
compositeCtx: any;
|
|
47
47
|
transparentCanvas: any;
|
|
48
|
-
executeOperatorList(operatorList: any, executionStartIdx: any, continueCallback: any, stepper: any): any;
|
|
48
|
+
executeOperatorList(operatorList: any, executionStartIdx: any, continueCallback: any, stepper: any, operationsFilter: any): any;
|
|
49
49
|
endDrawing(): void;
|
|
50
50
|
_scaleImage(img: any, inverseTransform: any): {
|
|
51
51
|
img: any;
|
|
52
52
|
paintWidth: any;
|
|
53
53
|
paintHeight: any;
|
|
54
54
|
};
|
|
55
|
-
_createMaskCanvas(img: any): {
|
|
55
|
+
_createMaskCanvas(opIdx: any, img: any): {
|
|
56
56
|
canvas: any;
|
|
57
57
|
offsetX: number;
|
|
58
58
|
offsetY: number;
|
|
59
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;
|
|
60
|
+
setLineWidth(opIdx: any, width: any): void;
|
|
61
|
+
setLineCap(opIdx: any, style: any): void;
|
|
62
|
+
setLineJoin(opIdx: any, style: any): void;
|
|
63
|
+
setMiterLimit(opIdx: any, limit: any): void;
|
|
64
|
+
setDash(opIdx: any, dashArray: any, dashPhase: any): void;
|
|
65
|
+
setRenderingIntent(opIdx: any, intent: any): void;
|
|
66
|
+
setFlatness(opIdx: any, flatness: any): void;
|
|
67
|
+
setGState(opIdx: any, states: any): void;
|
|
68
68
|
get inSMaskMode(): boolean;
|
|
69
69
|
checkSMaskState(): void;
|
|
70
70
|
/**
|
|
@@ -76,94 +76,96 @@ export class CanvasGraphics {
|
|
|
76
76
|
* mode ends any clipping paths or transformations will still be active and in
|
|
77
77
|
* the right order on the canvas' graphics state stack.
|
|
78
78
|
*/
|
|
79
|
-
beginSMaskMode(): void;
|
|
79
|
+
beginSMaskMode(opIdx: any): void;
|
|
80
80
|
endSMaskMode(): void;
|
|
81
81
|
compose(dirtyBox: any): void;
|
|
82
82
|
composeSMask(ctx: any, smask: any, layerCtx: any, layerBox: any): void;
|
|
83
83
|
genericComposeSMask(maskCtx: any, layerCtx: any, width: any, height: any, subtype: any, backdrop: any, transferMap: any, layerOffsetX: any, layerOffsetY: any, maskOffsetX: any, maskOffsetY: any): void;
|
|
84
|
-
save(): void;
|
|
85
|
-
restore(): void;
|
|
86
|
-
transform(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
|
87
|
-
constructPath(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
84
|
+
save(opIdx: any): void;
|
|
85
|
+
restore(opIdx: any): void;
|
|
86
|
+
transform(opIdx: any, a: any, b: any, c: any, d: any, e: any, f: any): void;
|
|
87
|
+
constructPath(opIdx: any, op: any, data: any, minMax: any): void;
|
|
88
|
+
_pathStartIdx: any;
|
|
89
|
+
closePath(opIdx: any): void;
|
|
90
|
+
stroke(opIdx: any, path: any, consumePath?: boolean): void;
|
|
91
|
+
closeStroke(opIdx: any, path: any): void;
|
|
92
|
+
fill(opIdx: any, path: any, consumePath?: boolean): void;
|
|
93
|
+
eoFill(opIdx: any, path: any): void;
|
|
94
|
+
fillStroke(opIdx: any, path: any): void;
|
|
95
|
+
eoFillStroke(opIdx: any, path: any): void;
|
|
96
|
+
closeFillStroke(opIdx: any, path: any): void;
|
|
97
|
+
closeEOFillStroke(opIdx: any, path: any): void;
|
|
98
|
+
endPath(opIdx: any, path: any): void;
|
|
99
|
+
rawFillPath(opIdx: any, path: any): void;
|
|
100
|
+
clip(opIdx: any): void;
|
|
101
|
+
eoClip(opIdx: any): void;
|
|
102
|
+
beginText(opIdx: any): void;
|
|
103
|
+
endText(opIdx: any): void;
|
|
104
|
+
setCharSpacing(opIdx: any, spacing: any): void;
|
|
105
|
+
setWordSpacing(opIdx: any, spacing: any): void;
|
|
106
|
+
setHScale(opIdx: any, scale: any): void;
|
|
107
|
+
setLeading(opIdx: any, leading: any): void;
|
|
108
|
+
setFont(opIdx: any, fontRefName: any, size: any): void;
|
|
109
|
+
setTextRenderingMode(opIdx: any, mode: any): void;
|
|
110
|
+
setTextRise(opIdx: any, rise: any): void;
|
|
111
|
+
moveText(opIdx: any, x: any, y: any): void;
|
|
112
|
+
setLeadingMoveText(opIdx: any, x: any, y: any): void;
|
|
113
|
+
setTextMatrix(opIdx: any, matrix: any): void;
|
|
114
|
+
nextLine(opIdx: any): void;
|
|
115
|
+
paintChar(opIdx: any, character: any, x: any, y: any, patternFillTransform: any, patternStrokeTransform: any): void;
|
|
114
116
|
get isFontSubpixelAAEnabled(): any;
|
|
115
|
-
showText(glyphs: any):
|
|
116
|
-
showType3Text(glyphs: any): void;
|
|
117
|
-
setCharWidth(xWidth: any, yWidth: any): void;
|
|
118
|
-
setCharWidthAndBounds(xWidth: any, yWidth: any, llx: any, lly: any, urx: any, ury: any): void;
|
|
119
|
-
getColorN_Pattern(IR: any): any;
|
|
120
|
-
setStrokeColorN(...args: any[]): void;
|
|
121
|
-
setFillColorN(...args: any[]): void;
|
|
122
|
-
setStrokeRGBColor(
|
|
123
|
-
setStrokeTransparent(): void;
|
|
124
|
-
setFillRGBColor(
|
|
125
|
-
setFillTransparent(): void;
|
|
126
|
-
_getPattern(objId: any, matrix?: null): any;
|
|
127
|
-
shadingFill(objId: any): void;
|
|
117
|
+
showText(opIdx: any, glyphs: any): undefined;
|
|
118
|
+
showType3Text(opIdx: any, glyphs: any): void;
|
|
119
|
+
setCharWidth(opIdx: any, xWidth: any, yWidth: any): void;
|
|
120
|
+
setCharWidthAndBounds(opIdx: any, xWidth: any, yWidth: any, llx: any, lly: any, urx: any, ury: any): void;
|
|
121
|
+
getColorN_Pattern(opIdx: any, IR: any): any;
|
|
122
|
+
setStrokeColorN(opIdx: any, ...args: any[]): void;
|
|
123
|
+
setFillColorN(opIdx: any, ...args: any[]): void;
|
|
124
|
+
setStrokeRGBColor(opIdx: any, color: any): void;
|
|
125
|
+
setStrokeTransparent(opIdx: any): void;
|
|
126
|
+
setFillRGBColor(opIdx: any, color: any): void;
|
|
127
|
+
setFillTransparent(opIdx: any): void;
|
|
128
|
+
_getPattern(opIdx: any, objId: any, matrix?: null): any;
|
|
129
|
+
shadingFill(opIdx: any, objId: any): void;
|
|
128
130
|
beginInlineImage(): void;
|
|
129
131
|
beginImageData(): void;
|
|
130
|
-
paintFormXObjectBegin(matrix: any, bbox: any): void;
|
|
131
|
-
paintFormXObjectEnd(): void;
|
|
132
|
-
beginGroup(group: any): void;
|
|
133
|
-
endGroup(group: any): void;
|
|
134
|
-
beginAnnotation(id: any, rect: any, transform: any, matrix: any, hasOwnCanvas: any): void;
|
|
132
|
+
paintFormXObjectBegin(opIdx: any, matrix: any, bbox: any): void;
|
|
133
|
+
paintFormXObjectEnd(opIdx: any): void;
|
|
134
|
+
beginGroup(opIdx: any, group: any): void;
|
|
135
|
+
endGroup(opIdx: any, group: any): void;
|
|
136
|
+
beginAnnotation(opIdx: any, id: any, rect: any, transform: any, matrix: any, hasOwnCanvas: any): void;
|
|
135
137
|
annotationCanvas: any;
|
|
136
|
-
endAnnotation(): void;
|
|
137
|
-
paintImageMaskXObject(img: any): void;
|
|
138
|
-
paintImageMaskXObjectRepeat(img: any, scaleX: any, skewX: number | undefined, skewY: number | undefined, scaleY: any, positions: any): void;
|
|
139
|
-
paintImageMaskXObjectGroup(images: any): void;
|
|
140
|
-
paintImageXObject(objId: any): void;
|
|
141
|
-
paintImageXObjectRepeat(objId: any, scaleX: any, scaleY: any, positions: any): void;
|
|
138
|
+
endAnnotation(opIdx: any): void;
|
|
139
|
+
paintImageMaskXObject(opIdx: any, img: any): void;
|
|
140
|
+
paintImageMaskXObjectRepeat(opIdx: any, img: any, scaleX: any, skewX: number | undefined, skewY: number | undefined, scaleY: any, positions: any): void;
|
|
141
|
+
paintImageMaskXObjectGroup(opIdx: any, images: any): void;
|
|
142
|
+
paintImageXObject(opIdx: any, objId: any): void;
|
|
143
|
+
paintImageXObjectRepeat(opIdx: any, objId: any, scaleX: any, scaleY: any, positions: any): void;
|
|
142
144
|
applyTransferMapsToCanvas(ctx: any): any;
|
|
143
145
|
applyTransferMapsToBitmap(imgData: any): any;
|
|
144
|
-
paintInlineImageXObject(imgData: any): void;
|
|
145
|
-
paintInlineImageXObjectGroup(imgData: any, map: any): void;
|
|
146
|
-
paintSolidColorImageMask(): void;
|
|
147
|
-
markPoint(tag: any): void;
|
|
148
|
-
markPointProps(tag: any, properties: any): void;
|
|
149
|
-
beginMarkedContent(tag: any): void;
|
|
150
|
-
beginMarkedContentProps(tag: any, properties: any): void;
|
|
151
|
-
endMarkedContent(): void;
|
|
152
|
-
beginCompat(): void;
|
|
153
|
-
endCompat(): void;
|
|
154
|
-
consumePath(clipBox: any): void;
|
|
146
|
+
paintInlineImageXObject(opIdx: any, imgData: any): void;
|
|
147
|
+
paintInlineImageXObjectGroup(opIdx: any, imgData: any, map: any): void;
|
|
148
|
+
paintSolidColorImageMask(opIdx: any): void;
|
|
149
|
+
markPoint(opIdx: any, tag: any): void;
|
|
150
|
+
markPointProps(opIdx: any, tag: any, properties: any): void;
|
|
151
|
+
beginMarkedContent(opIdx: any, tag: any): void;
|
|
152
|
+
beginMarkedContentProps(opIdx: any, tag: any, properties: any): void;
|
|
153
|
+
endMarkedContent(opIdx: any): void;
|
|
154
|
+
beginCompat(opIdx: any): void;
|
|
155
|
+
endCompat(opIdx: any): void;
|
|
156
|
+
consumePath(opIdx: any, path: any, clipBox: any): void;
|
|
155
157
|
getSinglePixelWidth(): number;
|
|
156
158
|
getScaleForStroking(): number[];
|
|
157
|
-
rescaleAndStroke(saveRestore: any): void;
|
|
159
|
+
rescaleAndStroke(path: any, saveRestore: any): void;
|
|
158
160
|
isContentVisible(): boolean;
|
|
159
161
|
#private;
|
|
160
162
|
}
|
|
161
163
|
declare class CanvasExtraState {
|
|
162
|
-
constructor(width: any, height: any);
|
|
164
|
+
constructor(width: any, height: any, preInit: any);
|
|
163
165
|
alphaIsShape: boolean;
|
|
164
166
|
fontSize: number;
|
|
165
167
|
fontSizeScale: number;
|
|
166
|
-
textMatrix:
|
|
168
|
+
textMatrix: null;
|
|
167
169
|
textMatrixScale: number;
|
|
168
170
|
fontMatrix: number[];
|
|
169
171
|
leading: number;
|
|
@@ -183,23 +185,15 @@ declare class CanvasExtraState {
|
|
|
183
185
|
fillAlpha: number;
|
|
184
186
|
strokeAlpha: number;
|
|
185
187
|
lineWidth: number;
|
|
186
|
-
activeSMask:
|
|
188
|
+
activeSMask: null;
|
|
187
189
|
transferMaps: string;
|
|
190
|
+
clipBox: Float32Array<ArrayBuffer>;
|
|
191
|
+
minMax: Float32Array<ArrayBuffer>;
|
|
188
192
|
clone(): any;
|
|
189
|
-
|
|
190
|
-
updatePathMinMax(transform: any, x: any, y: any): void;
|
|
191
|
-
minX: any;
|
|
192
|
-
minY: any;
|
|
193
|
-
maxX: any;
|
|
194
|
-
maxY: any;
|
|
195
|
-
updateRectMinMax(transform: any, rect: any): void;
|
|
196
|
-
updateScalingPathMinMax(transform: any, minMax: any): void;
|
|
197
|
-
updateCurvePathMinMax(transform: any, x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): void;
|
|
198
|
-
getPathBoundingBox(pathType?: string, transform?: null): any[];
|
|
193
|
+
getPathBoundingBox(pathType?: string, transform?: null): Float32Array<ArrayBuffer>;
|
|
199
194
|
updateClipFromPath(): void;
|
|
200
195
|
isEmptyClip(): boolean;
|
|
201
196
|
startNewPathAndClipBox(box: any): void;
|
|
202
|
-
clipBox: any;
|
|
203
197
|
getClippedPathBoundingBox(pathType?: string, transform?: null): number[] | null;
|
|
204
198
|
}
|
|
205
199
|
declare class CachedCanvases {
|