@silurus/ooxml 0.83.1 → 0.83.2
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/README.md +1 -0
- package/dist/{canvas-viewer-mechanics-h07vpVOQ.js → canvas-viewer-mechanics-DVGK-fLT.js} +56 -41
- package/dist/{docx-BF-WKW73.js → docx-DojUJSZd.js} +2 -2
- package/dist/docx.mjs +2 -2
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{pptx-CA-Q09yW.js → pptx-Wh22eziy.js} +2 -2
- package/dist/pptx.mjs +2 -2
- package/dist/{xlsx-BibrHQ52.js → xlsx-C3beLfwZ.js} +2 -2
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -676,6 +676,7 @@ file without uploading it.
|
|
|
676
676
|
| | SVG images (`asvg:svgBlip` MS-2016 extension — vector drawn from the embedded `.svg`, raster fallback) | ✅ |
|
|
677
677
|
| | Text boxes / drawing shapes (inline and anchored `wps:wsp` / `wps:txbx`, including solid, gradient, and image fills; `a:prstGeom` — 186 preset geometries via the shared engine; connector arrow heads `headEnd` / `tailEnd` (§20.1.8.3) and `prstDash` dash patterns (§20.1.8.48)). Text-box paragraphs run through the **same line-layout engine as body text**, so kinsoku 行頭/行末禁則 (§17.15.1.58–60), UAX#9 bidi (`w:bidi`, §17.3.1.6), justification (§17.18.44) and tab stops (§17.3.1.37) all apply inside a box | ✅ |
|
|
678
678
|
| | WMF **and EMF** metafile images (legacy vector, incl. inside text boxes) — rasterized via a built-in player: window→viewport mapping (MS-EMF map modes, world transform), pens/brushes, poly/rect/ellipse, text-out, path clipping, and embedded DIB blits | ✅ |
|
|
679
|
+
| | Legacy VML content — positioned shapes, text boxes, image previews, and authored text wrapping | ✅ |
|
|
679
680
|
| | OLE embedded objects (`w:object` — the baked VML `v:imagedata` preview is drawn; the embedded app is not run) | ✅ |
|
|
680
681
|
| **Advanced** | Footnotes — reference markers + bottom-of-page bodies with separator rule, numbered (`w:footnoteReference` / `w:footnoteRef`, §17.11) | ✅ |
|
|
681
682
|
| | Endnotes — reference markers + bodies at document end (`w:endnoteReference`, §17.11) | ✅ |
|
|
@@ -698,11 +698,26 @@ function we(e, t) {
|
|
|
698
698
|
}
|
|
699
699
|
//#endregion
|
|
700
700
|
//#region packages/core/src/interaction/zoom.ts
|
|
701
|
-
var Te = .
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
var Te = 1.1, Ee = 10, De = 3, Oe = 1;
|
|
702
|
+
function ke(e, t) {
|
|
703
|
+
let n;
|
|
704
|
+
switch (t) {
|
|
705
|
+
case 1:
|
|
706
|
+
n = e / De;
|
|
707
|
+
break;
|
|
708
|
+
case 2:
|
|
709
|
+
n = e / Oe;
|
|
710
|
+
break;
|
|
711
|
+
default:
|
|
712
|
+
n = e / Ee;
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
return Math.max(-1, Math.min(1, n));
|
|
716
|
+
}
|
|
717
|
+
function Ae(e, t, n = 0) {
|
|
718
|
+
return e * Te ** +-ke(t, n);
|
|
704
719
|
}
|
|
705
|
-
function
|
|
720
|
+
function je(e, t, n, r, i) {
|
|
706
721
|
let a = n > 0 ? r / n : 1, o = (e + t) * a - t, s = i.maxScroll > 0 ? i.maxScroll : 0;
|
|
707
722
|
return o < 0 ? 0 : o > s ? s : o;
|
|
708
723
|
}
|
|
@@ -725,21 +740,21 @@ var q = Object.freeze([
|
|
|
725
740
|
3,
|
|
726
741
|
4
|
|
727
742
|
]), J = .005;
|
|
728
|
-
function
|
|
743
|
+
function Me(e) {
|
|
729
744
|
for (let t of q) if (t > e + J) return t;
|
|
730
745
|
return q[q.length - 1];
|
|
731
746
|
}
|
|
732
|
-
function
|
|
747
|
+
function Ne(e) {
|
|
733
748
|
for (let t = q.length - 1; t >= 0; t--) {
|
|
734
749
|
let n = q[t];
|
|
735
750
|
if (n < e - J) return n;
|
|
736
751
|
}
|
|
737
752
|
return q[0];
|
|
738
753
|
}
|
|
739
|
-
function
|
|
754
|
+
function Pe(e, t, n) {
|
|
740
755
|
return e < t ? t : e > n ? n : e;
|
|
741
756
|
}
|
|
742
|
-
function
|
|
757
|
+
function Fe(e, t) {
|
|
743
758
|
let { contentWidth: n, contentHeight: r, containerWidth: i, containerHeight: a } = e;
|
|
744
759
|
if (n <= 0 || i <= 0) return 0;
|
|
745
760
|
let o = i / n;
|
|
@@ -760,7 +775,7 @@ function Y(e) {
|
|
|
760
775
|
}
|
|
761
776
|
return n;
|
|
762
777
|
}
|
|
763
|
-
function
|
|
778
|
+
function Ie(e) {
|
|
764
779
|
let t = Array(e.length), n = 0, r = "";
|
|
765
780
|
for (let i = 0; i < e.length; i++) t[i] = n, r += e[i].text, n += e[i].text.length;
|
|
766
781
|
return {
|
|
@@ -770,7 +785,7 @@ function Me(e) {
|
|
|
770
785
|
runCount: e.length
|
|
771
786
|
};
|
|
772
787
|
}
|
|
773
|
-
function
|
|
788
|
+
function Le(e, t) {
|
|
774
789
|
let { runStart: n } = e, r = 0, i = n.length - 1;
|
|
775
790
|
for (; r < i;) {
|
|
776
791
|
let e = r + i + 1 >> 1;
|
|
@@ -778,8 +793,8 @@ function Ne(e, t) {
|
|
|
778
793
|
}
|
|
779
794
|
return r;
|
|
780
795
|
}
|
|
781
|
-
function
|
|
782
|
-
let { runStart: r, runCount: i, text: a } = e, o = [], s =
|
|
796
|
+
function Re(e, t, n) {
|
|
797
|
+
let { runStart: r, runCount: i, text: a } = e, o = [], s = Le(e, t), c = t;
|
|
783
798
|
for (; c < n && s < i;) {
|
|
784
799
|
let e = s + 1 < i ? r[s + 1] : a.length, t = Math.min(n, e), l = c - r[s], u = t - r[s];
|
|
785
800
|
u > l && o.push({
|
|
@@ -790,7 +805,7 @@ function Pe(e, t, n) {
|
|
|
790
805
|
}
|
|
791
806
|
return o;
|
|
792
807
|
}
|
|
793
|
-
function
|
|
808
|
+
function ze(e, t, n = {}) {
|
|
794
809
|
if (t.length === 0) return [];
|
|
795
810
|
let r = n.caseSensitive ?? !1, i = r ? e.text : e.folded, a = r ? t : Y(t), o = [], s = 0, c = 0;
|
|
796
811
|
for (;;) {
|
|
@@ -798,23 +813,23 @@ function Fe(e, t, n = {}) {
|
|
|
798
813
|
if (t === -1) break;
|
|
799
814
|
o.push({
|
|
800
815
|
matchIndex: c,
|
|
801
|
-
slices:
|
|
816
|
+
slices: Re(e, t, t + a.length)
|
|
802
817
|
}), c++, s = t + a.length;
|
|
803
818
|
}
|
|
804
819
|
return o;
|
|
805
820
|
}
|
|
806
821
|
//#endregion
|
|
807
822
|
//#region packages/core/src/search/find-cursor.ts
|
|
808
|
-
function
|
|
823
|
+
function Be(e, t) {
|
|
809
824
|
return t <= 0 ? -1 : e < 0 ? 0 : (e + 1) % t;
|
|
810
825
|
}
|
|
811
|
-
function
|
|
826
|
+
function Ve(e, t) {
|
|
812
827
|
return t <= 0 ? -1 : e < 0 ? t - 1 : (e - 1 + t) % t;
|
|
813
828
|
}
|
|
814
829
|
//#endregion
|
|
815
830
|
//#region packages/core/src/internal/chart-context.ts
|
|
816
831
|
var X = 65536;
|
|
817
|
-
function
|
|
832
|
+
function He(e, t) {
|
|
818
833
|
let n = Math.min(e.length, t);
|
|
819
834
|
if (n > 0 && n < e.length) {
|
|
820
835
|
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
@@ -822,19 +837,19 @@ function Re(e, t) {
|
|
|
822
837
|
}
|
|
823
838
|
return e.slice(0, n);
|
|
824
839
|
}
|
|
825
|
-
function
|
|
840
|
+
function Ue(e) {
|
|
826
841
|
let t = e ?? 16384;
|
|
827
842
|
if (!Number.isFinite(t) || t < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
|
|
828
843
|
return Math.min(X, Math.floor(t));
|
|
829
844
|
}
|
|
830
|
-
function
|
|
831
|
-
let n =
|
|
845
|
+
function We(e, t) {
|
|
846
|
+
let n = Ue(t), r = [], i = 0, a = !1, o = !1, s = (e, t) => {
|
|
832
847
|
if (t && o) {
|
|
833
848
|
if (i >= n) return a = !0, !1;
|
|
834
849
|
r.push("\n"), i++;
|
|
835
850
|
}
|
|
836
851
|
o = !0;
|
|
837
|
-
let s =
|
|
852
|
+
let s = He(e, Math.max(0, n - i));
|
|
838
853
|
return r.push(s), i += s.length, s.length < e.length ? (a = !0, !1) : !0;
|
|
839
854
|
};
|
|
840
855
|
if (!s(`Chart type: ${e.chartType}`, !0) || e.title !== null && !s(`Title: ${e.title}`, !0)) return {
|
|
@@ -876,13 +891,13 @@ function Be(e, t) {
|
|
|
876
891
|
}
|
|
877
892
|
//#endregion
|
|
878
893
|
//#region packages/core/src/internal/canvas-viewer-mechanics.ts
|
|
879
|
-
var
|
|
894
|
+
var Ge = 65536, Ke = 1024;
|
|
880
895
|
function Z(e, t, n) {
|
|
881
896
|
let r = e ?? t;
|
|
882
897
|
if (!Number.isFinite(r) || r < 0) throw RangeError(`${n} must be a finite non-negative number.`);
|
|
883
898
|
return Math.min(t, Math.floor(r));
|
|
884
899
|
}
|
|
885
|
-
function
|
|
900
|
+
function qe(e, t) {
|
|
886
901
|
let n = Math.min(e.length, t);
|
|
887
902
|
if (n > 0 && n < e.length) {
|
|
888
903
|
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
@@ -890,7 +905,7 @@ function Q(e, t) {
|
|
|
890
905
|
}
|
|
891
906
|
return e.slice(0, n);
|
|
892
907
|
}
|
|
893
|
-
function*
|
|
908
|
+
function* Je(e) {
|
|
894
909
|
let t = e.firstChild ?? e.childNodes[0] ?? null;
|
|
895
910
|
for (; t;) {
|
|
896
911
|
if (t.nodeType === 3 && (yield t), t.firstChild) {
|
|
@@ -902,13 +917,13 @@ function* Ue(e) {
|
|
|
902
917
|
t = t.nextSibling;
|
|
903
918
|
}
|
|
904
919
|
}
|
|
905
|
-
function
|
|
920
|
+
function Ye(e, t, n, r, i) {
|
|
906
921
|
for (let a of r) {
|
|
907
922
|
let r = !1;
|
|
908
923
|
try {
|
|
909
924
|
r = a.intersectsNode(n);
|
|
910
925
|
} catch {}
|
|
911
|
-
if (r) for (let r of
|
|
926
|
+
if (r) for (let r of Je(n)) {
|
|
912
927
|
let n = r.data, o, s;
|
|
913
928
|
if (a.startContainer === r) o = a.startOffset;
|
|
914
929
|
else try {
|
|
@@ -931,7 +946,7 @@ function We(e, t, n, r, i) {
|
|
|
931
946
|
}
|
|
932
947
|
return t;
|
|
933
948
|
}
|
|
934
|
-
function
|
|
949
|
+
function Xe(e, t, n, r = {}) {
|
|
935
950
|
if (!t || t.isCollapsed || t.rangeCount === 0) return null;
|
|
936
951
|
let i = [...e.matches?.("[data-ooxml-selection-surface]") ? [e] : [], ...e.querySelectorAll("[data-ooxml-selection-surface]")];
|
|
937
952
|
if (i.length === 0) return null;
|
|
@@ -941,7 +956,7 @@ function Ge(e, t, n, r = {}) {
|
|
|
941
956
|
if (!e.contains(r.startContainer) || !e.contains(r.endContainer) || !a(r.startContainer) || !a(r.endContainer)) return null;
|
|
942
957
|
o.push(r);
|
|
943
958
|
}
|
|
944
|
-
let s = Z(r.maxChars,
|
|
959
|
+
let s = Z(r.maxChars, Ge, "maxTextCharacters"), c = Z(r.maxLocators, Ke, "maxRunLocators"), l = [], u = !1, d = s + 2, f = [], p = 0;
|
|
945
960
|
for (let t of e.querySelectorAll("[data-ooxml-selection-run]")) {
|
|
946
961
|
if (!o.some((e) => {
|
|
947
962
|
try {
|
|
@@ -951,12 +966,12 @@ function Ge(e, t, n, r = {}) {
|
|
|
951
966
|
}
|
|
952
967
|
})) continue;
|
|
953
968
|
let e = n(t);
|
|
954
|
-
if (e !== null && (l.length >= c ? u = !0 : l.push(structuredClone(e)), p < d && (p =
|
|
969
|
+
if (e !== null && (l.length >= c ? u = !0 : l.push(structuredClone(e)), p < d && (p = Ye(f, p, t, o, d)), u && p >= d)) break;
|
|
955
970
|
}
|
|
956
971
|
if (l.length === 0 && !u) return null;
|
|
957
972
|
let m = f.join("");
|
|
958
973
|
if (m.length === 0) return null;
|
|
959
|
-
let h =
|
|
974
|
+
let h = qe(m, s), g = m.length > s;
|
|
960
975
|
return {
|
|
961
976
|
text: h,
|
|
962
977
|
locators: l,
|
|
@@ -967,7 +982,7 @@ function Ge(e, t, n, r = {}) {
|
|
|
967
982
|
maxLocators: c
|
|
968
983
|
};
|
|
969
984
|
}
|
|
970
|
-
var
|
|
985
|
+
var Ze = class {
|
|
971
986
|
wrapper;
|
|
972
987
|
originalParent;
|
|
973
988
|
originalNextSibling;
|
|
@@ -988,31 +1003,31 @@ var Ke = class {
|
|
|
988
1003
|
(this.options.restoreMode ?? "display") === "style-and-bitmap" ? (this.originalStyle === null ? this.canvas.removeAttribute("style") : this.canvas.setAttribute("style", this.originalStyle), this.canvas.width = this.originalWidth, this.canvas.height = this.originalHeight) : this.canvas.style.display = this.originalDisplay, this.wrapper.remove();
|
|
989
1004
|
}
|
|
990
1005
|
}
|
|
991
|
-
},
|
|
1006
|
+
}, Qe = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;user-select:text;-webkit-user-select:text;", Q = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;", $e = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;";
|
|
992
1007
|
function $(e, t) {
|
|
993
1008
|
if (!t) return null;
|
|
994
1009
|
let n = (e.ownerDocument ?? document).createElement("div");
|
|
995
|
-
return n.style.cssText =
|
|
1010
|
+
return n.style.cssText = $e, e.appendChild(n), n;
|
|
996
1011
|
}
|
|
997
|
-
function
|
|
1012
|
+
function et(e, t) {
|
|
998
1013
|
if (!e || (e.innerHTML = "", !t || !Number.isFinite(t.x) || !Number.isFinite(t.y) || !Number.isFinite(t.width) || !Number.isFinite(t.height) || t.width <= 0 || t.height <= 0)) return;
|
|
999
1014
|
let n = (e.ownerDocument ?? document).createElement("div"), r = Number.isFinite(t.rotation) ? t.rotation ?? 0 : 0;
|
|
1000
1015
|
n.style.cssText = `position:absolute;left:${t.x * 100}%;top:${t.y * 100}%;width:${t.width * 100}%;height:${t.height * 100}%;box-sizing:border-box;border:2px solid #1a73e8;background:color-mix(in srgb, #1a73e8 6%, transparent);transform:rotate(${r}deg);transform-origin:center;pointer-events:none;`, e.appendChild(n);
|
|
1001
1016
|
}
|
|
1002
|
-
var
|
|
1017
|
+
var tt = class {
|
|
1003
1018
|
textLayer;
|
|
1004
1019
|
highlightLayer;
|
|
1005
1020
|
elementLayer;
|
|
1006
1021
|
constructor(e, t, n = !1) {
|
|
1007
1022
|
let r = e.ownerDocument ?? document;
|
|
1008
|
-
this.textLayer = t ? r.createElement("div") : null, this.textLayer && (this.textLayer.style.cssText =
|
|
1023
|
+
this.textLayer = t ? r.createElement("div") : null, this.textLayer && (this.textLayer.style.cssText = Qe, e.appendChild(this.textLayer)), this.highlightLayer = r.createElement("div"), this.highlightLayer.style.cssText = Q, e.appendChild(this.highlightLayer), this.elementLayer = $(e, n);
|
|
1009
1024
|
}
|
|
1010
1025
|
};
|
|
1011
|
-
function
|
|
1026
|
+
function nt(e, t, n) {
|
|
1012
1027
|
if (n && t !== void 0 && t !== n.mode) throw Error(`${e}: opts.mode='${t}' conflicts with the borrowed engine's mode='${n.mode}'. Omit opts.mode when borrowing an engine — the engine owns its render mode.`);
|
|
1013
1028
|
return n?.mode ?? t ?? "main";
|
|
1014
1029
|
}
|
|
1015
|
-
var
|
|
1030
|
+
var rt = class {
|
|
1016
1031
|
generation = 0;
|
|
1017
1032
|
resource;
|
|
1018
1033
|
ownsResource;
|
|
@@ -1064,7 +1079,7 @@ var $e = class {
|
|
|
1064
1079
|
e.destroy();
|
|
1065
1080
|
} catch {}
|
|
1066
1081
|
}
|
|
1067
|
-
},
|
|
1082
|
+
}, it = class {
|
|
1068
1083
|
generation = 0;
|
|
1069
1084
|
destroyed = !1;
|
|
1070
1085
|
bitmapContext;
|
|
@@ -1103,7 +1118,7 @@ var $e = class {
|
|
|
1103
1118
|
destroy() {
|
|
1104
1119
|
this.destroyed || (this.destroyed = !0, this.generation++);
|
|
1105
1120
|
}
|
|
1106
|
-
},
|
|
1121
|
+
}, at = class {
|
|
1107
1122
|
closed = !1;
|
|
1108
1123
|
handled = /* @__PURE__ */ new WeakSet();
|
|
1109
1124
|
backgroundLifecycleOwners = 0;
|
|
@@ -1146,4 +1161,4 @@ var $e = class {
|
|
|
1146
1161
|
}
|
|
1147
1162
|
};
|
|
1148
1163
|
//#endregion
|
|
1149
|
-
export { Ce as C, xe as E, we as S, be as T,
|
|
1164
|
+
export { Ce as C, xe as E, we as S, be as T, Fe as _, rt as a, je as b, et as c, We as d, Be as f, Pe as g, ze as h, it as i, nt as l, Ie as m, tt as n, $ as o, Ve as p, at as r, Xe as s, Ze as t, X as u, Me as v, Se as w, Ae as x, Ne as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { B as t, Qt as n, R as r, Vt as i, W as a, Zt as o, a as s, et as c, ft as l, lt as u, z as d } from "./line-metrics-Bpn7OeZD.js";
|
|
3
|
-
import { C as f, E as p, S as m, T as h, _ as g, a as _, b as ee, c as v, d as y, f as te, g as ne, h as re, i as b, l as x, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { C as f, E as p, S as m, T as h, _ as g, a as _, b as ee, c as v, d as y, f as te, g as ne, h as re, i as b, l as x, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
4
4
|
import { a as ge, i as _e, t as ve } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { c as ye, i as be, l as xe, n as Se, o as S, r as Ce, s as we, t as Te } from "./dom-interaction-boundary-CepOlXt6.js";
|
|
6
6
|
import { A as Ee, C, D as w, E as De, O as T, S as Oe, T as E, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, j as Le, k as Re, l as ze, m as Be, n as D, o as Ve, p as He, s as Ue, t as O, v as We, w as Ge, x as Ke, y as qe } from "./document-pull-client-DSx36ZsB.js";
|
|
@@ -1875,7 +1875,7 @@ var rn = class e {
|
|
|
1875
1875
|
this._pendingZoomAnchor = Number.isFinite(n) && Number.isFinite(r) ? {
|
|
1876
1876
|
x: n,
|
|
1877
1877
|
y: r
|
|
1878
|
-
} : null, this.setScale(me(this._scale, e.deltaY));
|
|
1878
|
+
} : null, this.setScale(me(this._scale, e.deltaY, e.deltaMode));
|
|
1879
1879
|
}, this._scrollHost.addEventListener("wheel", this._wheelListener, { passive: !1 })), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver(() => this._onResize()), this._resizeObserver.observe(this._container)), this._borrowed && (this._bindLayoutDocument(n), this.relayout());
|
|
1880
1880
|
}
|
|
1881
1881
|
async load(e) {
|
package/dist/docx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Qt as e, Zt as t, a as n } from "./line-metrics-Bpn7OeZD.js";
|
|
2
|
-
import { w as r } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { w as r } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
3
3
|
import { cn as i, ln as a } from "./plot-area-frame-DHV02PJU.js";
|
|
4
|
-
import { a as o, c as s, i as c, l, n as u, o as d, r as f, s as p } from "./docx-
|
|
4
|
+
import { a as o, c as s, i as c, l, n as u, o as d, r as f, s as p } from "./docx-DojUJSZd.js";
|
|
5
5
|
import { n as m, r as h } from "./comments-AAaNnQTi.js";
|
|
6
6
|
export { s as DocxDocument, f as DocxScrollViewer, c as DocxViewer, i as OoxmlDecodedImageLimitError, t as OoxmlError, e as OoxmlResourceLimitError, r as autoResize, d as buildDocxHighlightLayer, p as buildDocxTextLayer, a as isOoxmlDecodedImageLimitError, u as noteText, n as openExternalHyperlink, o as readDocxTextSelectionContext, m as resolveCommentAnchorRuns, h as resolveDocxCommentThreads, l as resolveRevisionAnchorRuns };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./xlsx-
|
|
2
|
-
import { t } from "./pptx-
|
|
3
|
-
import { t as n } from "./docx-
|
|
1
|
+
import { t as e } from "./xlsx-C3beLfwZ.js";
|
|
2
|
+
import { t } from "./pptx-Wh22eziy.js";
|
|
3
|
+
import { t as n } from "./docx-DojUJSZd.js";
|
|
4
4
|
export { n as docx, t as pptx, e as xlsx };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-B9rcJdO4.js";
|
|
3
3
|
import { B as p, G as m, Qt as h, R as g, Rt as _, Vt as v, W as y, Zt as b, a as x, et as S, ft as C, lt as w, tt as ee, z as te } from "./line-metrics-Bpn7OeZD.js";
|
|
4
|
-
import { C as ne, E as re, S as ie, T as ae, _ as oe, a as T, b as se, c as E, d as ce, f as le, g as ue, h as de, i as D, l as O, m as fe, n as pe, o as me, p as he, r as ge, s as _e, t as ve, v as ye, w as be, x as xe, y as Se } from "./canvas-viewer-mechanics-
|
|
4
|
+
import { C as ne, E as re, S as ie, T as ae, _ as oe, a as T, b as se, c as E, d as ce, f as le, g as ue, h as de, i as D, l as O, m as fe, n as pe, o as me, p as he, r as ge, s as _e, t as ve, v as ye, w as be, x as xe, y as Se } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
5
5
|
import { a as Ce, i as k, n as we, t as Te } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
6
6
|
import { a as A, c as Ee, i as De, l as j, n as Oe, r as ke, t as Ae } from "./dom-interaction-boundary-CepOlXt6.js";
|
|
7
7
|
import { cn as je, ln as Me } from "./plot-area-frame-DHV02PJU.js";
|
|
@@ -2100,7 +2100,7 @@ var $ = 440, Kt = 20, qt = Symbol("PptxScrollViewer.borrowedPresentation"), Jt =
|
|
|
2100
2100
|
this._pendingZoomAnchor = Number.isFinite(n) && Number.isFinite(r) ? {
|
|
2101
2101
|
x: n,
|
|
2102
2102
|
y: r
|
|
2103
|
-
} : null, this.setScale(xe(this._scale, e.deltaY));
|
|
2103
|
+
} : null, this.setScale(xe(this._scale, e.deltaY, e.deltaMode));
|
|
2104
2104
|
}, this._scrollHost.addEventListener("wheel", this._wheelListener, { passive: !1 })), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver(() => this._onResize()), this._resizeObserver.observe(this._container)), this._borrowed && (this._bindLayoutPresentation(r), this.relayout());
|
|
2105
2105
|
}
|
|
2106
2106
|
async load(e) {
|
package/dist/pptx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as e } from "./slide-pull-client-B9rcJdO4.js";
|
|
2
2
|
import { Qt as t, Zt as n, a as r } from "./line-metrics-Bpn7OeZD.js";
|
|
3
|
-
import { w as i } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { w as i } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
4
4
|
import { cn as a, ln as o } from "./plot-area-frame-DHV02PJU.js";
|
|
5
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-
|
|
5
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-Wh22eziy.js";
|
|
6
6
|
export { a as OoxmlDecodedImageLimitError, n as OoxmlError, t as OoxmlResourceLimitError, s as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, i as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, o as isOoxmlDecodedImageLimitError, r as openExternalHyperlink, c as readPptxTextSelectionContext, e as renderSlide };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { $ as t, A as n, At as r, B as i, C as a, Ct as o, D as s, Dt as c, Et as l, Ht as u, M as d, Mt as f, Nt as p, O as m, Ot as h, Pt as g, Qt as _, R as v, S as y, T as b, V as x, Vt as S, W as C, Zt as w, _ as T, a as E, at as D, c as O, d as k, dt as A, et as j, f as M, ft as N, g as ee, h as P, it as F, j as te, jt as I, lt as L, m as R, n as z, nt as ne, p as B, rt as V, s as re, tt as H, u as ie, ut as U, w as ae, y as oe, z as se } from "./line-metrics-Bpn7OeZD.js";
|
|
3
|
-
import { C as ce, E as le, S as ue, T as de, _ as fe, a as pe, b as me, d as W, f as G, h as K, i as he, l as ge, m as _e, p as ve, t as ye, u as q, v as be, w as xe, x as Se, y as Ce } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { C as ce, E as le, S as ue, T as de, _ as fe, a as pe, b as me, d as W, f as G, h as K, i as he, l as ge, m as _e, p as ve, t as ye, u as q, v as be, w as xe, x as Se, y as Ce } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
4
4
|
import { a as we, i as Te, t as Ee } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { C as De, _ as J, c as Oe, cn as ke, h as Ae, in as je, k as Me, l as Ne, ln as Pe, nn as Fe, o as Ie, s as Le, un as Re, v as ze, w as Be } from "./plot-area-frame-DHV02PJU.js";
|
|
6
6
|
import { a as Ve, i as Y, r as He } from "./units-BzZ0gAxs.js";
|
|
@@ -7628,7 +7628,7 @@ var Gs = class {
|
|
|
7628
7628
|
this._pendingZoomAnchor = Number.isFinite(t) && Number.isFinite(n) ? {
|
|
7629
7629
|
x: t,
|
|
7630
7630
|
y: n
|
|
7631
|
-
} : null, this.setScale(Se(this.viewport.scale, e.deltaY));
|
|
7631
|
+
} : null, this.setScale(Se(this.viewport.scale, e.deltaY, e.deltaMode));
|
|
7632
7632
|
}, { passive: !1 }), this.surface.on("pointerleave", (e) => {
|
|
7633
7633
|
let t = e.relatedTarget;
|
|
7634
7634
|
t && this.commentPopup.contains(t) || this.hideCommentPopup();
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Qt as e, Zt as t, a as n } from "./line-metrics-Bpn7OeZD.js";
|
|
2
|
-
import { w as r } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { w as r } from "./canvas-viewer-mechanics-DVGK-fLT.js";
|
|
3
3
|
import { cn as i, ln as a } from "./plot-area-frame-DHV02PJU.js";
|
|
4
|
-
import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-
|
|
4
|
+
import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-C3beLfwZ.js";
|
|
5
5
|
import { i as f } from "./worksheet-pull-client-DyFsDF4A.js";
|
|
6
6
|
export { s as MAX_SELECTION_AREAS, o as MAX_SELECTION_CONTEXT_CELLS, l as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, i as OoxmlDecodedImageLimitError, t as OoxmlError, e as OoxmlResourceLimitError, c as XlsxSheetViewer, u as XlsxViewer, d as XlsxWorkbook, r as autoResize, a as isOoxmlDecodedImageLimitError, n as openExternalHyperlink, f as resolveSharedStrings };
|
package/package.json
CHANGED