@chialab/pdfjs-lib 1.0.0-alpha.4 → 1.0.0-alpha.5
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/dist/browser/{chunk-DYHYQ33L.js → chunk-KKGFKVEF.js} +103 -61
- package/dist/browser/index.js +328 -345
- package/dist/browser/worker.js +2353 -2087
- package/dist/lib/AnnotationData.d.ts +1 -1
- package/dist/node/{chunk-KTTVPO2G.js → chunk-PWUBNK7D.js} +103 -61
- package/dist/node/index.js +328 -345
- package/dist/node/worker.js +2353 -2087
- package/dist/pdf.js/src/display/api.d.ts +29 -4
- package/dist/pdf.js/src/display/canvas.d.ts +13 -17
- package/dist/pdf.js/src/display/display_utils.d.ts +10 -0
- package/dist/pdf.js/src/display/editor/editor.d.ts +1 -1
- package/dist/pdf.js/src/display/editor/highlight.d.ts +1 -0
- package/dist/pdf.js/src/display/editor/ink.d.ts +1 -0
- package/dist/pdf.js/src/display/editor/signature.d.ts +1 -0
- package/dist/pdf.js/src/display/editor/stamp.d.ts +1 -2
- package/dist/pdf.js/src/display/editor/tools.d.ts +0 -6
- package/dist/pdf.js/src/display/pattern_helper.d.ts +4 -2
- package/dist/pdf.js/src/display/touch_manager.d.ts +5 -1
- package/dist/pdf.js/src/pdf.d.ts +3 -1
- package/dist/pdf.js/src/shared/util.d.ts +105 -92
- package/package.json +1 -1
|
@@ -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.
|
|
@@ -619,6 +624,8 @@ export const build: string;
|
|
|
619
624
|
* @property {Object} [CMapReaderFactory] - The factory that will be used when
|
|
620
625
|
* reading built-in CMap files.
|
|
621
626
|
* The default value is {DOMCMapReaderFactory}.
|
|
627
|
+
* @property {string} [iccUrl] - The URL where the predefined ICC profiles are
|
|
628
|
+
* located. Include the trailing slash.
|
|
622
629
|
* @property {boolean} [useSystemFonts] - When `true`, fonts that aren't
|
|
623
630
|
* embedded in the PDF document will fallback to a system font.
|
|
624
631
|
* The default value is `true` in web environments and `false` in Node.js;
|
|
@@ -725,6 +732,7 @@ export const build: string;
|
|
|
725
732
|
* @returns {PDFDocumentLoadingTask}
|
|
726
733
|
*/
|
|
727
734
|
export function getDocument(src?: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask;
|
|
735
|
+
export const isValidExplicitDest: (dest?: any) => boolean;
|
|
728
736
|
export class LoopbackPort {
|
|
729
737
|
postMessage(obj: any, transfer: any): void;
|
|
730
738
|
addEventListener(name: any, listener: any, options?: null): void;
|
|
@@ -807,9 +815,18 @@ export class PDFDataRangeTransport {
|
|
|
807
815
|
*/
|
|
808
816
|
export class PDFDocumentLoadingTask {
|
|
809
817
|
static "__#55@#docId": number;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
818
|
+
/**
|
|
819
|
+
* @private
|
|
820
|
+
*/
|
|
821
|
+
private _capability;
|
|
822
|
+
/**
|
|
823
|
+
* @private
|
|
824
|
+
*/
|
|
825
|
+
private _transport;
|
|
826
|
+
/**
|
|
827
|
+
* @private
|
|
828
|
+
*/
|
|
829
|
+
private _worker;
|
|
813
830
|
/**
|
|
814
831
|
* Unique identifier for the document loading task.
|
|
815
832
|
* @type {string}
|
|
@@ -845,6 +862,13 @@ export class PDFDocumentLoadingTask {
|
|
|
845
862
|
* completed.
|
|
846
863
|
*/
|
|
847
864
|
destroy(): Promise<void>;
|
|
865
|
+
/**
|
|
866
|
+
* Attempt to fetch the raw data of the PDF document, when e.g.
|
|
867
|
+
* - An exception was thrown during document initialization.
|
|
868
|
+
* - An `onPassword` callback is delaying initialization.
|
|
869
|
+
* @returns {Promise<Uint8Array>}
|
|
870
|
+
*/
|
|
871
|
+
getData(): Promise<Uint8Array>;
|
|
848
872
|
}
|
|
849
873
|
/**
|
|
850
874
|
* Proxy to a `PDFDocument` in the worker thread.
|
|
@@ -1448,8 +1472,9 @@ export class PDFWorker {
|
|
|
1448
1472
|
static "__#58@#workerPorts": any;
|
|
1449
1473
|
/**
|
|
1450
1474
|
* @param {PDFWorkerParameters} params - The worker initialization parameters.
|
|
1475
|
+
* @returns {PDFWorker}
|
|
1451
1476
|
*/
|
|
1452
|
-
static fromPort(params: PDFWorkerParameters):
|
|
1477
|
+
static fromPort(params: PDFWorkerParameters): PDFWorker;
|
|
1453
1478
|
/**
|
|
1454
1479
|
* The current `workerSrc`, when it exists.
|
|
1455
1480
|
* @type {string}
|
|
@@ -84,17 +84,17 @@ export class CanvasGraphics {
|
|
|
84
84
|
save(): void;
|
|
85
85
|
restore(): void;
|
|
86
86
|
transform(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
|
87
|
-
constructPath(
|
|
87
|
+
constructPath(op: any, data: any, minMax: any): void;
|
|
88
88
|
closePath(): void;
|
|
89
|
-
stroke(consumePath?: boolean): void;
|
|
90
|
-
closeStroke(): void;
|
|
91
|
-
fill(consumePath?: boolean): void;
|
|
92
|
-
eoFill(): void;
|
|
93
|
-
fillStroke(): void;
|
|
94
|
-
eoFillStroke(): void;
|
|
95
|
-
closeFillStroke(): void;
|
|
96
|
-
closeEOFillStroke(): void;
|
|
97
|
-
endPath(): void;
|
|
89
|
+
stroke(path: any, consumePath?: boolean): void;
|
|
90
|
+
closeStroke(path: any): void;
|
|
91
|
+
fill(path: any, consumePath?: boolean): void;
|
|
92
|
+
eoFill(path: any): void;
|
|
93
|
+
fillStroke(path: any): void;
|
|
94
|
+
eoFillStroke(path: any): void;
|
|
95
|
+
closeFillStroke(path: any): void;
|
|
96
|
+
closeEOFillStroke(path: any): void;
|
|
97
|
+
endPath(path: any): void;
|
|
98
98
|
clip(): void;
|
|
99
99
|
eoClip(): void;
|
|
100
100
|
beginText(): void;
|
|
@@ -151,10 +151,10 @@ export class CanvasGraphics {
|
|
|
151
151
|
endMarkedContent(): void;
|
|
152
152
|
beginCompat(): void;
|
|
153
153
|
endCompat(): void;
|
|
154
|
-
consumePath(clipBox: any): void;
|
|
154
|
+
consumePath(path: any, clipBox: any): void;
|
|
155
155
|
getSinglePixelWidth(): number;
|
|
156
156
|
getScaleForStroking(): number[];
|
|
157
|
-
rescaleAndStroke(saveRestore: any): void;
|
|
157
|
+
rescaleAndStroke(path: any, saveRestore: any): void;
|
|
158
158
|
isContentVisible(): boolean;
|
|
159
159
|
#private;
|
|
160
160
|
}
|
|
@@ -186,15 +186,11 @@ declare class CanvasExtraState {
|
|
|
186
186
|
activeSMask: any;
|
|
187
187
|
transferMaps: string;
|
|
188
188
|
clone(): any;
|
|
189
|
-
|
|
190
|
-
updatePathMinMax(transform: any, x: any, y: any): void;
|
|
189
|
+
updateRectMinMax(transform: any, rect: any): void;
|
|
191
190
|
minX: any;
|
|
192
191
|
minY: any;
|
|
193
192
|
maxX: any;
|
|
194
193
|
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
194
|
getPathBoundingBox(pathType?: string, transform?: null): any[];
|
|
199
195
|
updateClipFromPath(): void;
|
|
200
196
|
isEmptyClip(): boolean;
|
|
@@ -97,6 +97,7 @@ export function noContextMenu(e: any): void;
|
|
|
97
97
|
* Scale factors for the canvas, necessary with HiDPI displays.
|
|
98
98
|
*/
|
|
99
99
|
export class OutputScale {
|
|
100
|
+
static get pixelRatio(): number;
|
|
100
101
|
/**
|
|
101
102
|
* @type {number} Horizontal scale.
|
|
102
103
|
*/
|
|
@@ -109,7 +110,16 @@ export class OutputScale {
|
|
|
109
110
|
* @type {boolean} Returns `true` when scaling is required, `false` otherwise.
|
|
110
111
|
*/
|
|
111
112
|
get scaled(): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* @type {boolean} Returns `true` when scaling is symmetric,
|
|
115
|
+
* `false` otherwise.
|
|
116
|
+
*/
|
|
112
117
|
get symmetric(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* @returns {boolean} Returns `true` if scaling was limited,
|
|
120
|
+
* `false` otherwise.
|
|
121
|
+
*/
|
|
122
|
+
limitCanvas(width: any, height: any, maxPixels: any, maxDim: any): boolean;
|
|
113
123
|
}
|
|
114
124
|
/**
|
|
115
125
|
* @typedef {Object} PageViewportParameters
|
|
@@ -420,7 +420,7 @@ export class AnnotationEditor {
|
|
|
420
420
|
/**
|
|
421
421
|
* @returns {HTMLElement | null} the element requiring an alt text.
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
getElementForAltText(): HTMLElement | null;
|
|
424
424
|
/**
|
|
425
425
|
* Get the div which really contains the displayed content.
|
|
426
426
|
* @returns {HTMLDivElement | undefined}
|
|
@@ -31,6 +31,7 @@ export class HighlightEditor extends AnnotationEditor {
|
|
|
31
31
|
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
|
32
32
|
constructor(params: any);
|
|
33
33
|
color: any;
|
|
34
|
+
defaultL10nId: string;
|
|
34
35
|
/** @inheritdoc */
|
|
35
36
|
get telemetryInitialData(): {
|
|
36
37
|
action: string;
|
|
@@ -20,6 +20,7 @@ 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;
|
|
23
24
|
/** @inheritdoc */
|
|
24
25
|
createDrawingOptions({ color, thickness, opacity }: {
|
|
25
26
|
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;
|
|
@@ -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;
|
|
@@ -38,8 +39,6 @@ export class StampEditor extends AnnotationEditor {
|
|
|
38
39
|
} | null;
|
|
39
40
|
};
|
|
40
41
|
/** @inheritdoc */
|
|
41
|
-
getImageForAltText(): null;
|
|
42
|
-
/** @inheritdoc */
|
|
43
42
|
serialize(isForCopying?: boolean, context?: null): Object | null;
|
|
44
43
|
/** @inheritdoc */
|
|
45
44
|
renderAnnotationElement(annotation: any): null;
|
|
@@ -416,9 +416,3 @@ export class KeyboardManager {
|
|
|
416
416
|
exec(self: Object, event: KeyboardEvent): void;
|
|
417
417
|
#private;
|
|
418
418
|
}
|
|
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;
|
|
@@ -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,7 +15,6 @@ 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;
|
|
@@ -31,6 +31,7 @@ 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
|
+
isModifyingCurrentTransform(): boolean;
|
|
34
35
|
getPattern(ctx: any, owner: any, inverse: any, pathType: any): any;
|
|
35
36
|
}
|
|
36
37
|
declare class RadialAxialShadingPattern extends BaseShadingPattern {
|
|
@@ -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 {};
|
|
@@ -8,7 +8,11 @@ export class TouchManager {
|
|
|
8
8
|
onPinchEnd?: null | undefined;
|
|
9
9
|
signal: any;
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* NOTE: Don't shadow this value since `devicePixelRatio` may change if the
|
|
13
|
+
* window resolution changes, e.g. if the viewer is moved to another monitor.
|
|
14
|
+
*/
|
|
15
|
+
get MIN_TOUCH_DISTANCE_TO_PINCH(): number;
|
|
12
16
|
destroy(): void;
|
|
13
17
|
#private;
|
|
14
18
|
}
|
package/dist/pdf.js/src/pdf.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { ImageKind } from "./shared/util.js";
|
|
|
29
29
|
import { InvalidPDFException } from "./shared/util.js";
|
|
30
30
|
import { isDataScheme } from "./display/display_utils.js";
|
|
31
31
|
import { isPdfFile } from "./display/display_utils.js";
|
|
32
|
+
import { isValidExplicitDest } from "./display/api.js";
|
|
33
|
+
import { MathClamp } from "./shared/util.js";
|
|
32
34
|
import { noContextMenu } from "./display/display_utils.js";
|
|
33
35
|
import { normalizeUnicode } from "./shared/util.js";
|
|
34
36
|
import { OPS } from "./shared/util.js";
|
|
@@ -52,4 +54,4 @@ import { Util } from "./shared/util.js";
|
|
|
52
54
|
import { VerbosityLevel } from "./shared/util.js";
|
|
53
55
|
import { version } from "./display/api.js";
|
|
54
56
|
import { XfaLayer } from "./display/xfa_layer.js";
|
|
55
|
-
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, AnnotationType, build, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getUuid, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, noContextMenu, normalizeUnicode, OPS, OutputScale, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, ResponseException, setLayerDimensions, shadow, SignatureExtractor, stopEvent, SupportedImageMimeTypes, TextLayer, TouchManager, Util, VerbosityLevel, version, XfaLayer };
|
|
57
|
+
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, AnnotationType, build, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getUuid, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, isValidExplicitDest, MathClamp, noContextMenu, normalizeUnicode, OPS, OutputScale, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, ResponseException, setLayerDimensions, shadow, SignatureExtractor, stopEvent, SupportedImageMimeTypes, TextLayer, TouchManager, Util, VerbosityLevel, version, XfaLayer };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export function _isValidExplicitDest(validRef: any, validName: any, dest: any): boolean;
|
|
1
2
|
declare const AbortException_base: any;
|
|
2
3
|
/**
|
|
3
4
|
* Error used to indicate task cancellation.
|
|
@@ -157,6 +158,12 @@ export namespace DocumentActionEventType {
|
|
|
157
158
|
let WP: string;
|
|
158
159
|
let DP: string;
|
|
159
160
|
}
|
|
161
|
+
export namespace DrawOPS {
|
|
162
|
+
let moveTo: number;
|
|
163
|
+
let lineTo: number;
|
|
164
|
+
let curveTo: number;
|
|
165
|
+
let closePath: number;
|
|
166
|
+
}
|
|
160
167
|
export class FeatureTest {
|
|
161
168
|
static get isLittleEndian(): any;
|
|
162
169
|
static get isEvalSupported(): any;
|
|
@@ -195,100 +202,105 @@ export function isArrayEqual(arr1: any, arr2: any): boolean;
|
|
|
195
202
|
export const isNodeJS: any;
|
|
196
203
|
export const LINE_DESCENT_FACTOR: 0.35;
|
|
197
204
|
export const LINE_FACTOR: 1.35;
|
|
205
|
+
export function MathClamp(v: any, min: any, max: any): number;
|
|
198
206
|
export function normalizeUnicode(str: any): any;
|
|
199
207
|
export function objectFromMap(map: any): any;
|
|
200
208
|
export function objectSize(obj: any): number;
|
|
201
209
|
export namespace OPS {
|
|
202
|
-
let dependency: number;
|
|
203
|
-
let setLineWidth: number;
|
|
204
|
-
let setLineCap: number;
|
|
205
|
-
let setLineJoin: number;
|
|
206
|
-
let setMiterLimit: number;
|
|
207
|
-
let setDash: number;
|
|
208
|
-
let setRenderingIntent: number;
|
|
209
|
-
let setFlatness: number;
|
|
210
|
-
let setGState: number;
|
|
211
|
-
let save: number;
|
|
212
|
-
let restore: number;
|
|
213
|
-
let transform: number;
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
let
|
|
217
|
-
|
|
218
|
-
let
|
|
219
|
-
|
|
220
|
-
let
|
|
221
|
-
let
|
|
222
|
-
let
|
|
223
|
-
|
|
224
|
-
let
|
|
225
|
-
let
|
|
226
|
-
let
|
|
227
|
-
let
|
|
228
|
-
let
|
|
229
|
-
let
|
|
230
|
-
let
|
|
231
|
-
let
|
|
232
|
-
let
|
|
233
|
-
let
|
|
234
|
-
let
|
|
235
|
-
let
|
|
236
|
-
let
|
|
237
|
-
let
|
|
238
|
-
let
|
|
239
|
-
let
|
|
240
|
-
let
|
|
241
|
-
let
|
|
242
|
-
let
|
|
243
|
-
let
|
|
244
|
-
let
|
|
245
|
-
let
|
|
246
|
-
let
|
|
247
|
-
let
|
|
248
|
-
let
|
|
249
|
-
let
|
|
250
|
-
let
|
|
251
|
-
let
|
|
252
|
-
let
|
|
253
|
-
let
|
|
254
|
-
let
|
|
255
|
-
let
|
|
256
|
-
let
|
|
257
|
-
let
|
|
258
|
-
let
|
|
259
|
-
let
|
|
260
|
-
let
|
|
261
|
-
let
|
|
262
|
-
let
|
|
263
|
-
let
|
|
264
|
-
let
|
|
265
|
-
let
|
|
266
|
-
let
|
|
267
|
-
let
|
|
268
|
-
let
|
|
269
|
-
let
|
|
270
|
-
let
|
|
271
|
-
let
|
|
272
|
-
let
|
|
273
|
-
let
|
|
274
|
-
let
|
|
275
|
-
let
|
|
276
|
-
let
|
|
277
|
-
let
|
|
278
|
-
let
|
|
279
|
-
let
|
|
280
|
-
let
|
|
281
|
-
let
|
|
282
|
-
let
|
|
283
|
-
let
|
|
284
|
-
let
|
|
285
|
-
let
|
|
286
|
-
let
|
|
287
|
-
let
|
|
288
|
-
let
|
|
289
|
-
let
|
|
290
|
-
let
|
|
291
|
-
let
|
|
210
|
+
export let dependency: number;
|
|
211
|
+
export let setLineWidth: number;
|
|
212
|
+
export let setLineCap: number;
|
|
213
|
+
export let setLineJoin: number;
|
|
214
|
+
export let setMiterLimit: number;
|
|
215
|
+
export let setDash: number;
|
|
216
|
+
export let setRenderingIntent: number;
|
|
217
|
+
export let setFlatness: number;
|
|
218
|
+
export let setGState: number;
|
|
219
|
+
export let save: number;
|
|
220
|
+
export let restore: number;
|
|
221
|
+
export let transform: number;
|
|
222
|
+
let moveTo_1: number;
|
|
223
|
+
export { moveTo_1 as moveTo };
|
|
224
|
+
let lineTo_1: number;
|
|
225
|
+
export { lineTo_1 as lineTo };
|
|
226
|
+
let curveTo_1: number;
|
|
227
|
+
export { curveTo_1 as curveTo };
|
|
228
|
+
export let curveTo2: number;
|
|
229
|
+
export let curveTo3: number;
|
|
230
|
+
let closePath_1: number;
|
|
231
|
+
export { closePath_1 as closePath };
|
|
232
|
+
export let rectangle: number;
|
|
233
|
+
export let stroke: number;
|
|
234
|
+
export let closeStroke: number;
|
|
235
|
+
export let fill: number;
|
|
236
|
+
export let eoFill: number;
|
|
237
|
+
export let fillStroke: number;
|
|
238
|
+
export let eoFillStroke: number;
|
|
239
|
+
export let closeFillStroke: number;
|
|
240
|
+
export let closeEOFillStroke: number;
|
|
241
|
+
export let endPath: number;
|
|
242
|
+
export let clip: number;
|
|
243
|
+
export let eoClip: number;
|
|
244
|
+
export let beginText: number;
|
|
245
|
+
export let endText: number;
|
|
246
|
+
export let setCharSpacing: number;
|
|
247
|
+
export let setWordSpacing: number;
|
|
248
|
+
export let setHScale: number;
|
|
249
|
+
export let setLeading: number;
|
|
250
|
+
export let setFont: number;
|
|
251
|
+
export let setTextRenderingMode: number;
|
|
252
|
+
export let setTextRise: number;
|
|
253
|
+
export let moveText: number;
|
|
254
|
+
export let setLeadingMoveText: number;
|
|
255
|
+
export let setTextMatrix: number;
|
|
256
|
+
export let nextLine: number;
|
|
257
|
+
export let showText: number;
|
|
258
|
+
export let showSpacedText: number;
|
|
259
|
+
export let nextLineShowText: number;
|
|
260
|
+
export let nextLineSetSpacingShowText: number;
|
|
261
|
+
export let setCharWidth: number;
|
|
262
|
+
export let setCharWidthAndBounds: number;
|
|
263
|
+
export let setStrokeColorSpace: number;
|
|
264
|
+
export let setFillColorSpace: number;
|
|
265
|
+
export let setStrokeColor: number;
|
|
266
|
+
export let setStrokeColorN: number;
|
|
267
|
+
export let setFillColor: number;
|
|
268
|
+
export let setFillColorN: number;
|
|
269
|
+
export let setStrokeGray: number;
|
|
270
|
+
export let setFillGray: number;
|
|
271
|
+
export let setStrokeRGBColor: number;
|
|
272
|
+
export let setFillRGBColor: number;
|
|
273
|
+
export let setStrokeCMYKColor: number;
|
|
274
|
+
export let setFillCMYKColor: number;
|
|
275
|
+
export let shadingFill: number;
|
|
276
|
+
export let beginInlineImage: number;
|
|
277
|
+
export let beginImageData: number;
|
|
278
|
+
export let endInlineImage: number;
|
|
279
|
+
export let paintXObject: number;
|
|
280
|
+
export let markPoint: number;
|
|
281
|
+
export let markPointProps: number;
|
|
282
|
+
export let beginMarkedContent: number;
|
|
283
|
+
export let beginMarkedContentProps: number;
|
|
284
|
+
export let endMarkedContent: number;
|
|
285
|
+
export let beginCompat: number;
|
|
286
|
+
export let endCompat: number;
|
|
287
|
+
export let paintFormXObjectBegin: number;
|
|
288
|
+
export let paintFormXObjectEnd: number;
|
|
289
|
+
export let beginGroup: number;
|
|
290
|
+
export let endGroup: number;
|
|
291
|
+
export let beginAnnotation: number;
|
|
292
|
+
export let endAnnotation: number;
|
|
293
|
+
export let paintImageMaskXObject: number;
|
|
294
|
+
export let paintImageMaskXObjectGroup: number;
|
|
295
|
+
export let paintImageXObject: number;
|
|
296
|
+
export let paintInlineImageXObject: number;
|
|
297
|
+
export let paintInlineImageXObjectGroup: number;
|
|
298
|
+
export let paintImageXObjectRepeat: number;
|
|
299
|
+
export let paintImageMaskXObjectRepeat: number;
|
|
300
|
+
export let paintSolidColorImageMask: number;
|
|
301
|
+
export let constructPath: number;
|
|
302
|
+
export let setStrokeTransparent: number;
|
|
303
|
+
export let setFillTransparent: number;
|
|
292
304
|
}
|
|
293
305
|
export namespace PageActionEventType {
|
|
294
306
|
export let O: string;
|
|
@@ -366,7 +378,6 @@ export function unreachable(msg: any): void;
|
|
|
366
378
|
export function utf8StringToString(str: any): string;
|
|
367
379
|
export class Util {
|
|
368
380
|
static makeHexColor(r: any, g: any, b: any): string;
|
|
369
|
-
static scaleMinMax(transform: any, minMax: any): void;
|
|
370
381
|
static transform(m1: any, m2: any): any[];
|
|
371
382
|
static applyTransform(p: any, m: any): any[];
|
|
372
383
|
static applyInverseTransform(p: any, m: any): number[];
|
|
@@ -375,9 +386,11 @@ export class Util {
|
|
|
375
386
|
static singularValueDecompose2dScale(m: any): number[];
|
|
376
387
|
static normalizeRect(rect: any): any;
|
|
377
388
|
static intersect(rect1: any, rect2: any): number[] | null;
|
|
389
|
+
static pointBoundingBox(x: any, y: any, minMax: any): void;
|
|
390
|
+
static rectBoundingBox(x0: any, y0: any, x1: any, y1: any, minMax: any): void;
|
|
378
391
|
static "__#1@#getExtremumOnCurve"(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, t: any, minMax: any): void;
|
|
379
392
|
static "__#1@#getExtremum"(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, a: any, b: any, c: any, minMax: any): void;
|
|
380
|
-
static bezierBoundingBox(x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any):
|
|
393
|
+
static bezierBoundingBox(x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): void;
|
|
381
394
|
}
|
|
382
395
|
export namespace VerbosityLevel {
|
|
383
396
|
let ERRORS: number;
|
package/package.json
CHANGED