@vue-pdf-viewer/viewer 4.3.0-beta.3 → 4.3.0-beta.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/VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-CvP7F5Al.cjs +48 -0
- package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-BvYOS6kB.js → VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-vw2nGP4v.js} +2897 -2407
- package/dist/{annotation-circle-tIpRci60.js → annotation-circle-COOiYsJg.js} +2 -2
- package/dist/{annotation-font-CLhhAYBv.js → annotation-font-Dz5-utxy.js} +2 -2
- package/dist/{annotation-font-style-italic-oHlnJsqJ.js → annotation-font-style-italic-DrQU7N-a.js} +2 -2
- package/dist/{annotation-font-style-underline-BcbrLo1i.js → annotation-font-style-underline-D7zPcuK6.js} +2 -2
- package/dist/{annotation-font-weight-bold-BXnAi8FR.js → annotation-font-weight-bold-Ba2Ix8G4.js} +2 -2
- package/dist/{annotation-freetext-zmKZ4GuW.js → annotation-freetext-dvsFpAZu.js} +2 -2
- package/dist/{annotation-highlight-CBhenBLo.js → annotation-highlight-DfO5AU26.js} +2 -2
- package/dist/{annotation-ink-Cr5tjD8f.js → annotation-ink-Dq1T0COO.js} +2 -2
- package/dist/{annotation-line-CBubP1QZ.js → annotation-line-mbXXKVam.js} +2 -2
- package/dist/{annotation-link-DI9mj24Y.js → annotation-link-DHPTdWez.js} +2 -2
- package/dist/{annotation-popup-BGBBbfEC.js → annotation-popup-BxZPusRx.js} +2 -2
- package/dist/{annotation-signature-DQVfU7hJ.js → annotation-signature-4ci2KImE.js} +2 -2
- package/dist/{annotation-square-_rIuUCHT.js → annotation-square-SQ7oqcEq.js} +2 -2
- package/dist/{annotation-squiggly-DfLrUnSa.js → annotation-squiggly-B7fWFNAK.js} +2 -2
- package/dist/{annotation-stamp-B5gaCO0X.js → annotation-stamp-BkEskP5J.js} +2 -2
- package/dist/{annotation-strikeout-Cn_VHn_N.js → annotation-strikeout-C-bSOcHc.js} +2 -2
- package/dist/{annotation-text-pKHfDK_Q.js → annotation-text-BgsMjKeI.js} +2 -2
- package/dist/{annotation-underline-BDgmfJQk.js → annotation-underline-Be5qs13j.js} +2 -2
- package/dist/{arrow-up-DhoV0HvK.js → arrow-up-vWNs2knA.js} +2 -2
- package/dist/{check-BRo7Q5UG.js → check-BkaH7nrH.js} +2 -2
- package/dist/{chevron-down-BEs3P7KI.js → chevron-down-BSFTOkiu.js} +2 -2
- package/dist/{clear-DP391aEz.js → clear-CasZmBPr.js} +2 -2
- package/dist/{close-CnbAWKuA.js → close-BgsD04zx.js} +2 -2
- package/dist/{comment-panel-BkFw3FUB.js → comment-panel-B-sIKcBp.js} +2 -2
- package/dist/{download-C45QpUvK.js → download-DCHGUHXx.js} +2 -2
- package/dist/{drag-icon-CpENKa0y.js → drag-icon-D-z1P6O_.js} +2 -2
- package/dist/{drag-icon-dark-B0sqKXav.js → drag-icon-dark-DXDxQjnW.js} +2 -2
- package/dist/{ellipsis-vertical-X1VRRfZe.js → ellipsis-vertical-Cjbi7utY.js} +2 -2
- package/dist/{empty-comment-dark-DdPeDeR5.js → empty-comment-dark-CrZRt0Hl.js} +2 -2
- package/dist/{empty-comment-light-Dgc1r5xv.js → empty-comment-light-BVPUX2pA.js} +2 -2
- package/dist/{file-C2gjRcLU.js → file-BD05gONj.js} +2 -2
- package/dist/{first-page-32lvRrjG.js → first-page-DihCXIQm.js} +2 -2
- package/dist/{fullscreen-Cuegwls4.js → fullscreen-BmHQQPIs.js} +2 -2
- package/dist/{hand-BvbzlDGf.js → hand-B1v6mSWQ.js} +2 -2
- package/dist/{index-O9L1KIkt.js → index-DdyqysUp.js} +1994 -1967
- package/dist/index-Dx8xgieN.cjs +27 -0
- package/dist/index.cjs +16 -16
- package/dist/index.js +8738 -8906
- package/dist/{info-2-wEcru0.js → info-DXpOTVKn.js} +2 -2
- package/dist/{last-page-DDJIJ2gp.js → last-page-DIN17z_8.js} +2 -2
- package/dist/license.cjs +1 -1
- package/dist/license.js +1 -1
- package/dist/{magnifier-shuB09Te.js → magnifier-Dep29X1B.js} +2 -2
- package/dist/{moon-Cf7pmsnw.js → moon-Dw-MII-V.js} +2 -2
- package/dist/{page-view-dual-f5-I0-4D.js → page-view-dual-DCLg-YkG.js} +2 -2
- package/dist/{page-view-dual-with-cover-D9GlYHG4.js → page-view-dual-with-cover-BFBRneNZ.js} +2 -2
- package/dist/{page-view-single-DTduusoS.js → page-view-single-CWOhdavX.js} +2 -2
- package/dist/{pointer-CdvbhXLR.js → pointer-jfdFDx4z.js} +2 -2
- package/dist/{printer-ERNx1Q88.js → printer-B8qbXO9F.js} +2 -2
- package/dist/{rotate-counter-clockwise-CEN3P8nT.js → rotate-counter-clockwise-DFl9ijSR.js} +2 -2
- package/dist/{scrolling-horizontal-CdariRpO.js → scrolling-horizontal-JO2P2O-8.js} +2 -2
- package/dist/{scrolling-page-wFZlGv_K.js → scrolling-page-y5Rrmrnm.js} +2 -2
- package/dist/{scrolling-vertical-B1Doxmyt.js → scrolling-vertical-D9MCCss9.js} +2 -2
- package/dist/{scrolling-wrapped-BBipRQ-N.js → scrolling-wrapped-CYbEHLH6.js} +2 -2
- package/dist/{sun-C0fX-A5U.js → sun-BhyBd5LA.js} +2 -2
- package/dist/{thumbnail-HzftUNEp.js → thumbnail-BMmN_jSl.js} +2 -2
- package/dist/{trash-BTydaFkw.js → trash-Deie-RCt.js} +2 -2
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +3 -3
- package/dist/types/components/ui/select/Select.vue.d.ts +3 -3
- package/dist/types/components/ui/select/SelectItem.vue.d.ts +3 -3
- package/dist/types/composables/useAnnotationFreeText.d.ts +3 -0
- package/dist/types/composables/useAnnotationHighlight.d.ts +2 -0
- package/dist/types/composables/useAnnotationStamp.d.ts +3 -0
- package/dist/types/composables/useAnnotationStrikethrough.d.ts +3 -0
- package/dist/types/composables/useAnnotationUnderline.d.ts +3 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utils/annotation-highlight.d.ts +13 -0
- package/dist/types/utils/types.d.ts +6 -1
- package/dist/{zoom-in-CPqqALGr.js → zoom-in-qogh-J7e.js} +2 -2
- package/dist/{zoom-out-BpilF8O_.js → zoom-out-BFzERV6_.js} +2 -2
- package/package.json +2 -2
- package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-26dzVsS8.cjs +0 -48
- package/dist/index-wXI6bmWH.cjs +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function l(i, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", r, e[0] || (e[0] = [
|
|
11
11
|
n("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M8 1.5A6.5 6.5 0 1 0 14.5 8 6.507 6.507 0 0 0 8 1.5m0 12A5.5 5.5 0 1 1 13.5 8 5.506 5.506 0 0 1 8 13.5M9 11a.5.5 0 0 1-.5.5 1 1 0 0 1-1-1V8a.5.5 0 0 1 0-1 1 1 0 0 1 1 1v2.5a.5.5 0 0 1 .5.5M7 5.25a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as l, createElementVNode as o } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "16",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), l("svg", n, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M3.146 7.354a.5.5 0 1 1 .708-.708L7.5 10.293V2a.5.5 0 1 1 1 0v8.293l3.646-3.647a.501.501 0 0 1 .708.708l-4.5 4.5a.5.5 0 0 1-.708 0zM13.5 13h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1"
|
package/dist/license.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-CvP7F5Al.cjs");exports.LicenseProduct=e.L;exports.LicenseType=e.a;exports.useLicense=e.u;
|
package/dist/license.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a,
|
|
1
|
+
import { L as a, a as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-vw2nGP4v.js";
|
|
2
2
|
export {
|
|
3
3
|
a as LicenseProduct,
|
|
4
4
|
c as LicenseType,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function l(i, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), n("svg", r, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "m17.942 17.058-3.912-3.911a6.884 6.884 0 1 0-.883.883l3.91 3.912a.626.626 0 0 0 .885-.884M3.125 8.75a5.625 5.625 0 1 1 5.625 5.625A5.63 5.63 0 0 1 3.125 8.75"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function l(m, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", r, e[0] || (e[0] = [
|
|
11
11
|
n("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M18.245 11.112a.63.63 0 0 0-.625-.156 6.88 6.88 0 0 1-8.578-8.579.625.625 0 0 0-.781-.78 8.2 8.2 0 0 0-4.134 2.89A8.125 8.125 0 0 0 10.625 17.5a8.05 8.05 0 0 0 4.884-1.631 8.2 8.2 0 0 0 2.89-4.134.62.62 0 0 0-.154-.623m-3.487 3.758A6.874 6.874 0 1 1 7.583 3.212a8.134 8.134 0 0 0 9.208 9.206 6.95 6.95 0 0 1-2.033 2.452"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function l(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", r, e[0] || (e[0] = [
|
|
11
11
|
n("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M13.833 2.5H2.167a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h11.666a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-11.666 1H7.5v9H2.167zm11.666 9H8.5v-9h5.333z"
|
package/dist/{page-view-dual-with-cover-D9GlYHG4.js → page-view-dual-with-cover-BFBRneNZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function l(h, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", n, e[0] || (e[0] = [
|
|
11
11
|
r("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M11 1.5a.5.5 0 0 1 .5.5v5.5H14a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h2.5V2a.5.5 0 0 1 .5-.5zm-2.5 12h5v-5h-5zm-6 0h5v-5h-5zm3-6h5v-5h-5z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function l(i, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), n("svg", r, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M12.333 2H3.667a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8.666a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m0 11H3.667V3h8.666z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as l, createElementVNode as o } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), l("svg", n, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "m10.602 8.396 2.799-1.217a1 1 0 0 0-.089-1.862L3.307 2.05A.997.997 0 0 0 2.05 3.307l3.267 10.005a.99.99 0 0 0 .9.688h.05a.99.99 0 0 0 .912-.6l1.217-2.798 3.104 3.105a1 1 0 0 0 1.414 0l.793-.793a1 1 0 0 0 0-1.414zM12.207 13 9.102 9.896a1 1 0 0 0-1.625.308l-1.213 2.79L3 3l9.992 3.262-2.79 1.214a1 1 0 0 0-.309 1.625L13 12.207z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as r, createElementVNode as n } from "vue";
|
|
2
2
|
const o = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const o = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function h(l, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), r("svg", o, e[0] || (e[0] = [
|
|
11
11
|
n("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M16.771 5.625h-1.146v-2.5A.625.625 0 0 0 15 2.5H5a.625.625 0 0 0-.625.625v2.5H3.229c-1.091 0-1.979.841-1.979 1.875v6.25a.625.625 0 0 0 .625.625h2.5v2.5A.625.625 0 0 0 5 17.5h10a.624.624 0 0 0 .625-.625v-2.5h2.5a.624.624 0 0 0 .625-.625V7.5c0-1.034-.887-1.875-1.979-1.875M5.625 3.75h8.75v1.875h-8.75zm8.75 12.5h-8.75V12.5h8.75zm3.125-3.125h-1.875v-1.25A.624.624 0 0 0 15 11.25H5a.625.625 0 0 0-.625.625v1.25H2.5V7.5c0-.345.327-.625.729-.625H16.77c.402 0 .729.28.729.625zm-1.875-4.062a.938.938 0 1 1-1.875 0 .938.938 0 0 1 1.875 0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function l(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", n, e[0] || (e[0] = [
|
|
11
11
|
r("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M17.5 10a7.5 7.5 0 0 1-7.4 7.5H10a7.45 7.45 0 0 1-5.148-2.047.624.624 0 1 1 .859-.909 6.25 6.25 0 1 0-.15-8.947L3.483 7.5h2.141a.625.625 0 0 1 0 1.25h-3.75a.625.625 0 0 1-.625-.625v-3.75a.625.625 0 0 1 1.25 0v2.328l2.207-2.016A7.5 7.5 0 0 1 17.5 10"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return l(), o("svg", n, e[0] || (e[0] = [
|
|
11
11
|
t("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
"fill-rule": "evenodd",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return l(), o("svg", n, e[0] || (e[0] = [
|
|
11
11
|
t("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
"fill-rule": "evenodd",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as l, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function n(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return l(), t("svg", r, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
"fill-rule": "evenodd",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as a, createElementBlock as l, createElementVNode as o } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
};
|
|
9
9
|
function t(n, e) {
|
|
10
|
-
return
|
|
10
|
+
return a(), l("svg", r, e[0] || (e[0] = [
|
|
11
11
|
o("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
"fill-rule": "evenodd",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as a, createElementBlock as t, createElementVNode as l } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function o(r, e) {
|
|
10
|
-
return
|
|
10
|
+
return a(), t("svg", n, e[0] || (e[0] = [
|
|
11
11
|
l("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M9.375 3.125V1.25a.625.625 0 0 1 1.25 0v1.875a.625.625 0 1 1-1.25 0M15 10a5 5 0 1 1-10 0 5 5 0 0 1 10 0m-1.25 0a3.75 3.75 0 1 0-7.5 0 3.75 3.75 0 0 0 7.5 0M4.558 5.442a.625.625 0 0 0 .884-.884l-1.25-1.25a.625.625 0 0 0-.884.884zm0 9.116-1.25 1.25a.625.625 0 0 0 .884.884l1.25-1.25a.626.626 0 0 0-.884-.884M15 5.625a.63.63 0 0 0 .442-.183l1.25-1.25a.625.625 0 0 0-.884-.884l-1.25 1.25A.625.625 0 0 0 15 5.625m.442 8.933a.625.625 0 0 0-.884.884l1.25 1.25a.624.624 0 1 0 .884-.884zM3.75 10a.625.625 0 0 0-.625-.625H1.25a.625.625 0 0 0 0 1.25h1.875A.625.625 0 0 0 3.75 10M10 16.25a.625.625 0 0 0-.625.625v1.875a.625.625 0 1 0 1.25 0v-1.875A.624.624 0 0 0 10 16.25m8.75-6.875h-1.875a.625.625 0 1 0 0 1.25h1.875a.624.624 0 1 0 0-1.25"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as o, createElementBlock as n, createElementVNode as e } from "vue";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const r = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function h(l, t) {
|
|
10
|
-
return
|
|
10
|
+
return o(), n("svg", r, t[0] || (t[0] = [
|
|
11
11
|
e("g", { fill: "currentColor" }, [
|
|
12
12
|
e("path", { d: "M16.875 3.125H3.125a1.25 1.25 0 0 0-1.25 1.25v11.25a1.25 1.25 0 0 0 1.25 1.25h13.75a1.25 1.25 0 0 0 1.25-1.25V4.375a1.25 1.25 0 0 0-1.25-1.25m-13.75 1.25h3.958v11.25H3.125zm13.75 11.25H8.333V4.375h8.542z" }),
|
|
13
13
|
e("path", { d: "M4.25 5.833h1.667V7.5H4.25zM4.25 9.167h1.667v1.667H4.25zM4.25 12.5h1.667v1.667H4.25z" })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
|
|
2
2
|
const a = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const a = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function n(h, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", a, e[0] || (e[0] = [
|
|
11
11
|
r("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M16.875 3.75H13.75v-.625a1.875 1.875 0 0 0-1.875-1.875h-3.75A1.875 1.875 0 0 0 6.25 3.125v.625H3.125a.625.625 0 0 0 0 1.25h.625v11.25A1.25 1.25 0 0 0 5 17.5h10a1.25 1.25 0 0 0 1.25-1.25V5h.625a.625.625 0 1 0 0-1.25M7.5 3.125a.625.625 0 0 1 .625-.625h3.75a.625.625 0 0 1 .625.625v.625h-5zM15 16.25H5V5h10zM8.75 8.125v5a.625.625 0 1 1-1.25 0v-5a.625.625 0 0 1 1.25 0m3.75 0v5a.624.624 0 1 1-1.25 0v-5a.625.625 0 1 1 1.25 0"
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
sideOffset: number;
|
|
11
11
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
12
12
|
sideOffset: number;
|
|
13
|
-
align: "start" | "
|
|
13
|
+
align: "start" | "end" | "center";
|
|
14
14
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
15
15
|
P: {};
|
|
16
16
|
B: {};
|
|
@@ -27,7 +27,7 @@ declare const _default: {
|
|
|
27
27
|
sideOffset: number;
|
|
28
28
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
29
29
|
sideOffset: number;
|
|
30
|
-
align: "start" | "
|
|
30
|
+
align: "start" | "end" | "center";
|
|
31
31
|
}>;
|
|
32
32
|
__isFragment?: undefined;
|
|
33
33
|
__isTeleport?: undefined;
|
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
sideOffset: number;
|
|
42
42
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
43
43
|
sideOffset: number;
|
|
44
|
-
align: "start" | "
|
|
44
|
+
align: "start" | "end" | "center";
|
|
45
45
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
46
46
|
$slots: {
|
|
47
47
|
default: (_: {}) => any;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { SelectRootProps } from 'reka-ui';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
4
4
|
P: {};
|
|
5
5
|
B: {};
|
|
6
6
|
D: {};
|
|
7
7
|
C: {};
|
|
8
8
|
M: {};
|
|
9
9
|
Defaults: {};
|
|
10
|
-
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
11
|
__isFragment?: undefined;
|
|
12
12
|
__isTeleport?: undefined;
|
|
13
13
|
__isSuspense?: undefined;
|
|
14
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
14
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
15
15
|
$slots: {
|
|
16
16
|
default: (_: {}) => any;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SelectItemProps } from 'reka-ui';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
|
|
5
5
|
class?: HTMLAttributes['class'];
|
|
6
6
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
7
7
|
P: {};
|
|
@@ -10,13 +10,13 @@ declare const _default: {
|
|
|
10
10
|
C: {};
|
|
11
11
|
M: {};
|
|
12
12
|
Defaults: {};
|
|
13
|
-
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
|
|
13
|
+
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
|
|
14
14
|
class?: HTMLAttributes['class'];
|
|
15
15
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
16
16
|
__isFragment?: undefined;
|
|
17
17
|
__isTeleport?: undefined;
|
|
18
18
|
__isSuspense?: undefined;
|
|
19
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
|
|
19
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
|
|
20
20
|
class?: HTMLAttributes['class'];
|
|
21
21
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
22
22
|
$slots: {
|
|
@@ -929,6 +929,7 @@ export declare const useAnnotationFreeText: (props: UseAnnotationFreeTextProps)
|
|
|
929
929
|
noView?: boolean | undefined;
|
|
930
930
|
noPrint?: boolean | undefined;
|
|
931
931
|
contents?: string | undefined;
|
|
932
|
+
imageDataUrl?: string | undefined;
|
|
932
933
|
}[], AnnotationFreeText[] | {
|
|
933
934
|
defaultAppearanceData?: {
|
|
934
935
|
fontColor: {
|
|
@@ -1848,6 +1849,7 @@ export declare const useAnnotationFreeText: (props: UseAnnotationFreeTextProps)
|
|
|
1848
1849
|
noView?: boolean | undefined;
|
|
1849
1850
|
noPrint?: boolean | undefined;
|
|
1850
1851
|
contents?: string | undefined;
|
|
1852
|
+
imageDataUrl?: string | undefined;
|
|
1851
1853
|
}[]>;
|
|
1852
1854
|
freeTextElementClickOpens: import("vue").Reactive<Map<string, boolean>>;
|
|
1853
1855
|
freeTextElements: Ref<Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>, Map<string, HTMLElement> | (Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>)>;
|
|
@@ -1857,5 +1859,6 @@ export declare const useAnnotationFreeText: (props: UseAnnotationFreeTextProps)
|
|
|
1857
1859
|
handleFreeTextUpdate: (annotation: AnnotationFreeText) => void;
|
|
1858
1860
|
handleFreeTextDragStart: (annotation: AnnotationFreeText) => void;
|
|
1859
1861
|
handleFreeTextDragEnd: (annotation: AnnotationFreeText) => void;
|
|
1862
|
+
prepareFreeTextElements: (isEditorActive: boolean) => Promise<void>;
|
|
1860
1863
|
};
|
|
1861
1864
|
export {};
|
|
@@ -348,6 +348,7 @@ export declare const useAnnotationHighlight: (props: UseAnnotationHighlightProps
|
|
|
348
348
|
noPrint?: boolean | undefined;
|
|
349
349
|
fontSize?: number | undefined;
|
|
350
350
|
contents?: string | undefined;
|
|
351
|
+
imageDataUrl?: string | undefined;
|
|
351
352
|
}[], AnnotationHighlight[] | {
|
|
352
353
|
hexColor: string;
|
|
353
354
|
drawLayerId: number;
|
|
@@ -682,6 +683,7 @@ export declare const useAnnotationHighlight: (props: UseAnnotationHighlightProps
|
|
|
682
683
|
noPrint?: boolean | undefined;
|
|
683
684
|
fontSize?: number | undefined;
|
|
684
685
|
contents?: string | undefined;
|
|
686
|
+
imageDataUrl?: string | undefined;
|
|
685
687
|
}[]>;
|
|
686
688
|
highlightElements: Ref<Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>, Map<string, HTMLElement> | (Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>)>;
|
|
687
689
|
highlightElementClickOpens: import("vue").Reactive<Map<string, boolean>>;
|
|
@@ -412,6 +412,7 @@ export declare const useAnnotationStamp: (props: UseAnnotationStampProps) => {
|
|
|
412
412
|
noPrint?: boolean | undefined;
|
|
413
413
|
fontSize?: number | undefined;
|
|
414
414
|
contents?: string | undefined;
|
|
415
|
+
imageDataUrl?: string | undefined;
|
|
415
416
|
}[], AnnotationStamp[] | {
|
|
416
417
|
hasOwnCanvas: boolean;
|
|
417
418
|
originalAnnotation?: any;
|
|
@@ -807,11 +808,13 @@ export declare const useAnnotationStamp: (props: UseAnnotationStampProps) => {
|
|
|
807
808
|
noPrint?: boolean | undefined;
|
|
808
809
|
fontSize?: number | undefined;
|
|
809
810
|
contents?: string | undefined;
|
|
811
|
+
imageDataUrl?: string | undefined;
|
|
810
812
|
}[]>;
|
|
811
813
|
stampElementClickOpens: import("vue").Reactive<Map<string, boolean>>;
|
|
812
814
|
handleStampRemove: (annotation: AnnotationStamp) => void;
|
|
813
815
|
handleStampUpdate: (annotation: AnnotationStamp) => void;
|
|
814
816
|
handleStampAdd: (newAnnotation: AnnotationStamp) => void;
|
|
817
|
+
refreshStampAnnotations: () => Promise<void>;
|
|
815
818
|
annotationCanvasMap: import("vue").Reactive<Map<string, HTMLCanvasElement>>;
|
|
816
819
|
annotationImageManager: import("@/utils/annotation-image").AnnotationImageManager;
|
|
817
820
|
};
|
|
@@ -353,6 +353,7 @@ export declare const useAnnotationStrikethrough: (props: UseAnnotationStrikethro
|
|
|
353
353
|
noPrint?: boolean | undefined;
|
|
354
354
|
fontSize?: number | undefined;
|
|
355
355
|
contents?: string | undefined;
|
|
356
|
+
imageDataUrl?: string | undefined;
|
|
356
357
|
}[], StrikethroughAnnotation[] | {
|
|
357
358
|
isAddedNew?: boolean | undefined;
|
|
358
359
|
isModified?: boolean | undefined;
|
|
@@ -689,6 +690,7 @@ export declare const useAnnotationStrikethrough: (props: UseAnnotationStrikethro
|
|
|
689
690
|
noPrint?: boolean | undefined;
|
|
690
691
|
fontSize?: number | undefined;
|
|
691
692
|
contents?: string | undefined;
|
|
693
|
+
imageDataUrl?: string | undefined;
|
|
692
694
|
}[]>;
|
|
693
695
|
strikethroughElements: Ref<Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>, Map<string, HTMLElement> | (Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>)>;
|
|
694
696
|
strikethroughElementClickOpens: import("vue").Reactive<Map<string, boolean>>;
|
|
@@ -755,6 +757,7 @@ export declare const useAnnotationStrikethrough: (props: UseAnnotationStrikethro
|
|
|
755
757
|
noPrint?: boolean | undefined;
|
|
756
758
|
fontSize?: number | undefined;
|
|
757
759
|
contents?: string | undefined;
|
|
760
|
+
imageDataUrl?: string | undefined;
|
|
758
761
|
}>;
|
|
759
762
|
handleStrikethroughClick: (annotation: StrikethroughAnnotation) => void;
|
|
760
763
|
onSelectedStrikethroughColorUpdate: (color: string, annotation: StrikethroughAnnotation) => void;
|
|
@@ -353,6 +353,7 @@ export declare const useAnnotationUnderline: (props: UseAnnotationUnderlineProps
|
|
|
353
353
|
noPrint?: boolean | undefined;
|
|
354
354
|
fontSize?: number | undefined;
|
|
355
355
|
contents?: string | undefined;
|
|
356
|
+
imageDataUrl?: string | undefined;
|
|
356
357
|
}[], UnderlineAnnotation[] | {
|
|
357
358
|
isAddedNew?: boolean | undefined;
|
|
358
359
|
isModified?: boolean | undefined;
|
|
@@ -689,6 +690,7 @@ export declare const useAnnotationUnderline: (props: UseAnnotationUnderlineProps
|
|
|
689
690
|
noPrint?: boolean | undefined;
|
|
690
691
|
fontSize?: number | undefined;
|
|
691
692
|
contents?: string | undefined;
|
|
693
|
+
imageDataUrl?: string | undefined;
|
|
692
694
|
}[]>;
|
|
693
695
|
underlineElements: Ref<Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>, Map<string, HTMLElement> | (Map<string, HTMLElement> & Omit<Map<string, HTMLElement>, keyof Map<any, any>>)>;
|
|
694
696
|
underlineElementClickOpens: import("vue").Reactive<Map<string, boolean>>;
|
|
@@ -755,6 +757,7 @@ export declare const useAnnotationUnderline: (props: UseAnnotationUnderlineProps
|
|
|
755
757
|
noPrint?: boolean | undefined;
|
|
756
758
|
fontSize?: number | undefined;
|
|
757
759
|
contents?: string | undefined;
|
|
760
|
+
imageDataUrl?: string | undefined;
|
|
758
761
|
}>;
|
|
759
762
|
handleUnderlineClick: (annotation: UnderlineAnnotation) => void;
|
|
760
763
|
onSelectedUnderlineColorUpdate: (color: string, annotation: UnderlineAnnotation) => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Locales } from '@vue-pdf-viewer/shared';
|
|
|
3
3
|
export declare const VPdfViewerPlugin: Plugin;
|
|
4
4
|
export { Locales };
|
|
5
5
|
export * from './components';
|
|
6
|
-
export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult, XfdfExportOptions, AnnotationXfdfControl, XfdfImportResult, XfdfSkippedEntry } from './utils/types';
|
|
6
|
+
export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult, XfdfExportOptions, AnnotationXfdfControl, AnnotationControl, XfdfImportResult, XfdfSkippedEntry } from './utils/types';
|
|
7
7
|
export type { TextContent } from 'pdfjs-dist/types/src/display/api';
|
|
8
|
-
export type { Localization } from '@vue-pdf-viewer/shared';
|
|
8
|
+
export type { Localization, Annotation } from '@vue-pdf-viewer/shared';
|
|
9
9
|
export default VPdfViewerPlugin;
|
|
@@ -36,6 +36,19 @@ export declare function quadPointsToBoxesForRect(quadPoints: number[], rect: num
|
|
|
36
36
|
width: number;
|
|
37
37
|
height: number;
|
|
38
38
|
}[];
|
|
39
|
+
/**
|
|
40
|
+
* Reconstruct PDF-coordinate highlight `outlines` from `quadPoints` + `rect`.
|
|
41
|
+
*
|
|
42
|
+
* PDF.js's print/appearance generator (HighlightAnnotation.createNewAppearanceStream)
|
|
43
|
+
* iterates the `outlines` field; a highlight without it throws "n is not iterable",
|
|
44
|
+
* blanking the whole print preview. Highlights imported from XFDF carry only
|
|
45
|
+
* `quadPoints`, so this rebuilds the missing `outlines` using the same outline
|
|
46
|
+
* machinery as tool-created highlights — but normalized against the rect, so no live
|
|
47
|
+
* viewport/DOM is required (safe to call from the print path).
|
|
48
|
+
*
|
|
49
|
+
* @returns serialized outlines (array of point arrays in PDF coords), or null if input is unusable.
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildHighlightOutlines(quadPoints: ArrayLike<number> | null | undefined, rect: ArrayLike<number> | null | undefined): number[][] | null;
|
|
39
52
|
/**
|
|
40
53
|
* Get selection boxes from text layer with proper rotation handling.
|
|
41
54
|
* Adapted from PDF.js display/editor/tools.js
|
|
@@ -185,7 +185,7 @@ export interface PDFOptions {
|
|
|
185
185
|
password?: string;
|
|
186
186
|
}
|
|
187
187
|
export interface PDFInfoMetadata {
|
|
188
|
-
info:
|
|
188
|
+
info: Record<string, any>;
|
|
189
189
|
metadata: Metadata;
|
|
190
190
|
}
|
|
191
191
|
export interface PDFInfo {
|
|
@@ -716,6 +716,10 @@ export interface AnnotationXfdfControl {
|
|
|
716
716
|
exportToXfdf: (options?: XfdfExportOptions) => string;
|
|
717
717
|
importFromXfdf: (xfdfString: string) => XfdfImportResult;
|
|
718
718
|
}
|
|
719
|
+
export interface AnnotationControl {
|
|
720
|
+
getAnnotations: () => Annotation[];
|
|
721
|
+
clearAnnotations: () => void;
|
|
722
|
+
}
|
|
719
723
|
export type { XfdfImportResult, XfdfSkippedEntry };
|
|
720
724
|
export interface VPVInstance {
|
|
721
725
|
printControl: Reactive<PrintControl> | undefined;
|
|
@@ -728,6 +732,7 @@ export interface VPVInstance {
|
|
|
728
732
|
annotationTextSelectionControl: Reactive<AnnotationTextSelectionControl> | undefined;
|
|
729
733
|
annotationFreeTextControl: Reactive<AnnotationFreeTextControl> | undefined;
|
|
730
734
|
annotationXfdfControl: Reactive<AnnotationXfdfControl> | undefined;
|
|
735
|
+
annotationControl: Reactive<AnnotationControl> | undefined;
|
|
731
736
|
}
|
|
732
737
|
export interface NavigationAnnotation {
|
|
733
738
|
action: 'FirstPage' | 'LastPage' | 'NextPage' | 'PrevPage';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
|
2
2
|
const l = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const l = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", l, e[0] || (e[0] = [
|
|
11
11
|
n("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M11.875 8.75a.625.625 0 0 1-.625.625H9.375v1.875a.625.625 0 0 1-1.25 0V9.375H6.25a.625.625 0 0 1 0-1.25h1.875V6.25a.625.625 0 0 1 1.25 0v1.875h1.875a.625.625 0 0 1 .625.625m6.067 9.192a.623.623 0 0 1-.884 0l-3.911-3.911a6.884 6.884 0 1 1 .883-.884l3.912 3.91a.625.625 0 0 1 0 .885M8.75 14.375A5.625 5.625 0 1 0 3.125 8.75a5.63 5.63 0 0 0 5.625 5.625"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as l } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
viewBox: "0 0 20 20"
|
|
8
8
|
};
|
|
9
9
|
function r(a, e) {
|
|
10
|
-
return
|
|
10
|
+
return t(), o("svg", n, e[0] || (e[0] = [
|
|
11
11
|
l("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M11.875 8.75a.625.625 0 0 1-.625.625h-5a.625.625 0 0 1 0-1.25h5a.625.625 0 0 1 .625.625m6.067 9.192a.623.623 0 0 1-.884 0l-3.911-3.911a6.884 6.884 0 1 1 .883-.884l3.912 3.91a.625.625 0 0 1 0 .885M8.75 14.375A5.625 5.625 0 1 0 3.125 8.75a5.63 5.63 0 0 0 5.625 5.625"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.3.0-beta.
|
|
4
|
+
"version": "4.3.0-beta.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"prepare": "husky"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@vue-pdf-viewer/shared": "1.6.0-rc.
|
|
68
|
+
"@vue-pdf-viewer/shared": "1.6.0-rc.1",
|
|
69
69
|
"@vueuse/core": "^13.6.0",
|
|
70
70
|
"node-forge": "^1.3.2",
|
|
71
71
|
"pdfjs-dist": "5.4.530",
|