@silurus/ooxml 0.80.3 → 0.82.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 +61 -85
- package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
- package/dist/assets/render-worker-B5gsW6b5.js +11 -0
- package/dist/assets/render-worker-Dw_wQRIh.js +24 -0
- package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
- package/dist/chart-ex.mjs +1017 -0
- package/dist/comment-occurrence-C34fWs_F.js +6 -0
- package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
- package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
- package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
- package/dist/comments-Cf9W7r3M.js +241 -0
- package/dist/{document-pull-client-vxk-Aomu.js → document-pull-client-BCgmytqI.js} +4682 -4541
- package/dist/docx-wokGKYfi.js +2162 -0
- package/dist/docx.mjs +6 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
- package/dist/highlight-rect-MaCt0om0.js +13 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-iXsUCIH-.js} +17 -16
- package/dist/{line-metrics-DdEJYxjx.js → line-metrics-B3syvDn2.js} +667 -7492
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +248 -247
- package/dist/plot-area-frame-DHV02PJU.js +3670 -0
- package/dist/pptx-DU8L8I2T.js +2432 -0
- package/dist/pptx.mjs +6 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
- package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
- package/dist/region-map.mjs +102 -97
- package/dist/{render-CoqMHcbF.js → render-CenWM4g1.js} +1 -1
- package/dist/{render-worker-host-IuQFpoJM.js → render-worker-host-BNENN3qP.js} +1 -1
- package/dist/{render-worker-host-CYPhmBtX.js → render-worker-host-BmH3kGSj.js} +1 -1
- package/dist/{render-worker-host-GlLR1rtF.js → render-worker-host-CmPBviYJ.js} +1 -1
- package/dist/renderer-CYr9YTXM.js +5856 -0
- package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-DLbb7zY0.js} +4 -3
- package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-CsW4_eYt.js} +12 -11
- package/dist/{session-DkPblDiq.js → session-Cky_swUj.js} +8 -8
- package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CqTVFb3W.js} +1004 -1091
- package/dist/source-key-BklvnEyQ.js +42 -0
- package/dist/three-d-7MaVzQuZ.js +1346 -0
- package/dist/three-d.mjs +1238 -797
- package/dist/types/chart-ex.d.ts +949 -0
- package/dist/types/docx.d.ts +497 -28
- package/dist/types/index.d.ts +649 -39
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +385 -22
- package/dist/types/pptx.d.ts +435 -24
- package/dist/types/region-map.d.ts +318 -6
- package/dist/types/three-d.d.ts +318 -6
- package/dist/types/xlsx.d.ts +384 -19
- package/dist/units-BzZ0gAxs.js +4 -0
- package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-CYtwXP5D.js} +19 -19
- package/dist/{xlsx-DqMe7J2C.js → xlsx-DlV37-0j.js} +1594 -1349
- package/dist/xlsx.mjs +6 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +7 -1
- package/dist/assets/render-worker-CRaEOHkw.js +0 -9
- package/dist/assets/render-worker-DQGLj5Zv.js +0 -22
- package/dist/assets/render-worker-rnrSLmqL.js +0 -8
- package/dist/chart-number-format-qLhnk6hj.js +0 -475
- package/dist/docx-DN0PRx2f.js +0 -1733
- package/dist/highlight-rect-BuX5rWP4.js +0 -48
- package/dist/pptx-B-Laftl1.js +0 -2134
- package/dist/three-d-C28kqDym.js +0 -1086
- /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DwIrafQ6.js} +0 -0
- /package/dist/{transfer-CKZ79zFw.js → transfer-R6NjgBKD.js} +0 -0
- /package/dist/{visible-index-BjesVGhg.js → visible-index-BFE3PWiY.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s,
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
3
|
-
import { t as v } from "./transfer-
|
|
1
|
+
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Yt as c, Z as l, et as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-B3syvDn2.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-CsW4_eYt.js";
|
|
3
|
+
import { t as v } from "./transfer-R6NjgBKD.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
|
-
var y = d, b = e, x =
|
|
5
|
+
var y = d, b = e, x = u, S = m, C = a, w = s, T = o, E = l, D = Object.freeze({
|
|
6
6
|
archiveEntryCount: 0,
|
|
7
7
|
declaredInflatedBytes: 0,
|
|
8
8
|
distinctInflatedBytes: 0,
|
|
@@ -45,7 +45,7 @@ function j(e, t, n = {}) {
|
|
|
45
45
|
}
|
|
46
46
|
function M(e, t, n, r, i, a, o) {
|
|
47
47
|
let s = n === "worksheet-json" ? "serialization" : "parsing";
|
|
48
|
-
return new
|
|
48
|
+
return new c(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
|
|
49
49
|
stage: s,
|
|
50
50
|
violation: {
|
|
51
51
|
format: "xlsx",
|
|
@@ -172,7 +172,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
172
172
|
rows: 0,
|
|
173
173
|
cells: 0,
|
|
174
174
|
ownedUtf8Bytes: 0
|
|
175
|
-
},
|
|
175
|
+
}, l, u = !1, d = new t({
|
|
176
176
|
...r,
|
|
177
177
|
maxByteCredit: z,
|
|
178
178
|
coordinator: this.coordinator,
|
|
@@ -185,12 +185,12 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
185
185
|
if (n.kind === "rows") {
|
|
186
186
|
let e = A(s, O(n.rows));
|
|
187
187
|
N(e, "get-worksheet-worker", void 0, this.readResourceUsage()), o.push(...n.rows), s = e;
|
|
188
|
-
} else
|
|
188
|
+
} else l = n.worksheet;
|
|
189
189
|
} catch (e) {
|
|
190
|
-
throw e instanceof
|
|
190
|
+
throw e instanceof c && (this.resourceFailure ??= e), e;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
u = t;
|
|
194
194
|
let n = v(e);
|
|
195
195
|
return {
|
|
196
196
|
payload: n,
|
|
@@ -201,26 +201,26 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
201
201
|
},
|
|
202
202
|
measureChunk: ({ payload: e }) => e.byteLength,
|
|
203
203
|
acknowledge: () => {
|
|
204
|
-
if (!
|
|
204
|
+
if (!u) return;
|
|
205
205
|
let t, n;
|
|
206
206
|
try {
|
|
207
207
|
if (this.acceptWorksheet) {
|
|
208
|
-
if (!
|
|
209
|
-
|
|
210
|
-
let r =
|
|
208
|
+
if (!l) throw Error("worksheet terminal payload is missing");
|
|
209
|
+
l.rows = l.parseError ? [] : o;
|
|
210
|
+
let r = l.parseError ? {
|
|
211
211
|
rows: 0,
|
|
212
212
|
cells: 0,
|
|
213
213
|
ownedUtf8Bytes: 0
|
|
214
|
-
} : s, i = k(
|
|
214
|
+
} : s, i = k(l, r), a = this.readResourceUsage();
|
|
215
215
|
N(i, "get-worksheet-worker", void 0, a), P(i.jsonBytes, "get-worksheet-worker", void 0, a);
|
|
216
|
-
let
|
|
217
|
-
typeof
|
|
216
|
+
let c = this.acceptWorksheet(e, l, i, a);
|
|
217
|
+
typeof c == "function" ? t = c : c && ({rollback: t, commit: n} = c);
|
|
218
218
|
}
|
|
219
219
|
this.executeArchive((e) => e.acknowledge_sheet_cursor_terminal()), n?.();
|
|
220
220
|
} catch (e) {
|
|
221
|
-
throw t?.(), e instanceof
|
|
221
|
+
throw t?.(), e instanceof c && (this.resourceFailure ??= e), e;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
u = !1, this.sessions.delete(r.sessionId), a();
|
|
224
224
|
},
|
|
225
225
|
cancel: () => {
|
|
226
226
|
try {
|
|
@@ -329,7 +329,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
329
329
|
if (this.resourceFailure) throw this.resourceFailure;
|
|
330
330
|
return e();
|
|
331
331
|
})).catch((e) => {
|
|
332
|
-
throw e instanceof
|
|
332
|
+
throw e instanceof c && (this.resourceFailure ??= e), e;
|
|
333
333
|
});
|
|
334
334
|
return this.operationTail = t.then(() => void 0, () => void 0), t;
|
|
335
335
|
}
|