@chialab/pdfjs-lib 1.0.0-alpha.3 → 1.0.0-alpha.30
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 +21400 -4931
- package/dist/browser/openjpeg-Q27OVS4T.js +9 -0
- package/dist/browser/qcms_bg-BCJEADMU.js +9 -0
- package/dist/browser/worker.js +8311 -7089
- 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 +29 -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-PVXQMWFJ.js +20 -0
- package/dist/node/chunk-4Y7OZIIX.js +1319 -0
- package/dist/node/chunk-O74KGUUC.js +2093 -0
- package/dist/node/chunk-T2JWSGAF.js +1225 -0
- package/dist/node/chunk-ZFIGV5OT.js +63 -0
- package/dist/node/index.js +23520 -8727
- package/dist/node/openjpeg-QFJSFVSJ.js +9 -0
- package/dist/node/qcms_bg-PRPVJQFC.js +9 -0
- package/dist/node/worker.js +8320 -7096
- 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
|
@@ -73,7 +73,7 @@ export class AnnotationEditor {
|
|
|
73
73
|
* @param {AnnotationEditorLayer} parent
|
|
74
74
|
*/
|
|
75
75
|
static paste(item: DataTransferItem, parent: AnnotationEditorLayer): void;
|
|
76
|
-
static "__#
|
|
76
|
+
static "__#private@#rotatePoint"(x: any, y: any, angle: any): any[];
|
|
77
77
|
static _round(x: any): number;
|
|
78
78
|
/**
|
|
79
79
|
* Deserialize the editor.
|
|
@@ -91,6 +91,7 @@ export class AnnotationEditor {
|
|
|
91
91
|
* @param {AnnotationEditorParameters} parameters
|
|
92
92
|
*/
|
|
93
93
|
constructor(parameters: AnnotationEditorParameters);
|
|
94
|
+
isSelected: boolean;
|
|
94
95
|
_isCopy: boolean;
|
|
95
96
|
_editToolbar: null;
|
|
96
97
|
_initialOptions: any;
|
|
@@ -108,6 +109,8 @@ export class AnnotationEditor {
|
|
|
108
109
|
annotationElementId: any;
|
|
109
110
|
_willKeepAspectRatio: boolean;
|
|
110
111
|
_structTreeParentId: any;
|
|
112
|
+
creationDate: any;
|
|
113
|
+
modificationDate: any;
|
|
111
114
|
rotation: number;
|
|
112
115
|
pageRotation: number;
|
|
113
116
|
pageDimensions: any[];
|
|
@@ -117,6 +120,7 @@ export class AnnotationEditor {
|
|
|
117
120
|
isAttachedToDOM: boolean;
|
|
118
121
|
deleted: boolean;
|
|
119
122
|
get editorType(): any;
|
|
123
|
+
get mode(): any;
|
|
120
124
|
/**
|
|
121
125
|
* Get the properties to update in the UI for this editor.
|
|
122
126
|
* @returns {Array}
|
|
@@ -124,6 +128,7 @@ export class AnnotationEditor {
|
|
|
124
128
|
get propertiesToUpdate(): any[];
|
|
125
129
|
set _isDraggable(value: boolean);
|
|
126
130
|
get _isDraggable(): boolean;
|
|
131
|
+
get uid(): any;
|
|
127
132
|
/**
|
|
128
133
|
* @returns {boolean} true if the editor handles the Enter key itself.
|
|
129
134
|
*/
|
|
@@ -232,11 +237,8 @@ export class AnnotationEditor {
|
|
|
232
237
|
get parentDimensions(): number[];
|
|
233
238
|
/**
|
|
234
239
|
* Set the dimensions of this editor.
|
|
235
|
-
* @param {number} width
|
|
236
|
-
* @param {number} height
|
|
237
240
|
*/
|
|
238
|
-
setDims(
|
|
239
|
-
fixDims(): void;
|
|
241
|
+
setDims(): void;
|
|
240
242
|
/**
|
|
241
243
|
* Get the translation used to position this editor when it's created.
|
|
242
244
|
* @returns {Array<number>}
|
|
@@ -254,15 +256,26 @@ export class AnnotationEditor {
|
|
|
254
256
|
* Called when the alt text dialog is closed.
|
|
255
257
|
*/
|
|
256
258
|
altTextFinish(): void;
|
|
259
|
+
/**
|
|
260
|
+
* Get the toolbar buttons for this editor.
|
|
261
|
+
* @returns {Array<Array<string|object|null>>|null}
|
|
262
|
+
*/
|
|
263
|
+
get toolbarButtons(): Array<Array<string | object | null>> | null;
|
|
257
264
|
/**
|
|
258
265
|
* Add a toolbar for this editor.
|
|
259
266
|
* @returns {Promise<EditorToolbar|null>}
|
|
260
267
|
*/
|
|
261
268
|
addEditToolbar(): Promise<EditorToolbar | null>;
|
|
269
|
+
addCommentButtonInToolbar(): void;
|
|
270
|
+
removeCommentButtonFromToolbar(): void;
|
|
262
271
|
removeEditToolbar(): void;
|
|
263
272
|
addContainer(container: any): void;
|
|
264
273
|
getClientDimensions(): DOMRect;
|
|
265
|
-
|
|
274
|
+
/**
|
|
275
|
+
* Create the alt text for this editor.
|
|
276
|
+
* @returns {object}
|
|
277
|
+
*/
|
|
278
|
+
createAltText(): object;
|
|
266
279
|
/**
|
|
267
280
|
* Set the alt text data.
|
|
268
281
|
*/
|
|
@@ -273,6 +286,46 @@ export class AnnotationEditor {
|
|
|
273
286
|
serializeAltText(isForCopying: any): any;
|
|
274
287
|
hasAltText(): boolean;
|
|
275
288
|
hasAltTextData(): any;
|
|
289
|
+
focusCommentButton(): void;
|
|
290
|
+
addCommentButton(): Comment;
|
|
291
|
+
addStandaloneCommentButton(): void;
|
|
292
|
+
removeStandaloneCommentButton(): void;
|
|
293
|
+
hideStandaloneCommentButton(): void;
|
|
294
|
+
set comment(text: {
|
|
295
|
+
text: any;
|
|
296
|
+
richText: any;
|
|
297
|
+
date: any;
|
|
298
|
+
deleted: any;
|
|
299
|
+
color: any;
|
|
300
|
+
opacity: any;
|
|
301
|
+
});
|
|
302
|
+
get comment(): {
|
|
303
|
+
text: any;
|
|
304
|
+
richText: any;
|
|
305
|
+
date: any;
|
|
306
|
+
deleted: any;
|
|
307
|
+
color: any;
|
|
308
|
+
opacity: any;
|
|
309
|
+
};
|
|
310
|
+
setCommentData({ comment, popupRef, richText }: {
|
|
311
|
+
comment: any;
|
|
312
|
+
popupRef: any;
|
|
313
|
+
richText: any;
|
|
314
|
+
}): void;
|
|
315
|
+
get hasEditedComment(): any;
|
|
316
|
+
get hasDeletedComment(): any;
|
|
317
|
+
get hasComment(): boolean;
|
|
318
|
+
editComment(options: any): Promise<void>;
|
|
319
|
+
toggleComment(isSelected: any, visibility?: undefined): void;
|
|
320
|
+
setSelectedCommentButton(selected: any): void;
|
|
321
|
+
addComment(serialized: any): void;
|
|
322
|
+
updateFromAnnotationLayer({ popup: { contents, deleted } }: {
|
|
323
|
+
popup: {
|
|
324
|
+
contents: any;
|
|
325
|
+
deleted: any;
|
|
326
|
+
};
|
|
327
|
+
}): void;
|
|
328
|
+
get parentBoundingClientRect(): DOMRect;
|
|
276
329
|
/**
|
|
277
330
|
* Render this editor in a div.
|
|
278
331
|
* @returns {HTMLDivElement | null}
|
|
@@ -283,7 +336,6 @@ export class AnnotationEditor {
|
|
|
283
336
|
* @param {PointerEvent} event
|
|
284
337
|
*/
|
|
285
338
|
pointerdown(event: PointerEvent): void;
|
|
286
|
-
get isSelected(): any;
|
|
287
339
|
_onStartDragging(): void;
|
|
288
340
|
_onStopDragging(): void;
|
|
289
341
|
moveInDOM(): void;
|
|
@@ -296,6 +348,31 @@ export class AnnotationEditor {
|
|
|
296
348
|
*/
|
|
297
349
|
getRect(tx: number, ty: number, rotation?: number): any[];
|
|
298
350
|
getRectInCurrentCoords(rect: any, pageHeight: any): any[];
|
|
351
|
+
/**
|
|
352
|
+
* Get the rect in page coordinates without any translation.
|
|
353
|
+
* It's used when serializing the editor.
|
|
354
|
+
* @returns {Array<number>}
|
|
355
|
+
*/
|
|
356
|
+
getPDFRect(): Array<number>;
|
|
357
|
+
getNonHCMColor(): any;
|
|
358
|
+
/**
|
|
359
|
+
* The color has been changed.
|
|
360
|
+
*/
|
|
361
|
+
onUpdatedColor(): void;
|
|
362
|
+
getData(): {
|
|
363
|
+
id: any;
|
|
364
|
+
pageIndex: number;
|
|
365
|
+
rect: number[];
|
|
366
|
+
richText: any;
|
|
367
|
+
contentsObj: {
|
|
368
|
+
str: any;
|
|
369
|
+
};
|
|
370
|
+
creationDate: any;
|
|
371
|
+
modificationDate: any;
|
|
372
|
+
popupRef: boolean;
|
|
373
|
+
color: any;
|
|
374
|
+
opacity: any;
|
|
375
|
+
};
|
|
299
376
|
/**
|
|
300
377
|
* Executed once this editor has been rendered.
|
|
301
378
|
* @param {boolean} focus - true if the editor should be focused.
|
|
@@ -308,12 +385,14 @@ export class AnnotationEditor {
|
|
|
308
385
|
isEmpty(): boolean;
|
|
309
386
|
/**
|
|
310
387
|
* Enable edit mode.
|
|
388
|
+
* @returns {boolean} - true if the edit mode has been enabled.
|
|
311
389
|
*/
|
|
312
|
-
enableEditMode():
|
|
390
|
+
enableEditMode(): boolean;
|
|
313
391
|
/**
|
|
314
392
|
* Disable edit mode.
|
|
393
|
+
* @returns {boolean} - true if the edit mode has been disabled.
|
|
315
394
|
*/
|
|
316
|
-
disableEditMode():
|
|
395
|
+
disableEditMode(): boolean;
|
|
317
396
|
/**
|
|
318
397
|
* Check if the editor is edited.
|
|
319
398
|
* @returns {boolean}
|
|
@@ -382,6 +461,19 @@ export class AnnotationEditor {
|
|
|
382
461
|
*/
|
|
383
462
|
makeResizable(): void;
|
|
384
463
|
get toolbarPosition(): null;
|
|
464
|
+
/**
|
|
465
|
+
* Get the position of the comment button.
|
|
466
|
+
* @returns {Array<number>|null}
|
|
467
|
+
*/
|
|
468
|
+
get commentButtonPosition(): Array<number> | null;
|
|
469
|
+
get commentButtonPositionInPage(): number[];
|
|
470
|
+
get commentButtonColor(): any;
|
|
471
|
+
set commentPopupPosition(pos: any);
|
|
472
|
+
get commentPopupPosition(): any;
|
|
473
|
+
hasDefaultPopupPosition(): any;
|
|
474
|
+
get commentButtonWidth(): any;
|
|
475
|
+
get elementBeforePopup(): HTMLDivElement | null;
|
|
476
|
+
setCommentButtonStates(options: any): void;
|
|
385
477
|
/**
|
|
386
478
|
* onkeydown callback.
|
|
387
479
|
* @param {KeyboardEvent} event
|
|
@@ -393,6 +485,7 @@ export class AnnotationEditor {
|
|
|
393
485
|
* Select this editor.
|
|
394
486
|
*/
|
|
395
487
|
select(): void;
|
|
488
|
+
focus(): void;
|
|
396
489
|
/**
|
|
397
490
|
* Unselect this editor.
|
|
398
491
|
*/
|
|
@@ -413,14 +506,26 @@ export class AnnotationEditor {
|
|
|
413
506
|
* their properties.
|
|
414
507
|
*/
|
|
415
508
|
enableEditing(): void;
|
|
509
|
+
/**
|
|
510
|
+
* Check if the content of this editor can be changed.
|
|
511
|
+
* For example, a FreeText editor can be changed (the user can change the
|
|
512
|
+
* text), but a Stamp editor cannot.
|
|
513
|
+
* @returns {boolean}
|
|
514
|
+
*/
|
|
515
|
+
get canChangeContent(): boolean;
|
|
416
516
|
/**
|
|
417
517
|
* The editor is about to be edited.
|
|
418
518
|
*/
|
|
419
519
|
enterInEditMode(): void;
|
|
520
|
+
/**
|
|
521
|
+
* ondblclick callback.
|
|
522
|
+
* @param {MouseEvent} event
|
|
523
|
+
*/
|
|
524
|
+
dblclick(event: MouseEvent): void;
|
|
420
525
|
/**
|
|
421
526
|
* @returns {HTMLElement | null} the element requiring an alt text.
|
|
422
527
|
*/
|
|
423
|
-
|
|
528
|
+
getElementForAltText(): HTMLElement | null;
|
|
424
529
|
/**
|
|
425
530
|
* Get the div which really contains the displayed content.
|
|
426
531
|
* @returns {HTMLDivElement | undefined}
|
|
@@ -436,12 +541,6 @@ export class AnnotationEditor {
|
|
|
436
541
|
* @type {boolean}
|
|
437
542
|
*/
|
|
438
543
|
get isEditing(): boolean;
|
|
439
|
-
/**
|
|
440
|
-
* Set the aspect ratio to use when resizing.
|
|
441
|
-
* @param {number} width
|
|
442
|
-
* @param {number} height
|
|
443
|
-
*/
|
|
444
|
-
setAspectRatio(width: number, height: number): void;
|
|
445
544
|
/**
|
|
446
545
|
* Get the data to report to the telemetry when the editor is added.
|
|
447
546
|
* @returns {Object}
|
|
@@ -460,6 +559,7 @@ export class AnnotationEditor {
|
|
|
460
559
|
show(visible?: boolean | undefined): void;
|
|
461
560
|
enable(): void;
|
|
462
561
|
disable(): void;
|
|
562
|
+
updateFakeAnnotationElement(annotationLayer: any): void;
|
|
463
563
|
/**
|
|
464
564
|
* Render an annotation in the annotation layer.
|
|
465
565
|
* @param {Object} annotation
|
|
@@ -471,4 +571,5 @@ export class AnnotationEditor {
|
|
|
471
571
|
}
|
|
472
572
|
import { AnnotationEditorUIManager } from "./tools.js";
|
|
473
573
|
import { EditorToolbar } from "./toolbar.js";
|
|
574
|
+
import { Comment } from "./comment.js";
|
|
474
575
|
import { ColorManager } from "./tools.js";
|
|
@@ -16,15 +16,20 @@ export class FreeTextEditor extends AnnotationEditor {
|
|
|
16
16
|
static updateDefaultParams(type: any, value: any): void;
|
|
17
17
|
/** @inheritdoc */
|
|
18
18
|
static get defaultPropertiesToUpdate(): any[][];
|
|
19
|
-
static "__#
|
|
20
|
-
static "__#
|
|
19
|
+
static "__#private@#getNodeContent"(node: any): any;
|
|
20
|
+
static "__#private@#deserializeContent"(content: any): any;
|
|
21
21
|
/** @inheritdoc */
|
|
22
22
|
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
|
23
23
|
constructor(params: any);
|
|
24
|
+
_colorPicker: null;
|
|
25
|
+
color: any;
|
|
24
26
|
/** @inheritdoc */
|
|
25
27
|
updateParams(type: any, value: any): void;
|
|
26
28
|
/** @inheritdoc */
|
|
27
29
|
get propertiesToUpdate(): any[][];
|
|
30
|
+
/** @inheritdoc */
|
|
31
|
+
get toolbarButtons(): (string | null)[][];
|
|
32
|
+
get colorType(): number;
|
|
28
33
|
/**
|
|
29
34
|
* Helper to translate the editor with the keyboard when it's empty.
|
|
30
35
|
* @param {number} x in page units.
|
|
@@ -38,11 +43,8 @@ export class FreeTextEditor extends AnnotationEditor {
|
|
|
38
43
|
* @returns {undefined}
|
|
39
44
|
*/
|
|
40
45
|
commit(): undefined;
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
* @param {MouseEvent} event
|
|
44
|
-
*/
|
|
45
|
-
dblclick(event: MouseEvent): void;
|
|
46
|
+
/** @inheritdoc */
|
|
47
|
+
keydown(event: any): void;
|
|
46
48
|
editorDivKeydown(event: any): void;
|
|
47
49
|
editorDivFocus(event: any): void;
|
|
48
50
|
editorDivBlur(event: any): void;
|
|
@@ -51,6 +53,8 @@ export class FreeTextEditor extends AnnotationEditor {
|
|
|
51
53
|
overlayDiv: HTMLDivElement | undefined;
|
|
52
54
|
editorDivPaste(event: any): void;
|
|
53
55
|
/** @inheritdoc */
|
|
56
|
+
getPDFRect(): any[];
|
|
57
|
+
/** @inheritdoc */
|
|
54
58
|
serialize(isForCopying?: boolean): Object | null;
|
|
55
59
|
/** @inheritdoc */
|
|
56
60
|
renderAnnotationElement(annotation: any): HTMLElement | null;
|
|
@@ -19,18 +19,20 @@ export class HighlightEditor extends AnnotationEditor {
|
|
|
19
19
|
/** @inheritdoc */
|
|
20
20
|
static updateDefaultParams(type: any, value: any): void;
|
|
21
21
|
static get defaultPropertiesToUpdate(): (number | null)[][];
|
|
22
|
-
static "__#
|
|
22
|
+
static "__#private@#rotateBbox"([x, y, width, height]: [any, any, any, any], angle: any): any[];
|
|
23
23
|
static startHighlighting(parent: any, isLTR: any, { target: textLayer, x, y }: {
|
|
24
24
|
target: any;
|
|
25
25
|
x: any;
|
|
26
26
|
y: any;
|
|
27
27
|
}): void;
|
|
28
|
-
static "__#
|
|
29
|
-
static "__#
|
|
28
|
+
static "__#private@#highlightMove"(parent: any, event: any): void;
|
|
29
|
+
static "__#private@#endHighlight"(parent: any, event: any): void;
|
|
30
30
|
/** @inheritdoc */
|
|
31
31
|
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
|
32
32
|
constructor(params: any);
|
|
33
33
|
color: any;
|
|
34
|
+
opacity: any;
|
|
35
|
+
defaultL10nId: string;
|
|
34
36
|
/** @inheritdoc */
|
|
35
37
|
get telemetryInitialData(): {
|
|
36
38
|
action: string;
|
|
@@ -47,10 +49,14 @@ export class HighlightEditor extends AnnotationEditor {
|
|
|
47
49
|
/** @inheritdoc */
|
|
48
50
|
translateInPage(x: any, y: any): void;
|
|
49
51
|
/** @inheritdoc */
|
|
52
|
+
get commentButtonPosition(): null;
|
|
53
|
+
/** @inheritdoc */
|
|
50
54
|
updateParams(type: any, value: any): void;
|
|
51
55
|
/** @inheritdoc */
|
|
52
56
|
get propertiesToUpdate(): any[][];
|
|
53
57
|
/** @inheritdoc */
|
|
58
|
+
get toolbarButtons(): any;
|
|
59
|
+
/** @inheritdoc */
|
|
54
60
|
fixAndSetPosition(): void;
|
|
55
61
|
/** @inheritdoc */
|
|
56
62
|
getRect(tx: any, ty: any): any[];
|
|
@@ -20,6 +20,12 @@ export class InkEditor extends DrawingEditor {
|
|
|
20
20
|
static createDrawerInstance(x: any, y: any, parentWidth: any, parentHeight: any, rotation: any): InkDrawOutliner;
|
|
21
21
|
/** @inheritdoc */
|
|
22
22
|
static deserializeDraw(pageX: any, pageY: any, pageWidth: any, pageHeight: any, innerMargin: any, data: any): any;
|
|
23
|
+
defaultL10nId: string;
|
|
24
|
+
/** @inheritdoc */
|
|
25
|
+
get toolbarButtons(): (string | null)[][];
|
|
26
|
+
get colorType(): number;
|
|
27
|
+
get color(): any;
|
|
28
|
+
get opacity(): any;
|
|
23
29
|
/** @inheritdoc */
|
|
24
30
|
createDrawingOptions({ color, thickness, opacity }: {
|
|
25
31
|
color: any;
|
|
@@ -17,6 +17,7 @@ export class SignatureEditor extends DrawingEditor {
|
|
|
17
17
|
};
|
|
18
18
|
/** @inheritdoc */
|
|
19
19
|
static deserializeDraw(pageX: any, pageY: any, pageWidth: any, pageHeight: any, innerMargin: any, data: any): any;
|
|
20
|
+
defaultL10nId: string;
|
|
20
21
|
/** @inheritdoc */
|
|
21
22
|
get telemetryFinalData(): {
|
|
22
23
|
type: string;
|
|
@@ -30,6 +31,8 @@ export class SignatureEditor extends DrawingEditor {
|
|
|
30
31
|
areContours: any;
|
|
31
32
|
outline: InkDrawOutline;
|
|
32
33
|
};
|
|
34
|
+
/** @inheritdoc */
|
|
35
|
+
get toolbarButtons(): any[][] | null;
|
|
33
36
|
addSignature(data: any, heightInPage: any, description: any, uuid: any): void;
|
|
34
37
|
getFromImage(bitmap: any): {
|
|
35
38
|
outline: InkDrawOutline;
|
|
@@ -63,15 +66,10 @@ export class SignatureEditor extends DrawingEditor {
|
|
|
63
66
|
_drawingOptions: any;
|
|
64
67
|
/** @inheritdoc */
|
|
65
68
|
serialize(isForCopying?: boolean): {
|
|
66
|
-
annotationType: number;
|
|
67
69
|
isSignature: boolean;
|
|
68
70
|
areContours: boolean;
|
|
69
71
|
color: number[];
|
|
70
72
|
thickness: any;
|
|
71
|
-
pageIndex: number;
|
|
72
|
-
rect: any;
|
|
73
|
-
rotation: number;
|
|
74
|
-
structTreeParentId: any;
|
|
75
73
|
} | null;
|
|
76
74
|
#private;
|
|
77
75
|
}
|
|
@@ -17,6 +17,7 @@ export class StampEditor extends AnnotationEditor {
|
|
|
17
17
|
/** @inheritdoc */
|
|
18
18
|
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
|
19
19
|
constructor(params: any);
|
|
20
|
+
defaultL10nId: string;
|
|
20
21
|
/** @inheritdoc */
|
|
21
22
|
get telemetryFinalData(): {
|
|
22
23
|
type: string;
|
|
@@ -25,6 +26,8 @@ export class StampEditor extends AnnotationEditor {
|
|
|
25
26
|
mlGuessAltText(imageData?: null, updateAltTextData?: boolean): Promise<any>;
|
|
26
27
|
/** @inheritdoc */
|
|
27
28
|
onceAdded(focus: any): void;
|
|
29
|
+
/** @inheritdoc */
|
|
30
|
+
get toolbarButtons(): (string | object)[][];
|
|
28
31
|
setCanvas(annotationElementId: any, canvas: any): void;
|
|
29
32
|
onScaleChanging(): void;
|
|
30
33
|
copyCanvas(maxDataDimension: any, maxPreviewDimension: any, createImageData?: boolean): {
|
|
@@ -34,12 +37,10 @@ export class StampEditor extends AnnotationEditor {
|
|
|
34
37
|
imageData: {
|
|
35
38
|
width: any;
|
|
36
39
|
height: any;
|
|
37
|
-
data:
|
|
40
|
+
data: ImageDataArray;
|
|
38
41
|
} | null;
|
|
39
42
|
};
|
|
40
43
|
/** @inheritdoc */
|
|
41
|
-
getImageForAltText(): null;
|
|
42
|
-
/** @inheritdoc */
|
|
43
44
|
serialize(isForCopying?: boolean, context?: null): Object | null;
|
|
44
45
|
/** @inheritdoc */
|
|
45
46
|
renderAnnotationElement(annotation: any): null;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
export class EditorToolbar {
|
|
2
|
-
static "__#
|
|
3
|
-
static "__#
|
|
2
|
+
static "__#private@#l10nRemove": null;
|
|
3
|
+
static "__#private@#pointerDown"(e: any): void;
|
|
4
4
|
constructor(editor: any);
|
|
5
5
|
render(): HTMLDivElement;
|
|
6
6
|
get div(): null;
|
|
7
7
|
hide(): void;
|
|
8
8
|
show(): void;
|
|
9
|
+
addDeleteButton(): void;
|
|
9
10
|
addAltText(altText: any): Promise<void>;
|
|
11
|
+
addComment(comment: any, beforeElement?: null): void;
|
|
10
12
|
addColorPicker(colorPicker: any): void;
|
|
11
13
|
addEditSignatureButton(signatureManager: any): Promise<void>;
|
|
14
|
+
removeButton(name: any): void;
|
|
15
|
+
addButton(name: any, tool: any): Promise<void>;
|
|
16
|
+
addButtonBefore(name: any, tool: any, beforeSelector: any): Promise<void>;
|
|
12
17
|
updateEditSignatureButton(description: any): void;
|
|
13
18
|
remove(): void;
|
|
14
19
|
#private;
|
|
15
20
|
}
|
|
16
|
-
export class
|
|
21
|
+
export class FloatingToolbar {
|
|
17
22
|
constructor(uiManager: any);
|
|
18
23
|
show(parent: any, boxes: any, isLTR: any): void;
|
|
19
24
|
hide(): void;
|
|
@@ -12,7 +12,7 @@ export class AnnotationEditorUIManager {
|
|
|
12
12
|
static TRANSLATE_SMALL: number;
|
|
13
13
|
static TRANSLATE_BIG: number;
|
|
14
14
|
static get _keyboardManager(): any;
|
|
15
|
-
constructor(container: any, viewer: any, altTextManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any, mlManager: any, editorUndoBar: any, supportsPinchToZoom: any);
|
|
15
|
+
constructor(container: any, viewer: any, viewerAlert: any, altTextManager: any, commentManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any, mlManager: any, editorUndoBar: any, supportsPinchToZoom: any);
|
|
16
16
|
_editorUndoBar: null;
|
|
17
17
|
_signal: AbortSignal;
|
|
18
18
|
_eventBus: any;
|
|
@@ -29,8 +29,11 @@ export class AnnotationEditorUIManager {
|
|
|
29
29
|
get useNewAltTextWhenAddingImage(): boolean;
|
|
30
30
|
get hcmFilter(): any;
|
|
31
31
|
get direction(): any;
|
|
32
|
+
get _highlightColors(): any;
|
|
32
33
|
get highlightColors(): any;
|
|
33
34
|
get highlightColorNames(): any;
|
|
35
|
+
getNonHCMColor(color: any): any;
|
|
36
|
+
getNonHCMColorName(color: any): any;
|
|
34
37
|
/**
|
|
35
38
|
* Set the current drawing session.
|
|
36
39
|
* @param {AnnotationEditorLayer} layer
|
|
@@ -38,6 +41,16 @@ export class AnnotationEditorUIManager {
|
|
|
38
41
|
setCurrentDrawingSession(layer: AnnotationEditorLayer): void;
|
|
39
42
|
setMainHighlightColorPicker(colorPicker: any): void;
|
|
40
43
|
editAltText(editor: any, firstTime?: boolean): void;
|
|
44
|
+
hasCommentManager(): boolean;
|
|
45
|
+
editComment(editor: any, posX: any, posY: any, options: any): void;
|
|
46
|
+
selectComment(pageIndex: any, uid: any): void;
|
|
47
|
+
updateComment(editor: any): void;
|
|
48
|
+
updatePopupColor(editor: any): void;
|
|
49
|
+
removeComment(editor: any): void;
|
|
50
|
+
toggleComment(editor: any, isSelected: any, visibility?: undefined): void;
|
|
51
|
+
makeCommentColor(color: any, opacity: any): any;
|
|
52
|
+
getCommentDialogElement(): any;
|
|
53
|
+
waitForEditorsRendered(pageNumber: any): Promise<void>;
|
|
41
54
|
getSignature(editor: any): void;
|
|
42
55
|
get signatureManager(): null;
|
|
43
56
|
switchToMode(mode: any, callback: any): void;
|
|
@@ -60,12 +73,23 @@ export class AnnotationEditorUIManager {
|
|
|
60
73
|
onRotationChanging({ pagesRotation }: {
|
|
61
74
|
pagesRotation: any;
|
|
62
75
|
}): void;
|
|
63
|
-
highlightSelection(methodOfCreation?: string): void;
|
|
76
|
+
highlightSelection(methodOfCreation?: string, comment?: boolean): void;
|
|
77
|
+
commentSelection(methodOfCreation?: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* Some annotations may have been modified in the annotation layer
|
|
80
|
+
* (e.g. comments added or modified).
|
|
81
|
+
* So this function retrieves the data from the storage and removes
|
|
82
|
+
* them from the storage in order to be able to save them later.
|
|
83
|
+
* @param {string} annotationId
|
|
84
|
+
* @returns {Object|null} The data associated to the annotation or null.
|
|
85
|
+
*/
|
|
86
|
+
getAndRemoveDataFromAnnotationStorage(annotationId: string): Object | null;
|
|
64
87
|
/**
|
|
65
88
|
* Add an editor in the annotation storage.
|
|
66
89
|
* @param {AnnotationEditor} editor
|
|
67
90
|
*/
|
|
68
91
|
addToAnnotationStorage(editor: AnnotationEditor): void;
|
|
92
|
+
a11yAlert(messageId: any, args?: null): void;
|
|
69
93
|
blur(): void;
|
|
70
94
|
focus(): void;
|
|
71
95
|
addEditListeners(): void;
|
|
@@ -141,15 +165,20 @@ export class AnnotationEditorUIManager {
|
|
|
141
165
|
* @param {string|null} editId
|
|
142
166
|
* @param {boolean} [isFromKeyboard] - true if the mode change is due to a
|
|
143
167
|
* keyboard action.
|
|
168
|
+
* @param {boolean} [mustEnterInEditMode] - true if the editor must enter in
|
|
169
|
+
* edit mode.
|
|
170
|
+
* @param {boolean} [editComment] - true if the mode change is due to a
|
|
171
|
+
* comment edit.
|
|
144
172
|
*/
|
|
145
|
-
updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean): Promise<void>;
|
|
173
|
+
updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean, mustEnterInEditMode?: boolean, editComment?: boolean): Promise<void>;
|
|
146
174
|
addNewEditorFromKeyboard(): void;
|
|
147
175
|
/**
|
|
148
176
|
* Update the toolbar if it's required to reflect the tool currently used.
|
|
177
|
+
* @param {Object} options
|
|
149
178
|
* @param {number} mode
|
|
150
179
|
* @returns {undefined}
|
|
151
180
|
*/
|
|
152
|
-
updateToolbar(
|
|
181
|
+
updateToolbar(options: Object): undefined;
|
|
153
182
|
/**
|
|
154
183
|
* Update a parameter in the current editor or globally.
|
|
155
184
|
* @param {number} type
|
|
@@ -161,9 +190,9 @@ export class AnnotationEditorUIManager {
|
|
|
161
190
|
/**
|
|
162
191
|
* Get all the editors belonging to a given page.
|
|
163
192
|
* @param {number} pageIndex
|
|
164
|
-
* @
|
|
193
|
+
* @yields {AnnotationEditor}
|
|
165
194
|
*/
|
|
166
|
-
getEditors(pageIndex: number):
|
|
195
|
+
getEditors(pageIndex: number): Generator<any, void, unknown>;
|
|
167
196
|
/**
|
|
168
197
|
* Get an editor with the given id.
|
|
169
198
|
* @param {string} id
|
|
@@ -297,6 +326,7 @@ export class AnnotationEditorUIManager {
|
|
|
297
326
|
* @returns {number}
|
|
298
327
|
*/
|
|
299
328
|
getMode(): number;
|
|
329
|
+
isEditingMode(): boolean;
|
|
300
330
|
get imageManager(): any;
|
|
301
331
|
getSelectionBoxes(textLayer: any): {
|
|
302
332
|
x: number;
|
|
@@ -416,9 +446,3 @@ export class KeyboardManager {
|
|
|
416
446
|
exec(self: Object, event: KeyboardEvent): void;
|
|
417
447
|
#private;
|
|
418
448
|
}
|
|
419
|
-
/**
|
|
420
|
-
* Convert a number between 0 and 100 into an hex number between 0 and 255.
|
|
421
|
-
* @param {number} opacity
|
|
422
|
-
* @return {string}
|
|
423
|
-
*/
|
|
424
|
-
export function opacityToHex(opacity: number): string;
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
export class FontFaceObject {
|
|
2
|
-
constructor(translatedData: any, inspectFont
|
|
2
|
+
constructor(translatedData: any, inspectFont: null | undefined, extra: any, charProcOperatorList: any);
|
|
3
3
|
compiledGlyphs: any;
|
|
4
4
|
_inspectFont: any;
|
|
5
|
+
charProcOperatorList: any;
|
|
5
6
|
createNativeFontFace(): FontFace | null;
|
|
6
7
|
createFontFaceRule(): string | null;
|
|
7
8
|
getPathGenerator(objs: any, character: any): any;
|
|
9
|
+
get black(): any;
|
|
10
|
+
get bold(): any;
|
|
11
|
+
get disableFontFace(): any;
|
|
12
|
+
get fontExtraProperties(): any;
|
|
13
|
+
get isInvalidPDFjsFont(): any;
|
|
14
|
+
get isType3Font(): any;
|
|
15
|
+
get italic(): any;
|
|
16
|
+
get missingFile(): any;
|
|
17
|
+
get remeasure(): any;
|
|
18
|
+
get vertical(): any;
|
|
19
|
+
get ascent(): any;
|
|
20
|
+
get defaultWidth(): any;
|
|
21
|
+
get descent(): any;
|
|
22
|
+
get bbox(): any;
|
|
23
|
+
get fontMatrix(): any;
|
|
24
|
+
get fallbackName(): any;
|
|
25
|
+
get loadedName(): any;
|
|
26
|
+
get mimetype(): any;
|
|
27
|
+
get name(): any;
|
|
28
|
+
get data(): any;
|
|
29
|
+
clearData(): void;
|
|
30
|
+
get cssFontInfo(): any;
|
|
31
|
+
get systemFontInfo(): any;
|
|
32
|
+
get defaultVMetrics(): any;
|
|
33
|
+
#private;
|
|
8
34
|
}
|
|
9
35
|
export class FontLoader {
|
|
10
36
|
constructor({ ownerDocument, styleElement, }: {
|
|
@@ -6,7 +6,8 @@ export namespace PathType {
|
|
|
6
6
|
}
|
|
7
7
|
export class TilingPattern {
|
|
8
8
|
static MAX_PATTERN_SIZE: number;
|
|
9
|
-
constructor(IR: any,
|
|
9
|
+
constructor(IR: any, ctx: any, canvasGraphicsFactory: any, baseTransform: any);
|
|
10
|
+
color: any;
|
|
10
11
|
operatorList: any;
|
|
11
12
|
matrix: any;
|
|
12
13
|
bbox: any;
|
|
@@ -14,11 +15,10 @@ export class TilingPattern {
|
|
|
14
15
|
ystep: any;
|
|
15
16
|
paintType: any;
|
|
16
17
|
tilingType: any;
|
|
17
|
-
color: any;
|
|
18
18
|
ctx: any;
|
|
19
19
|
canvasGraphicsFactory: any;
|
|
20
20
|
baseTransform: any;
|
|
21
|
-
createPatternCanvas(owner: any): {
|
|
21
|
+
createPatternCanvas(owner: any, opIdx: any): {
|
|
22
22
|
canvas: any;
|
|
23
23
|
scaleX: any;
|
|
24
24
|
scaleY: any;
|
|
@@ -31,7 +31,8 @@ export class TilingPattern {
|
|
|
31
31
|
};
|
|
32
32
|
clipBbox(graphics: any, x0: any, y0: any, x1: any, y1: any): void;
|
|
33
33
|
setFillAndStrokeStyleToContext(graphics: any, paintType: any, color: any): void;
|
|
34
|
-
|
|
34
|
+
isModifyingCurrentTransform(): boolean;
|
|
35
|
+
getPattern(ctx: any, owner: any, inverse: any, pathType: any, opIdx: any): any;
|
|
35
36
|
}
|
|
36
37
|
declare class RadialAxialShadingPattern extends BaseShadingPattern {
|
|
37
38
|
constructor(IR: any);
|
|
@@ -68,6 +69,7 @@ declare class DummyShadingPattern extends BaseShadingPattern {
|
|
|
68
69
|
getPattern(): string;
|
|
69
70
|
}
|
|
70
71
|
declare class BaseShadingPattern {
|
|
72
|
+
isModifyingCurrentTransform(): boolean;
|
|
71
73
|
getPattern(): void;
|
|
72
74
|
}
|
|
73
75
|
export {};
|