@chialab/pdfjs-lib 1.0.0-alpha.18 → 1.0.0-alpha.19

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.
Files changed (37) hide show
  1. package/dist/browser/NodeCanvasFactory-OREYUFNU.js +58 -0
  2. package/dist/browser/chunk-5IWODJWD.js +801 -0
  3. package/dist/browser/chunk-MXRUYXDD.js +1127 -0
  4. package/dist/browser/{chunk-O4CM6PII.js → chunk-NJUB3B5A.js} +5 -787
  5. package/dist/browser/index.js +68 -1107
  6. package/dist/browser/worker.js +16 -14
  7. package/dist/lib/NodeCanvasFactory.d.ts +9 -0
  8. package/dist/lib/NodeFilterFactory.d.ts +10 -0
  9. package/dist/lib/utils.d.ts +1 -1
  10. package/dist/node/NodeCanvasFactory-N32SOXPQ.js +8 -0
  11. package/dist/node/chunk-QCIN557M.js +1424 -0
  12. package/dist/node/{chunk-4FQTXXTH.js → chunk-XMKSLA4K.js} +5 -787
  13. package/dist/node/chunk-ZKUTXCS2.js +801 -0
  14. package/dist/node/index.js +115 -1482
  15. package/dist/node/worker.js +16 -14
  16. package/dist/pdf.js/src/display/api.d.ts +5 -5
  17. package/dist/pdf.js/src/display/display_utils.d.ts +1 -1
  18. package/dist/pdf.js/src/display/draw_layer.d.ts +2 -2
  19. package/dist/pdf.js/src/display/editor/alt_text.d.ts +1 -1
  20. package/dist/pdf.js/src/display/editor/annotation_editor_layer.d.ts +1 -1
  21. package/dist/pdf.js/src/display/editor/color_picker.d.ts +1 -1
  22. package/dist/pdf.js/src/display/editor/draw.d.ts +7 -7
  23. package/dist/pdf.js/src/display/editor/drawers/freedraw.d.ts +3 -3
  24. package/dist/pdf.js/src/display/editor/drawers/signaturedraw.d.ts +13 -13
  25. package/dist/pdf.js/src/display/editor/editor.d.ts +1 -1
  26. package/dist/pdf.js/src/display/editor/freetext.d.ts +2 -2
  27. package/dist/pdf.js/src/display/editor/highlight.d.ts +4 -4
  28. package/dist/pdf.js/src/display/editor/stamp.d.ts +1 -1
  29. package/dist/pdf.js/src/display/editor/toolbar.d.ts +2 -2
  30. package/dist/pdf.js/src/display/text_layer.d.ts +9 -9
  31. package/dist/pdf.js/src/display/worker_options.d.ts +2 -2
  32. package/dist/pdf.js/src/shared/util.d.ts +2 -2
  33. package/dist/pdf.js/web/text_accessibility.d.ts +1 -1
  34. package/package.json +2 -2
  35. package/dist/pdf.js/src/display/cmap_reader_factory.d.ts +0 -25
  36. package/dist/pdf.js/src/display/node_utils.d.ts +0 -32
  37. package/dist/pdf.js/src/display/wasm_factory.d.ts +0 -20
@@ -1,3 +1,13 @@
1
+ import {
2
+ DateFormats,
3
+ MessageHandler,
4
+ MurmurHash3_64,
5
+ TimeFormats,
6
+ convertBlackAndWhiteToRGBA,
7
+ convertToRGBA,
8
+ grayToRGBA,
9
+ wrapReason
10
+ } from "./chunk-ZKUTXCS2.js";
1
11
  import {
2
12
  AbortException,
3
13
  AnnotationActionEventType,
@@ -11,7 +21,6 @@ import {
11
21
  AnnotationType,
12
22
  BASELINE_FACTOR,
13
23
  BaseException,
14
- DateFormats,
15
24
  DocumentActionEventType,
16
25
  DrawOPS,
17
26
  FONT_IDENTITY_MATRIX,
@@ -22,8 +31,6 @@ import {
22
31
  LINE_DESCENT_FACTOR,
23
32
  LINE_FACTOR,
24
33
  MathClamp,
25
- MessageHandler,
26
- MurmurHash3_64,
27
34
  OPS,
28
35
  PageActionEventType,
29
36
  PasswordException,
@@ -31,19 +38,15 @@ import {
31
38
  PermissionFlag,
32
39
  RenderingIntentFlag,
33
40
  TextRenderingMode,
34
- TimeFormats,
35
41
  Util,
36
42
  VerbosityLevel,
37
43
  _isValidExplicitDest,
38
44
  assert,
39
45
  bytesToString,
40
- convertBlackAndWhiteToRGBA,
41
- convertToRGBA,
42
46
  createValidAbsoluteUrl,
43
47
  fromBase64Util,
44
48
  getModificationDate,
45
49
  getVerbosityLevel,
46
- grayToRGBA,
47
50
  hexNumbers,
48
51
  info,
49
52
  isArrayEqual,
@@ -59,9 +62,8 @@ import {
59
62
  toHexUtil,
60
63
  unreachable,
61
64
  utf8StringToString,
62
- warn,
63
- wrapReason
64
- } from "./chunk-4FQTXXTH.js";
65
+ warn
66
+ } from "./chunk-XMKSLA4K.js";
65
67
  import {
66
68
  __privateAdd,
67
69
  __privateGet,
@@ -9757,7 +9759,7 @@ var JpegStream = _JpegStream;
9757
9759
 
9758
9760
  // src/pdf.js/external/openjpeg/openjpeg.js
9759
9761
  var OpenJPEG = /* @__PURE__ */ (() => {
9760
- return async function(moduleArg = {}) {
9762
+ return (async function(moduleArg = {}) {
9761
9763
  var moduleRtn;
9762
9764
  var Module = moduleArg;
9763
9765
  var readyPromiseResolve, readyPromiseReject;
@@ -10358,7 +10360,7 @@ var OpenJPEG = /* @__PURE__ */ (() => {
10358
10360
  run();
10359
10361
  moduleRtn = readyPromise;
10360
10362
  return moduleRtn;
10361
- };
10363
+ });
10362
10364
  })();
10363
10365
  var openjpeg_default = OpenJPEG;
10364
10366
 
@@ -31763,7 +31765,7 @@ var Font = class {
31763
31765
  );
31764
31766
  builder.addTable(
31765
31767
  "hmtx",
31766
- function fontFieldsHmtx() {
31768
+ (function fontFieldsHmtx() {
31767
31769
  const charstrings = font.charstrings;
31768
31770
  const cffWidths = font.cff ? font.cff.widths : null;
31769
31771
  let hmtx = "\0\0\0\0";
@@ -31778,7 +31780,7 @@ var Font = class {
31778
31780
  hmtx += string16(width) + string16(0);
31779
31781
  }
31780
31782
  return hmtx;
31781
- }()
31783
+ })()
31782
31784
  );
31783
31785
  builder.addTable(
31784
31786
  "maxp",
@@ -802,7 +802,7 @@ export class PDFDataRangeTransport {
802
802
  * after which individual pages can be rendered.
803
803
  */
804
804
  export class PDFDocumentLoadingTask {
805
- static "__#57@#docId": number;
805
+ static #docId: number;
806
806
  /**
807
807
  * @private
808
808
  */
@@ -1455,9 +1455,9 @@ export class PDFPageProxy {
1455
1455
  * @param {PDFWorkerParameters} params - The worker initialization parameters.
1456
1456
  */
1457
1457
  export class PDFWorker {
1458
- static "__#60@#fakeWorkerId": number;
1459
- static "__#60@#isWorkerDisabled": boolean;
1460
- static "__#60@#workerPorts": WeakMap<WeakKey, any>;
1458
+ static #fakeWorkerId: number;
1459
+ static #isWorkerDisabled: boolean;
1460
+ static #workerPorts: WeakMap<WeakKey, any>;
1461
1461
  /**
1462
1462
  * @param {PDFWorkerParameters} params - The worker initialization parameters.
1463
1463
  * @returns {PDFWorker}
@@ -1468,7 +1468,7 @@ export class PDFWorker {
1468
1468
  * @type {string}
1469
1469
  */
1470
1470
  static get workerSrc(): string;
1471
- static get "__#60@#mainThreadWorkerMessageHandler"(): any;
1471
+ static get #mainThreadWorkerMessageHandler(): any;
1472
1472
  static get _setupFakeWorkerGlobal(): any;
1473
1473
  constructor({ name, port, verbosity, }?: {
1474
1474
  name?: null | undefined;
@@ -208,7 +208,7 @@ export class PageViewport {
208
208
  convertToPdfPoint(x: number, y: number): any[];
209
209
  }
210
210
  export class PDFDateString {
211
- static "__#2@#regex": any;
211
+ static #regex: any;
212
212
  /**
213
213
  * Convert a PDF date string to a JavaScript `Date` object.
214
214
  *
@@ -4,9 +4,9 @@
4
4
  * be able to use mix-blend-mode for some of them.
5
5
  */
6
6
  export class DrawLayer {
7
- static "__#33@#id": number;
7
+ static #id: number;
8
8
  static get _svgFactory(): any;
9
- static "__#33@#setBox"(element: any, [x, y, width, height]: [any, any, any, any]): void;
9
+ static #setBox(element: any, [x, y, width, height]: [any, any, any, any]): void;
10
10
  constructor({ pageIndex }: {
11
11
  pageIndex: any;
12
12
  });
@@ -1,5 +1,5 @@
1
1
  export class AltText {
2
- static "__#40@#l10nNewButton": null;
2
+ static #l10nNewButton: null;
3
3
  static _l10n: null;
4
4
  static initialize(l10n: any): void;
5
5
  constructor(editor: any);
@@ -46,7 +46,7 @@ export type RenderEditorLayerOptions = {
46
46
  */
47
47
  export class AnnotationEditorLayer {
48
48
  static _initialized: boolean;
49
- static "__#34@#editorTypes": Map<number, typeof FreeTextEditor | typeof HighlightEditor | typeof InkEditor | typeof SignatureEditor | typeof StampEditor>;
49
+ static #editorTypes: Map<number, typeof FreeTextEditor | typeof HighlightEditor | typeof InkEditor | typeof SignatureEditor | typeof StampEditor>;
50
50
  /**
51
51
  * @param {AnnotationEditorLayerOptions} options
52
52
  */
@@ -1,5 +1,5 @@
1
1
  export class ColorPicker {
2
- static "__#23@#l10nColor": null;
2
+ static #l10nColor: null;
3
3
  static get _keyboardManager(): any;
4
4
  constructor({ editor, uiManager }: {
5
5
  editor?: null | undefined;
@@ -4,13 +4,13 @@
4
4
  export class DrawingEditor extends AnnotationEditor {
5
5
  static _currentDrawId: number;
6
6
  static _currentParent: null;
7
- static "__#26@#currentDraw": null;
8
- static "__#26@#currentDrawingAC": null;
9
- static "__#26@#currentDrawingOptions": null;
10
- static "__#26@#currentPointerId": number;
11
- static "__#26@#currentPointerType": null;
12
- static "__#26@#currentPointerIds": null;
13
- static "__#26@#currentMoveTimestamp": number;
7
+ static #currentDraw: null;
8
+ static #currentDrawingAC: null;
9
+ static #currentDrawingOptions: null;
10
+ static #currentPointerId: number;
11
+ static #currentPointerType: null;
12
+ static #currentPointerIds: null;
13
+ static #currentMoveTimestamp: number;
14
14
  static _INNER_MARGIN: number;
15
15
  static _mergeSVGProperties(p1: any, p2: any): any;
16
16
  /**
@@ -11,9 +11,9 @@ export class FreeDrawOutline extends Outline {
11
11
  #private;
12
12
  }
13
13
  export class FreeDrawOutliner {
14
- static "__#19@#MIN_DIST": number;
15
- static "__#19@#MIN_DIFF": number;
16
- static "__#19@#MIN": number;
14
+ static #MIN_DIST: number;
15
+ static #MIN_DIFF: number;
16
+ static #MIN: number;
17
17
  constructor({ x, y }: {
18
18
  x: any;
19
19
  y: any;
@@ -2,29 +2,29 @@
2
2
  * Basic text editor in order to create a Signature annotation.
3
3
  */
4
4
  export class SignatureExtractor {
5
- static "__#30@#PARAMETERS": {
5
+ static #PARAMETERS: {
6
6
  maxDim: number;
7
7
  sigmaSFactor: number;
8
8
  sigmaR: number;
9
9
  kernelSize: number;
10
10
  };
11
- static "__#30@#neighborIndexToId"(i0: any, j0: any, i: any, j: any): any;
12
- static "__#30@#neighborIdToIndex": Int32Array<ArrayBuffer>;
13
- static "__#30@#clockwiseNonZero"(buf: any, width: any, i0: any, j0: any, i: any, j: any, offset: any): number;
14
- static "__#30@#counterClockwiseNonZero"(buf: any, width: any, i0: any, j0: any, i: any, j: any, offset: any): number;
15
- static "__#30@#findContours"(buf: any, width: any, height: any, threshold: any): {
11
+ static #neighborIndexToId(i0: any, j0: any, i: any, j: any): any;
12
+ static #neighborIdToIndex: Int32Array<ArrayBuffer>;
13
+ static #clockwiseNonZero(buf: any, width: any, i0: any, j0: any, i: any, j: any, offset: any): number;
14
+ static #counterClockwiseNonZero(buf: any, width: any, i0: any, j0: any, i: any, j: any, offset: any): number;
15
+ static #findContours(buf: any, width: any, height: any, threshold: any): {
16
16
  isHole: boolean;
17
17
  points: number[];
18
18
  id: number;
19
19
  parent: number;
20
20
  }[];
21
- static "__#30@#douglasPeuckerHelper"(points: any, start: any, end: any, output: any): void;
22
- static "__#30@#douglasPeucker"(points: any): any[] | null;
23
- static "__#30@#bilateralFilter"(buf: any, width: any, height: any, sigmaS: any, sigmaR: any, kernelSize: any): (Uint32Array<ArrayBuffer> | Uint8Array<any>)[];
24
- static "__#30@#getHistogram"(buf: any): Uint32Array<ArrayBuffer>;
25
- static "__#30@#toUint8"(buf: any): Uint8ClampedArray<ArrayBuffer>;
26
- static "__#30@#guessThreshold"(histogram: any): number;
27
- static "__#30@#getGrayPixels"(bitmap: any): any[];
21
+ static #douglasPeuckerHelper(points: any, start: any, end: any, output: any): void;
22
+ static #douglasPeucker(points: any): any[] | null;
23
+ static #bilateralFilter(buf: any, width: any, height: any, sigmaS: any, sigmaR: any, kernelSize: any): (Uint32Array<ArrayBuffer> | Uint8Array<any>)[];
24
+ static #getHistogram(buf: any): Uint32Array<ArrayBuffer>;
25
+ static #toUint8(buf: any): Uint8ClampedArray<ArrayBuffer>;
26
+ static #guessThreshold(histogram: any): number;
27
+ static #getGrayPixels(bitmap: any): any[];
28
28
  static extractContoursFromText(text: any, { fontFamily, fontStyle, fontWeight }: {
29
29
  fontFamily: any;
30
30
  fontStyle: any;
@@ -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 "__#42@#rotatePoint"(x: any, y: any, angle: any): any[];
76
+ static #rotatePoint(x: any, y: any, angle: any): any[];
77
77
  static _round(x: any): number;
78
78
  /**
79
79
  * Deserialize the editor.
@@ -16,8 +16,8 @@ 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 "__#18@#getNodeContent"(node: any): any;
20
- static "__#18@#deserializeContent"(content: any): any;
19
+ static #getNodeContent(node: any): any;
20
+ static #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);
@@ -19,14 +19,14 @@ 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 "__#24@#rotateBbox"([x, y, width, height]: [any, any, any, any], angle: any): any[];
22
+ static #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 "__#24@#highlightMove"(parent: any, event: any): void;
29
- static "__#24@#endHighlight"(parent: any, event: any): void;
28
+ static #highlightMove(parent: any, event: any): void;
29
+ static #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);
@@ -52,7 +52,7 @@ export class HighlightEditor extends AnnotationEditor {
52
52
  /** @inheritdoc */
53
53
  get propertiesToUpdate(): any[][];
54
54
  /** @inheritdoc */
55
- get toolbarButtons(): (string | object)[][] | null;
55
+ get toolbarButtons(): any;
56
56
  /** @inheritdoc */
57
57
  fixAndSetPosition(): void;
58
58
  /** @inheritdoc */
@@ -37,7 +37,7 @@ export class StampEditor extends AnnotationEditor {
37
37
  imageData: {
38
38
  width: any;
39
39
  height: any;
40
- data: Uint8ClampedArray<ArrayBufferLike>;
40
+ data: ImageDataArray;
41
41
  } | null;
42
42
  };
43
43
  /** @inheritdoc */
@@ -1,6 +1,6 @@
1
1
  export class EditorToolbar {
2
- static "__#3@#l10nRemove": null;
3
- static "__#3@#pointerDown"(e: any): void;
2
+ static #l10nRemove: null;
3
+ static #pointerDown(e: any): void;
4
4
  constructor(editor: any);
5
5
  render(): HTMLDivElement;
6
6
  get div(): null;
@@ -31,24 +31,24 @@ export type TextLayerUpdateParameters = {
31
31
  onBefore?: Function | undefined;
32
32
  };
33
33
  export class TextLayer {
34
- static "__#56@#ascentCache": Map<any, any>;
35
- static "__#56@#canvasContexts": Map<any, any>;
36
- static "__#56@#canvasCtxFonts": WeakMap<WeakKey, any>;
37
- static "__#56@#minFontSize": null;
38
- static "__#56@#pendingTextLayers": Set<any>;
34
+ static #ascentCache: Map<any, any>;
35
+ static #canvasContexts: Map<any, any>;
36
+ static #canvasCtxFonts: WeakMap<WeakKey, any>;
37
+ static #minFontSize: null;
38
+ static #pendingTextLayers: Set<any>;
39
39
  static get fontFamilyMap(): any;
40
40
  /**
41
41
  * Clean-up global textLayer data.
42
42
  * @returns {undefined}
43
43
  */
44
44
  static cleanup(): undefined;
45
- static "__#56@#getCtx"(lang?: null): any;
46
- static "__#56@#ensureCtxFont"(ctx: any, size: any, family: any): void;
45
+ static #getCtx(lang?: null): any;
46
+ static #ensureCtxFont(ctx: any, size: any, family: any): void;
47
47
  /**
48
48
  * Compute the minimum font size enforced by the browser.
49
49
  */
50
- static "__#56@#ensureMinFontSizeComputed"(): void;
51
- static "__#56@#getAscent"(fontFamily: any, style: any, lang: any): any;
50
+ static #ensureMinFontSizeComputed(): void;
51
+ static #getAscent(fontFamily: any, style: any, lang: any): any;
52
52
  /**
53
53
  * @param {TextLayerParameters} options
54
54
  */
@@ -1,6 +1,6 @@
1
1
  export class GlobalWorkerOptions {
2
- static "__#51@#port": null;
3
- static "__#51@#src": string;
2
+ static #port: null;
3
+ static #src: string;
4
4
  /**
5
5
  * @param {Worker | null} workerPort - Defines global port for worker process.
6
6
  * Overrides the `workerSrc` option.
@@ -398,8 +398,8 @@ export class Util {
398
398
  static intersect(rect1: any, rect2: any): number[] | null;
399
399
  static pointBoundingBox(x: any, y: any, minMax: any): void;
400
400
  static rectBoundingBox(x0: any, y0: any, x1: any, y1: any, minMax: any): void;
401
- static "__#1@#getExtremumOnCurve"(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, t: any, minMax: any): void;
402
- 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;
401
+ static #getExtremumOnCurve(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, t: any, minMax: any): void;
402
+ static #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;
403
403
  static bezierBoundingBox(x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): void;
404
404
  }
405
405
  export namespace VerbosityLevel {
@@ -14,7 +14,7 @@ export class TextAccessibilityManager {
14
14
  * @param {HTMLElement} e2
15
15
  * @returns {number}
16
16
  */
17
- static "__#6@#compareElementPositions"(e1: HTMLElement, e2: HTMLElement): number;
17
+ static #compareElementPositions(e1: HTMLElement, e2: HTMLElement): number;
18
18
  setTextMapping(textDivs: any): void;
19
19
  /**
20
20
  * Function called when the text layer has finished rendering.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chialab/pdfjs-lib",
3
3
  "description": "A custom Mozilla's PDF.js build with better Node support and extras.",
4
- "version": "1.0.0-alpha.18",
4
+ "version": "1.0.0-alpha.19",
5
5
  "type": "module",
6
6
  "author": "Chialab <dev@chialab.it>",
7
7
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@napi-rs/canvas": "^0.1.68"
31
+ "skia-canvas": "^3.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "^1.9.4",
@@ -1,25 +0,0 @@
1
- export class BaseCMapReaderFactory {
2
- constructor({ baseUrl, isCompressed }: {
3
- baseUrl?: null | undefined;
4
- isCompressed?: boolean | undefined;
5
- });
6
- baseUrl: any;
7
- isCompressed: boolean;
8
- fetch({ name }: {
9
- name: any;
10
- }): Promise<{
11
- cMapData: Uint8Array<ArrayBufferLike>;
12
- isCompressed: boolean;
13
- }>;
14
- /**
15
- * @ignore
16
- * @returns {Promise<Uint8Array>}
17
- */
18
- _fetch(url: any): Promise<Uint8Array>;
19
- }
20
- export class DOMCMapReaderFactory extends BaseCMapReaderFactory {
21
- /**
22
- * @ignore
23
- */
24
- _fetch(url: any): Promise<Uint8Array<any>>;
25
- }
@@ -1,32 +0,0 @@
1
- export function fetchData(url: any): Promise<Uint8Array<ArrayBuffer>>;
2
- export class NodeCanvasFactory extends BaseCanvasFactory {
3
- /**
4
- * @ignore
5
- */
6
- _createCanvas(width: any, height: any): import("@napi-rs/canvas").Canvas;
7
- }
8
- export class NodeCMapReaderFactory extends BaseCMapReaderFactory {
9
- /**
10
- * @ignore
11
- */
12
- _fetch(url: any): Promise<Uint8Array<ArrayBuffer>>;
13
- }
14
- export class NodeFilterFactory extends BaseFilterFactory {
15
- }
16
- export class NodeStandardFontDataFactory extends BaseStandardFontDataFactory {
17
- /**
18
- * @ignore
19
- */
20
- _fetch(url: any): Promise<Uint8Array<ArrayBuffer>>;
21
- }
22
- export class NodeWasmFactory extends BaseWasmFactory {
23
- /**
24
- * @ignore
25
- */
26
- _fetch(url: any): Promise<Uint8Array<ArrayBuffer>>;
27
- }
28
- import { BaseCanvasFactory } from "./canvas_factory.js";
29
- import { BaseCMapReaderFactory } from "./cmap_reader_factory.js";
30
- import { BaseFilterFactory } from "./filter_factory.js";
31
- import { BaseStandardFontDataFactory } from "./standard_fontdata_factory.js";
32
- import { BaseWasmFactory } from "./wasm_factory.js";
@@ -1,20 +0,0 @@
1
- export class BaseWasmFactory {
2
- constructor({ baseUrl }: {
3
- baseUrl?: null | undefined;
4
- });
5
- baseUrl: any;
6
- fetch({ filename }: {
7
- filename: any;
8
- }): Promise<Uint8Array<ArrayBufferLike>>;
9
- /**
10
- * @ignore
11
- * @returns {Promise<Uint8Array>}
12
- */
13
- _fetch(url: any): Promise<Uint8Array>;
14
- }
15
- export class DOMWasmFactory extends BaseWasmFactory {
16
- /**
17
- * @ignore
18
- */
19
- _fetch(url: any): Promise<Uint8Array<any>>;
20
- }