@silurus/ooxml 0.80.2 → 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.
Files changed (54) hide show
  1. package/README.md +57 -77
  2. package/dist/assets/render-worker-C2ACcLes.js +11 -0
  3. package/dist/assets/render-worker-Cx5uR77k.js +10 -0
  4. package/dist/assets/render-worker-DtU8oQZ7.js +24 -0
  5. package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CqxKRGCp.js} +1 -1
  6. package/dist/chart-ex.mjs +1017 -0
  7. package/dist/{document-pull-client-Cukkyojh.js → document-pull-client-Ux4a_ax8.js} +4540 -4412
  8. package/dist/{docx-BlELeDNF.js → docx-SEyQ4gS-.js} +79 -75
  9. package/dist/docx.mjs +5 -4
  10. package/dist/docx_parser_bg.wasm +0 -0
  11. package/dist/index.mjs +3 -3
  12. package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-BBGvvwLt.js} +17 -16
  13. package/dist/{line-metrics-DdEJYxjx.js → line-metrics-Baz31mML.js} +663 -7488
  14. package/dist/math.mjs +29 -24
  15. package/dist/node.mjs +248 -247
  16. package/dist/plot-area-frame-Dg1VIpUU.js +3669 -0
  17. package/dist/{pptx-JBkXh6Cy.js → pptx-5lQrMvMR.js} +236 -232
  18. package/dist/pptx.mjs +6 -5
  19. package/dist/pptx_parser_bg.wasm +0 -0
  20. package/dist/region-map.mjs +102 -97
  21. package/dist/{render-CoqMHcbF.js → render-DEHjijQD.js} +1 -1
  22. package/dist/{render-worker-host-CM1JXVqg.js → render-worker-host-B1nbV_k7.js} +1 -1
  23. package/dist/{render-worker-host-DFtd9Z-J.js → render-worker-host-Bze5M6k5.js} +1 -1
  24. package/dist/{render-worker-host-Br7ZDyGE.js → render-worker-host-Dg_74V64.js} +1 -1
  25. package/dist/renderer-DuopJE1K.js +5855 -0
  26. package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-0bO_5SC0.js} +4 -3
  27. package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-DRLp4nFt.js} +12 -11
  28. package/dist/{session-DkPblDiq.js → session-CNVc3VJ4.js} +8 -8
  29. package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CzutXnGc.js} +888 -1082
  30. package/dist/three-d-BYiWCNlz.js +1345 -0
  31. package/dist/three-d.mjs +1238 -798
  32. package/dist/types/chart-ex.d.ts +949 -0
  33. package/dist/types/docx.d.ts +325 -18
  34. package/dist/types/index.d.ts +325 -26
  35. package/dist/types/math.d.ts +1 -1
  36. package/dist/types/node.d.ts +303 -14
  37. package/dist/types/pptx.d.ts +314 -22
  38. package/dist/types/region-map.d.ts +318 -6
  39. package/dist/types/three-d.d.ts +318 -6
  40. package/dist/types/xlsx.d.ts +317 -18
  41. package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-Cxj3Ej0s.js} +19 -19
  42. package/dist/{xlsx-dhsUXUpX.js → xlsx-Bl3TIEVu.js} +1313 -1279
  43. package/dist/xlsx.mjs +6 -5
  44. package/dist/xlsx_parser_bg.wasm +0 -0
  45. package/package.json +7 -1
  46. package/dist/assets/render-worker-BD1_LaFD.js +0 -9
  47. package/dist/assets/render-worker-BIqMQFkZ.js +0 -8
  48. package/dist/assets/render-worker-DuvX4_li.js +0 -22
  49. package/dist/chart-number-format-qLhnk6hj.js +0 -475
  50. package/dist/three-d-C28kqDym.js +0 -1086
  51. /package/dist/{highlight-rect-BuX5rWP4.js → highlight-rect-BqcZMHUE.js} +0 -0
  52. /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DJa-Q93p.js} +0 -0
  53. /package/dist/{transfer-CKZ79zFw.js → transfer-D0U6Uhn4.js} +0 -0
  54. /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, Z as c, et as l, ln as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-DdEJYxjx.js";
2
- import { n as h, r as g, t as _ } from "./resource-measurement-CgMubiAI.js";
3
- import { t as v } from "./transfer-CKZ79zFw.js";
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 = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
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 u(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
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
- }, c, l = !1, d = new t({
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 c = n.worksheet;
188
+ } else l = n.worksheet;
189
189
  } catch (e) {
190
- throw e instanceof u && (this.resourceFailure ??= e), e;
190
+ throw e instanceof c && (this.resourceFailure ??= e), e;
191
191
  }
192
192
  }
193
- l = t;
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 (!l) return;
204
+ if (!u) return;
205
205
  let t, n;
206
206
  try {
207
207
  if (this.acceptWorksheet) {
208
- if (!c) throw Error("worksheet terminal payload is missing");
209
- c.rows = c.parseError ? [] : o;
210
- let r = c.parseError ? {
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(c, r), a = this.readResourceUsage();
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 l = this.acceptWorksheet(e, c, i, a);
217
- typeof l == "function" ? t = l : l && ({rollback: t, commit: n} = l);
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 u && (this.resourceFailure ??= e), e;
221
+ throw t?.(), e instanceof c && (this.resourceFailure ??= e), e;
222
222
  }
223
- l = !1, this.sessions.delete(r.sessionId), a();
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 u && (this.resourceFailure ??= e), e;
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
  }