@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.
- package/CHANGELOG.md +4 -0
- package/build/pdf.min.mjs +4 -4
- package/build/pdf.mjs +16 -7
- package/build/pdf.mjs.map +1 -1
- package/build/pdf.sandbox.min.mjs +2 -2
- package/build/pdf.sandbox.mjs +2 -2
- package/build/pdf.worker.min.mjs +3 -3
- package/build/pdf.worker.mjs +3 -3
- package/image_decoders/pdf.image_decoders.min.mjs +2 -2
- package/image_decoders/pdf.image_decoders.mjs +2 -2
- package/legacy/build/pdf.min.mjs +4 -4
- package/legacy/build/pdf.mjs +17 -7
- package/legacy/build/pdf.mjs.map +1 -1
- package/legacy/build/pdf.sandbox.min.mjs +2 -2
- package/legacy/build/pdf.sandbox.mjs +2 -2
- package/legacy/build/pdf.worker.min.mjs +3 -3
- package/legacy/build/pdf.worker.mjs +3 -3
- package/legacy/image_decoders/pdf.image_decoders.min.mjs +2 -2
- package/legacy/image_decoders/pdf.image_decoders.mjs +2 -2
- package/legacy/web/pdf_viewer.mjs +54 -8
- package/legacy/web/pdf_viewer.mjs.map +1 -1
- package/package.json +2 -2
- package/types/src/pdf.d.ts +2 -1
- package/types/web/text_accessibility.d.ts +15 -0
- package/web/pdf_viewer.mjs +52 -8
- package/web/pdf_viewer.mjs.map +1 -1
package/legacy/build/pdf.mjs
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* pdfjsVersion = 6.4.299-box.
|
|
24
|
-
* pdfjsBuild =
|
|
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 = "
|
|
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.
|
|
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.
|
|
23656
|
-
const build = "
|
|
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
|