@box/pdfjs-dist 6.4.299-box.3 → 6.4.299-box.4

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.
@@ -20,8 +20,8 @@
20
20
  */
21
21
 
22
22
  /**
23
- * pdfjsVersion = 6.4.299-box.3
24
- * pdfjsBuild = acc2002
23
+ * pdfjsVersion = 6.4.299-box.4
24
+ * pdfjsBuild = 38c965b
25
25
  */
26
26
  /******/ var __webpack_modules__ = ({
27
27
 
@@ -8329,7 +8329,7 @@ class FloatingToolbar {
8329
8329
  }
8330
8330
 
8331
8331
  ;// ./src/shared/internal_evt.js
8332
- const INTERNAL_EVT = "1f166d3a-715c-4c7a-a062-1e0ddfefab93";
8332
+ const INTERNAL_EVT = "560872f8-101c-43ba-adde-6fe2cd9435d3";
8333
8333
  const internalOpt = Object.freeze({
8334
8334
  internal: INTERNAL_EVT
8335
8335
  });
@@ -21951,7 +21951,7 @@ function getDocument(src = {}) {
21951
21951
  }
21952
21952
  const docParams = {
21953
21953
  docId,
21954
- apiVersion: "6.4.299-box.3",
21954
+ apiVersion: "6.4.299-box.4",
21955
21955
  data,
21956
21956
  password,
21957
21957
  disableAutoFetch,
@@ -23652,8 +23652,8 @@ class InternalRenderTask {
23652
23652
  }
23653
23653
  }
23654
23654
  }
23655
- const api_version = "6.4.299-box.3";
23656
- const build = "acc2002";
23655
+ const api_version = "6.4.299-box.4";
23656
+ const build = "38c965b";
23657
23657
 
23658
23658
  ;// ./node_modules/core-js/modules/es.math.sum-precise.js
23659
23659
  es_math_sum_precise_namespaceFn();
@@ -24101,6 +24101,7 @@ class DOMSVGFactory extends BaseSVGFactory {
24101
24101
 
24102
24102
 
24103
24103
 
24104
+
24104
24105
 
24105
24106
 
24106
24107
  const annotation_layer_DEFAULT_FONT_SIZE = 9;
@@ -27519,6 +27520,14 @@ class AnnotationLayer {
27519
27520
  await Promise.all(promises);
27520
27521
  if (this.#accessibilityManager) {
27521
27522
  const annotationIds = await this.#structTreeLayer?.getAnnotationIds();
27523
+ if (areBoxChangesEnabled()) {
27524
+ this.#accessibilityManager.addPointersInTextLayer(this.#elements.map(({
27525
+ contentElement
27526
+ }) => contentElement).filter(({
27527
+ id
27528
+ }) => !annotationIds?.has(id)), false);
27529
+ return;
27530
+ }
27522
27531
  for (const {
27523
27532
  contentElement
27524
27533
  } of this.#elements) {
@@ -34753,6 +34762,7 @@ globalThis.pdfjsLib = {
34753
34762
  AnnotationMode: AnnotationMode,
34754
34763
  AnnotationType: AnnotationType,
34755
34764
  applyOpacity: applyOpacity,
34765
+ areBoxChangesEnabled: areBoxChangesEnabled,
34756
34766
  build: build,
34757
34767
  ColorPicker: ColorPicker,
34758
34768
  createValidAbsoluteUrl: createValidAbsoluteUrl,
@@ -34809,6 +34819,6 @@ globalThis.pdfjsLib = {
34809
34819
  XfaLayer: XfaLayer
34810
34820
  };
34811
34821
 
34812
- export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, AnnotationType, CSSConstants, ColorPicker, DOMSVGFactory, DrawLayer, FeatureTest, GlobalWorkerOptions, ImageKind, InvalidPDFException, MathClamp, OPS, OutputScale, PDFDataRangeTransport, PDFDateString, PDFWorker, PasswordException, PasswordResponses, PermissionFlag, PixelsPerInch, RenderingCancelledException, ResponseException, SignatureExtractor, SupportedImageMimeTypes, TextLayer, TextLayerImages, TouchManager, Util, VerbosityLevel, XfaLayer, applyOpacity, build, createValidAbsoluteUrl, fetchData, findContrastColor, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getRGB, getRGBA, getUuid, isDataScheme, isPdfFile, isValidExplicitDest, makeArr, makeMap, makeObj, makeSet, noContextMenu, normalizeUnicode, renderRichText, setBoxChangesEnabled, setLayerDimensions, util_shadow as shadow, stopEvent, updateUrlHash, api_version as version };
34822
+ export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, AnnotationType, CSSConstants, ColorPicker, DOMSVGFactory, DrawLayer, FeatureTest, GlobalWorkerOptions, ImageKind, InvalidPDFException, MathClamp, OPS, OutputScale, PDFDataRangeTransport, PDFDateString, PDFWorker, PasswordException, PasswordResponses, PermissionFlag, PixelsPerInch, RenderingCancelledException, ResponseException, SignatureExtractor, SupportedImageMimeTypes, TextLayer, TextLayerImages, TouchManager, Util, VerbosityLevel, XfaLayer, applyOpacity, areBoxChangesEnabled, build, createValidAbsoluteUrl, fetchData, findContrastColor, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getRGB, getRGBA, getUuid, isDataScheme, isPdfFile, isValidExplicitDest, makeArr, makeMap, makeObj, makeSet, noContextMenu, normalizeUnicode, renderRichText, setBoxChangesEnabled, setLayerDimensions, util_shadow as shadow, stopEvent, updateUrlHash, api_version as version };
34813
34823
 
34814
34824
  //# sourceMappingURL=pdf.mjs.map