@silurus/ooxml 0.80.3 → 0.81.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 +57 -77
- package/dist/assets/render-worker-C2ACcLes.js +11 -0
- package/dist/assets/render-worker-Cx5uR77k.js +10 -0
- package/dist/assets/render-worker-DtU8oQZ7.js +24 -0
- package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CqxKRGCp.js} +1 -1
- package/dist/chart-ex.mjs +1017 -0
- package/dist/{document-pull-client-vxk-Aomu.js → document-pull-client-Ux4a_ax8.js} +4540 -4412
- package/dist/{docx-DN0PRx2f.js → docx-SEyQ4gS-.js} +79 -75
- package/dist/docx.mjs +5 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-BBGvvwLt.js} +17 -16
- package/dist/{line-metrics-DdEJYxjx.js → line-metrics-Baz31mML.js} +663 -7488
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +248 -247
- package/dist/plot-area-frame-Dg1VIpUU.js +3669 -0
- package/dist/{pptx-B-Laftl1.js → pptx-5lQrMvMR.js} +236 -232
- package/dist/pptx.mjs +6 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +102 -97
- package/dist/{render-CoqMHcbF.js → render-DEHjijQD.js} +1 -1
- package/dist/{render-worker-host-CYPhmBtX.js → render-worker-host-B1nbV_k7.js} +1 -1
- package/dist/{render-worker-host-GlLR1rtF.js → render-worker-host-Bze5M6k5.js} +1 -1
- package/dist/{render-worker-host-IuQFpoJM.js → render-worker-host-Dg_74V64.js} +1 -1
- package/dist/renderer-DuopJE1K.js +5855 -0
- package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-0bO_5SC0.js} +4 -3
- package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-DRLp4nFt.js} +12 -11
- package/dist/{session-DkPblDiq.js → session-CNVc3VJ4.js} +8 -8
- package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CzutXnGc.js} +888 -1082
- package/dist/three-d-BYiWCNlz.js +1345 -0
- package/dist/three-d.mjs +1238 -798
- package/dist/types/chart-ex.d.ts +949 -0
- package/dist/types/docx.d.ts +325 -18
- package/dist/types/index.d.ts +325 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +303 -14
- package/dist/types/pptx.d.ts +314 -22
- package/dist/types/region-map.d.ts +318 -6
- package/dist/types/three-d.d.ts +318 -6
- package/dist/types/xlsx.d.ts +317 -18
- package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-Cxj3Ej0s.js} +19 -19
- package/dist/{xlsx-DqMe7J2C.js → xlsx-Bl3TIEVu.js} +1313 -1279
- 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/three-d-C28kqDym.js +0 -1086
- /package/dist/{highlight-rect-BuX5rWP4.js → highlight-rect-BqcZMHUE.js} +0 -0
- /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DJa-Q93p.js} +0 -0
- /package/dist/{transfer-CKZ79zFw.js → transfer-D0U6Uhn4.js} +0 -0
- /package/dist/{visible-index-BjesVGhg.js → visible-index-DbDuGMCE.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-Baz31mML.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-DRLp4nFt.js";
|
|
3
|
+
import { t as v } from "./transfer-D0U6Uhn4.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
|
}
|