@component-hook/pdf-canvas 1.4.1 → 1.4.3
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/react/assets/pdfjs.worker-BHKxIhYa.js +12 -0
- package/dist/react/pdf-canvas.es.js +6 -10
- package/dist/react/pdf-canvas.umd.js +2 -2
- package/dist/vue/assets/pdfjs.worker-BHKxIhYa.js +12 -0
- package/dist/vue/pdf-canvas.es.js +6 -10
- package/dist/vue/pdf-canvas.umd.js +2 -2
- package/package.json +9 -9
- package/dist/react/assets/pdfjs.worker-DuXj-zBo.js +0 -12
- package/dist/vue/assets/pdfjs.worker-DuXj-zBo.js +0 -12
|
@@ -11,7 +11,7 @@ var Eo = (a, t, e, s) => ({
|
|
|
11
11
|
return se(a, t, s);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { onMounted as Bl, onBeforeUnmount as Ha, defineComponent as Hl, ref as zl, computed as ko, nextTick as Gl, watch as Wn,
|
|
14
|
+
import { onMounted as Bl, onBeforeUnmount as Ha, defineComponent as Hl, ref as zl, computed as ko, nextTick as Gl, watch as Wn, openBlock as Vl, createElementBlock as Xl, withModifiers as Un, normalizeStyle as Wl, createElementVNode as Ul, normalizeClass as Yl } from "vue";
|
|
15
15
|
const $l = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='20'%20cy='20'%20r='10.75'%20stroke='currentColor'%20stroke-width='2.5'/%3e%3cpath%20d='M16%2024L23.7782%2016.2218'%20stroke='currentColor'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M24%2024L16.2218%2016.2218'%20stroke='currentColor'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3c/svg%3e", ql = {
|
|
16
16
|
top: 100,
|
|
17
17
|
left: 50,
|
|
@@ -9076,11 +9076,7 @@ class Ue {
|
|
|
9076
9076
|
name: t,
|
|
9077
9077
|
value: e
|
|
9078
9078
|
}) {
|
|
9079
|
-
|
|
9080
|
-
case "enableNewAltTextWhenAddingImage":
|
|
9081
|
-
this.#b = e;
|
|
9082
|
-
break;
|
|
9083
|
-
}
|
|
9079
|
+
t === "enableNewAltTextWhenAddingImage" && (this.#b = e);
|
|
9084
9080
|
}
|
|
9085
9081
|
onPageChanging({
|
|
9086
9082
|
pageNumber: t
|
|
@@ -13548,7 +13544,7 @@ class wf {
|
|
|
13548
13544
|
return this.#t.has(t);
|
|
13549
13545
|
}
|
|
13550
13546
|
}
|
|
13551
|
-
const _s = Symbol("INTERNAL");
|
|
13547
|
+
const _s = /* @__PURE__ */ Symbol("INTERNAL");
|
|
13552
13548
|
class xf {
|
|
13553
13549
|
#t = !1;
|
|
13554
13550
|
#e = !1;
|
|
@@ -16089,7 +16085,7 @@ class eg {
|
|
|
16089
16085
|
return this.#i.get(e) ?? null;
|
|
16090
16086
|
}
|
|
16091
16087
|
}
|
|
16092
|
-
const Us = Symbol("INITIAL_DATA");
|
|
16088
|
+
const Us = /* @__PURE__ */ Symbol("INITIAL_DATA");
|
|
16093
16089
|
class Tl {
|
|
16094
16090
|
#t = /* @__PURE__ */ Object.create(null);
|
|
16095
16091
|
#e(t) {
|
|
@@ -22007,7 +22003,7 @@ async function Ig({ page: a, data: t, scale: e, password: s }, i) {
|
|
|
22007
22003
|
if (Fl()) {
|
|
22008
22004
|
const r = new Worker(new URL(
|
|
22009
22005
|
/* @vite-ignore */
|
|
22010
|
-
"" + new URL("assets/pdfjs.worker-
|
|
22006
|
+
"" + new URL("assets/pdfjs.worker-BHKxIhYa.js", import.meta.url).href,
|
|
22011
22007
|
import.meta.url
|
|
22012
22008
|
), { type: "module" });
|
|
22013
22009
|
return r.postMessage({ data: t, password: s, id: i, page: a, units: n, scale: e }), await new Promise((h) => {
|
|
@@ -22363,7 +22359,7 @@ const ip = /* @__PURE__ */ Hl({
|
|
|
22363
22359
|
copyActiveFabric: _,
|
|
22364
22360
|
deleteActiveFabric: S,
|
|
22365
22361
|
canvasRef: r
|
|
22366
|
-
}), (D, L) => (
|
|
22362
|
+
}), (D, L) => (Vl(), Xl("div", {
|
|
22367
22363
|
style: Wl({ transform: `scale(${h.value})` }),
|
|
22368
22364
|
onDragover: L[0] || (L[0] = Un(() => {
|
|
22369
22365
|
}, ["prevent"])),
|