@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/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
|
|
|
27
27
|
;// ./src/shared/util.js
|
|
@@ -2226,7 +2226,7 @@ class FloatingToolbar {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
2228
|
;// ./src/shared/internal_evt.js
|
|
2229
|
-
const INTERNAL_EVT = "
|
|
2229
|
+
const INTERNAL_EVT = "560872f8-101c-43ba-adde-6fe2cd9435d3";
|
|
2230
2230
|
const internalOpt = Object.freeze({
|
|
2231
2231
|
internal: INTERNAL_EVT
|
|
2232
2232
|
});
|
|
@@ -15603,7 +15603,7 @@ function getDocument(src = {}) {
|
|
|
15603
15603
|
}
|
|
15604
15604
|
const docParams = {
|
|
15605
15605
|
docId,
|
|
15606
|
-
apiVersion: "6.4.299-box.
|
|
15606
|
+
apiVersion: "6.4.299-box.4",
|
|
15607
15607
|
data,
|
|
15608
15608
|
password,
|
|
15609
15609
|
disableAutoFetch,
|
|
@@ -17304,8 +17304,8 @@ class InternalRenderTask {
|
|
|
17304
17304
|
}
|
|
17305
17305
|
}
|
|
17306
17306
|
}
|
|
17307
|
-
const version = "6.4.299-box.
|
|
17308
|
-
const build = "
|
|
17307
|
+
const version = "6.4.299-box.4";
|
|
17308
|
+
const build = "38c965b";
|
|
17309
17309
|
|
|
17310
17310
|
;// ./src/display/editor/color_picker.js
|
|
17311
17311
|
|
|
@@ -21147,6 +21147,14 @@ class AnnotationLayer {
|
|
|
21147
21147
|
await Promise.all(promises);
|
|
21148
21148
|
if (this.#accessibilityManager) {
|
|
21149
21149
|
const annotationIds = await this.#structTreeLayer?.getAnnotationIds();
|
|
21150
|
+
if (areBoxChangesEnabled()) {
|
|
21151
|
+
this.#accessibilityManager.addPointersInTextLayer(this.#elements.map(({
|
|
21152
|
+
contentElement
|
|
21153
|
+
}) => contentElement).filter(({
|
|
21154
|
+
id
|
|
21155
|
+
}) => !annotationIds?.has(id)), false);
|
|
21156
|
+
return;
|
|
21157
|
+
}
|
|
21150
21158
|
for (const {
|
|
21151
21159
|
contentElement
|
|
21152
21160
|
} of this.#elements) {
|
|
@@ -28290,6 +28298,7 @@ globalThis.pdfjsLib = {
|
|
|
28290
28298
|
AnnotationMode: AnnotationMode,
|
|
28291
28299
|
AnnotationType: AnnotationType,
|
|
28292
28300
|
applyOpacity: applyOpacity,
|
|
28301
|
+
areBoxChangesEnabled: areBoxChangesEnabled,
|
|
28293
28302
|
build: build,
|
|
28294
28303
|
ColorPicker: ColorPicker,
|
|
28295
28304
|
createValidAbsoluteUrl: createValidAbsoluteUrl,
|
|
@@ -28346,6 +28355,6 @@ globalThis.pdfjsLib = {
|
|
|
28346
28355
|
XfaLayer: XfaLayer
|
|
28347
28356
|
};
|
|
28348
28357
|
|
|
28349
|
-
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, shadow, stopEvent, updateUrlHash, version };
|
|
28358
|
+
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, shadow, stopEvent, updateUrlHash, version };
|
|
28350
28359
|
|
|
28351
28360
|
//# sourceMappingURL=pdf.mjs.map
|