@silurus/ooxml 0.86.1 → 0.87.0
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 +42 -2
- package/dist/assets/render-worker-CeK_iqK3.js +10 -0
- package/dist/assets/render-worker-DusrDhPk.js +11 -0
- package/dist/assets/render-worker-n2ZG0lrQ.js +31 -0
- package/dist/{canvas-viewer-mechanics-DN5SqWGS.js → canvas-viewer-mechanics-Cpk0YFvM.js} +74 -65
- package/dist/chart-ex.mjs +1 -1
- package/dist/cjk-fallback-bLI3z70h.js +46 -0
- package/dist/{comment-ui-runtime-lXwVOgjW.js → comment-ui-runtime-BfE7MJZn.js} +4 -4
- package/dist/comment-ui-runtime-BsK8pmUT.js +2 -0
- package/dist/{comment-ui-runtime-DEtgcmj7.js → comment-ui-runtime-DcJOYlw-.js} +5 -5
- package/dist/{comments-CAn2A_Xh.js → comments-Diid5ujN.js} +1 -1
- package/dist/{document-pull-client-uopDjRde.js → document-pull-client-yKxI8aDH.js} +4588 -4545
- package/dist/{docx-wPzeF76A.js → docx-BkSRiy07.js} +318 -311
- package/dist/docx.mjs +5 -5
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{dom-interaction-boundary-CswB9Tzi.js → dom-interaction-boundary-CBUQJsIM.js} +22 -19
- package/dist/{hyperlink-BR1NCO7S.js → hyperlink-ArrU3ArU.js} +771 -757
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-IsUGfHXm.js → line-distribute-Dtudnqhs.js} +1 -1
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +356 -352
- package/dist/{pptx-BxJ_RBSY.js → pptx-62MmVbYB.js} +442 -435
- package/dist/pptx.mjs +7 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +1 -1
- package/dist/{render-DEiun_AH.js → render-8Zo7dnds.js} +31 -29
- package/dist/{render-worker-host-Ba6Fchqr.js → render-worker-host-BfbnEChF.js} +1 -1
- package/dist/{render-worker-host-BEfLZvSL.js → render-worker-host-DNL9dWRh.js} +1 -1
- package/dist/{render-worker-host-C3xwtHnv.js → render-worker-host-IkHrYOci.js} +1 -1
- package/dist/{resource-measurement-CclArDRs.js → resource-measurement-CJsgolre.js} +1 -1
- package/dist/{session-BuJL_xcp.js → session-CrU8f8DI.js} +98 -98
- package/dist/{slide-pull-client-Ck8wfRT_.js → slide-pull-client-B9KA8bU6.js} +773 -744
- package/dist/three-d.mjs +1 -1
- package/dist/tiff.mjs +1 -1
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +15 -11
- package/dist/types/index.d.ts +23 -17
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +12 -6
- package/dist/types/pptx.d.ts +15 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +15 -11
- package/dist/{worksheet-pull-client-CAvuf22q.js → worksheet-pull-client-eIcQ-xlD.js} +51 -51
- package/dist/{xlsx-Bblm5r1h.js → xlsx-CRcSzZNq.js} +1589 -1563
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-D21h5TGR.js +0 -10
- package/dist/assets/render-worker-Dsfekaht.js +0 -11
- package/dist/assets/render-worker-DxU7IrKo.js +0 -31
- package/dist/comment-ui-runtime-TLHustXJ.js +0 -2
- /package/dist/{bounded-raw-part-cache-BfbSxRIL.js → bounded-raw-part-cache-Cg1BsSZQ.js} +0 -0
- /package/dist/{comment-occurrence-CqejEuts.js → comment-occurrence-C8Y2uoVr.js} +0 -0
- /package/dist/{delimited-text-worker-host-DcHj_JZt.js → delimited-text-worker-host-BVY-Ecni.js} +0 -0
- /package/dist/{highlight-rect-FuUSmL3a.js → highlight-rect-C5hkRqUr.js} +0 -0
- /package/dist/{line-metrics-CBbw80Ko.js → line-metrics-B60C86uh.js} +0 -0
- /package/dist/{mathjax-DS69BmJd.js → mathjax-DoyWZbSp.js} +0 -0
- /package/dist/{read-only-comment-decoration-BTnWEeo5.js → read-only-comment-decoration-Dz7eTQ4d.js} +0 -0
- /package/dist/{read-only-comment-margin-plStyGfE.js → read-only-comment-margin-DkgzASAl.js} +0 -0
- /package/dist/{renderer-module-contract-Cu-GKuPd.js → renderer-module-contract-D91rkYHH.js} +0 -0
- /package/dist/{source-key-Ktb1GRE5.js → source-key-DIJG8BA0.js} +0 -0
- /package/dist/{transfer-mIj7E7NB.js → transfer-p6iCC2R7.js} +0 -0
- /package/dist/{visible-index-DPoQYSDt.js → visible-index-BgiHEc1z.js} +0 -0
package/dist/docx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as r } from "./canvas-viewer-mechanics-
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d } from "./docx-
|
|
1
|
+
import { ln as e, r as t, un as n } from "./hyperlink-ArrU3ArU.js";
|
|
2
|
+
import { T as r } from "./canvas-viewer-mechanics-Cpk0YFvM.js";
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d } from "./docx-BkSRiy07.js";
|
|
4
4
|
import { l as f, s as p } from "./pixel-budget-Dgjw269h.js";
|
|
5
5
|
import { i as m, s as h } from "./raster-target-ojDdQizC.js";
|
|
6
|
-
import { n as g, r as _ } from "./comments-
|
|
7
|
-
export { a as DocxDocument, u as DocxScrollViewer, o as DocxViewer, p as OoxmlDecodedImageLimitError,
|
|
6
|
+
import { n as g, r as _ } from "./comments-Diid5ujN.js";
|
|
7
|
+
export { a as DocxDocument, u as DocxScrollViewer, o as DocxViewer, p as OoxmlDecodedImageLimitError, e as OoxmlError, n as OoxmlResourceLimitError, m as TiffDecodeError, r as autoResize, l as buildDocxHighlightLayer, d as buildDocxTextLayer, f as isOoxmlDecodedImageLimitError, h as isTiffDecodeError, c as noteText, t as openExternalHyperlink, i as readDocxTextSelectionContext, g as resolveCommentAnchorRuns, _ as resolveDocxCommentThreads, s as resolveRevisionAnchorRuns };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as t, E as n, j as r, k as i } from "./canvas-viewer-mechanics-
|
|
1
|
+
import { Yt as e } from "./hyperlink-ArrU3ArU.js";
|
|
2
|
+
import { A as t, E as n, j as r, k as i } from "./canvas-viewer-mechanics-Cpk0YFvM.js";
|
|
3
3
|
//#region packages/core/src/fonts/embedded.ts
|
|
4
4
|
function a(t, n = e) {
|
|
5
5
|
return t.byteLength > 0 && t.byteLength <= n;
|
|
@@ -62,7 +62,10 @@ function u(e) {
|
|
|
62
62
|
function d(e, t, n) {
|
|
63
63
|
return e < t ? t : e > n ? n : e;
|
|
64
64
|
}
|
|
65
|
-
function f(e, t
|
|
65
|
+
function f(e, t) {
|
|
66
|
+
return Math.min(Math.max(0, t), Math.ceil(Math.max(0, e)));
|
|
67
|
+
}
|
|
68
|
+
function p(e, t, n) {
|
|
66
69
|
let r = e.length;
|
|
67
70
|
if (r === 0) return {
|
|
68
71
|
offsets: [],
|
|
@@ -75,7 +78,7 @@ function f(e, t, n) {
|
|
|
75
78
|
totalHeight: i + s + (r - 1) * t + a
|
|
76
79
|
};
|
|
77
80
|
}
|
|
78
|
-
function
|
|
81
|
+
function m(e, t, n, r) {
|
|
79
82
|
let i = e.offsets, a = i.length;
|
|
80
83
|
if (a === 0) return {
|
|
81
84
|
start: 0,
|
|
@@ -103,7 +106,7 @@ function p(e, t, n, r) {
|
|
|
103
106
|
totalHeight: e.totalHeight
|
|
104
107
|
};
|
|
105
108
|
}
|
|
106
|
-
function
|
|
109
|
+
function h(e, t, n, r, i, a, o) {
|
|
107
110
|
if (e === 0) return {
|
|
108
111
|
start: 0,
|
|
109
112
|
end: -1,
|
|
@@ -120,7 +123,7 @@ function m(e, t, n, r, i, a, o) {
|
|
|
120
123
|
}
|
|
121
124
|
//#endregion
|
|
122
125
|
//#region packages/core/src/internal/progressive-layout-lifecycle.ts
|
|
123
|
-
var
|
|
126
|
+
var g = class {
|
|
124
127
|
state = Object.freeze({ status: "complete" });
|
|
125
128
|
get complete() {
|
|
126
129
|
return this.state.status === "complete";
|
|
@@ -144,7 +147,7 @@ var h = class {
|
|
|
144
147
|
throwIfFailed() {
|
|
145
148
|
if (this.state.status === "failed") throw this.state.error;
|
|
146
149
|
}
|
|
147
|
-
},
|
|
150
|
+
}, _ = class {
|
|
148
151
|
failed = /* @__PURE__ */ new WeakMap();
|
|
149
152
|
notify(e, t, ...n) {
|
|
150
153
|
if (!(!t || this.failed.get(t)?.has(e))) try {
|
|
@@ -161,8 +164,8 @@ var h = class {
|
|
|
161
164
|
let i = n instanceof Error ? n : Error(String(n));
|
|
162
165
|
console.error(`[ooxml] ${e} callback failed and was disabled:`, i);
|
|
163
166
|
}
|
|
164
|
-
},
|
|
165
|
-
function
|
|
167
|
+
}, v = 65536;
|
|
168
|
+
function y(e, t) {
|
|
166
169
|
let n = Math.min(e.length, t);
|
|
167
170
|
if (n > 0 && n < e.length) {
|
|
168
171
|
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
@@ -170,13 +173,13 @@ function v(e, t) {
|
|
|
170
173
|
}
|
|
171
174
|
return e.slice(0, n);
|
|
172
175
|
}
|
|
173
|
-
function
|
|
176
|
+
function b(e) {
|
|
174
177
|
if (e !== void 0 && (!Number.isFinite(e) || e < 0)) throw RangeError("maxTextCharacters must be a finite non-negative number.");
|
|
175
|
-
return Math.min(
|
|
178
|
+
return Math.min(v, Math.floor(e ?? 65536));
|
|
176
179
|
}
|
|
177
|
-
function
|
|
178
|
-
let r =
|
|
179
|
-
let t =
|
|
180
|
+
function x(e, t, n) {
|
|
181
|
+
let r = b(n), i = 0, a = !1, o = (e) => {
|
|
182
|
+
let t = y(e.text, Math.max(0, r - i));
|
|
180
183
|
return i += t.length, t.length < e.text.length && (a = !0), {
|
|
181
184
|
...e,
|
|
182
185
|
text: t
|
|
@@ -194,27 +197,27 @@ function b(e, t, n) {
|
|
|
194
197
|
}
|
|
195
198
|
//#endregion
|
|
196
199
|
//#region packages/core/src/internal/dom-interaction-boundary.ts
|
|
197
|
-
function
|
|
200
|
+
function S(e, t) {
|
|
198
201
|
return e.dataset?.[t] !== void 0;
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function C(e, t, n) {
|
|
201
204
|
let r = typeof e.composedPath == "function" ? e.composedPath() : [];
|
|
202
205
|
if (r.length > 0) {
|
|
203
206
|
let e = !1;
|
|
204
207
|
for (let i of r) {
|
|
205
208
|
if (i === t) return e;
|
|
206
|
-
|
|
209
|
+
S(i, n) && (e = !0);
|
|
207
210
|
}
|
|
208
211
|
}
|
|
209
212
|
let i = e.target;
|
|
210
213
|
if (!i || !t.contains(i)) return !1;
|
|
211
214
|
let a = i;
|
|
212
215
|
for (; a;) {
|
|
213
|
-
if (
|
|
216
|
+
if (S(a, n)) return !0;
|
|
214
217
|
if (a === t) break;
|
|
215
218
|
a = a.parentElement;
|
|
216
219
|
}
|
|
217
220
|
return !1;
|
|
218
221
|
}
|
|
219
222
|
//#endregion
|
|
220
|
-
export {
|
|
223
|
+
export { h as a, f as c, l as d, u as f, g as i, o as l, x as n, m as o, _ as r, p as s, C as t, a as u };
|