@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.
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-vxk-Aomu.js → document-pull-client-Ux4a_ax8.js} +4540 -4412
  8. package/dist/{docx-DN0PRx2f.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 +2 -2
  15. package/dist/node.mjs +248 -247
  16. package/dist/plot-area-frame-Dg1VIpUU.js +3669 -0
  17. package/dist/{pptx-B-Laftl1.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-CYPhmBtX.js → render-worker-host-B1nbV_k7.js} +1 -1
  23. package/dist/{render-worker-host-GlLR1rtF.js → render-worker-host-Bze5M6k5.js} +1 -1
  24. package/dist/{render-worker-host-IuQFpoJM.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-DqMe7J2C.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-CRaEOHkw.js +0 -9
  47. package/dist/assets/render-worker-DQGLj5Zv.js +0 -22
  48. package/dist/assets/render-worker-rnrSLmqL.js +0 -8
  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
Binary file
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-DN0PRx2f.js";
2
- import { t } from "./xlsx-DqMe7J2C.js";
3
- import { t as n } from "./pptx-B-Laftl1.js";
1
+ import { t as e } from "./docx-SEyQ4gS-.js";
2
+ import { t } from "./xlsx-Bl3TIEVu.js";
3
+ import { t as n } from "./pptx-5lQrMvMR.js";
4
4
  export { e as docx, n as pptx, t as xlsx };
@@ -1,4 +1,5 @@
1
- import { Vt as e, Zt as t, b as n, w as r, x as i } from "./line-metrics-DdEJYxjx.js";
1
+ import { Nt as e, b as t, w as n, x as r } from "./line-metrics-Baz31mML.js";
2
+ import { _ as i } from "./plot-area-frame-Dg1VIpUU.js";
2
3
  //#region packages/core/src/fonts/symbol-font.ts
3
4
  var a = {
4
5
  167: "♣",
@@ -912,10 +913,10 @@ function I(e, t, n) {
912
913
  y: e.y + i * o
913
914
  };
914
915
  }
915
- function L(e, n, r, i, a, o, s, c) {
916
+ function L(e, t, n, r, a, o, s, c) {
916
917
  if (a.type === "none") return;
917
- let { lw: l, halfW: u, len: d } = M(a, o, s), f = c ?? t(o.color);
918
- switch (e.save(), e.translate(n, r), e.rotate(i), e.fillStyle = f, e.strokeStyle = f, e.lineWidth = l, e.setLineDash([]), e.beginPath(), a.type) {
918
+ let { lw: l, halfW: u, len: d } = M(a, o, s), f = c ?? i(o.color);
919
+ switch (e.save(), e.translate(t, n), e.rotate(r), e.fillStyle = f, e.strokeStyle = f, e.lineWidth = l, e.setLineDash([]), e.beginPath(), a.type) {
919
920
  case "triangle":
920
921
  case "stealth":
921
922
  e.moveTo(0, 0), e.lineTo(-d, -u), e.lineTo(-d, u), e.closePath(), e.fill();
@@ -935,9 +936,9 @@ function L(e, n, r, i, a, o, s, c) {
935
936
  //#endregion
936
937
  //#region packages/core/src/text/line-distribute.ts
937
938
  var R = (e) => e === 32 || e === 12288;
938
- function z(e, t, a = {}) {
939
- if (Math.abs(t) <= .5) return null;
940
- let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? e.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ?? r, u = a.isWhitespace ?? R, d = a.seaClusterGaps ?? !1, f = [];
939
+ function z(e, i, a = {}) {
940
+ if (Math.abs(i) <= .5) return null;
941
+ let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? e.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ?? n, u = a.isWhitespace ?? R, d = a.seaClusterGaps ?? !1, f = [];
941
942
  for (let t = o; t < e.length; t++) {
942
943
  let n = e[t];
943
944
  if (n === void 0) continue;
@@ -965,20 +966,20 @@ function z(e, t, a = {}) {
965
966
  if (p === -1 || p === m) return null;
966
967
  let h = Array(f.length).fill(!1), g = 0;
967
968
  for (let e = p; e < m; e++) {
968
- let t = f[e];
969
- if (t.si === s) continue;
970
- if (t.ws) {
969
+ let n = f[e];
970
+ if (n.si === s) continue;
971
+ if (n.ws) {
971
972
  h[e] = !0, g++;
972
973
  continue;
973
974
  }
974
- let r = f[e + 1];
975
- if (r.ws) continue;
976
- let a = t.cp, o = r.cp;
977
- (a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 && i(a) && i(o) && !n(o)) && (h[e] = !0, g++);
975
+ let i = f[e + 1];
976
+ if (i.ws) continue;
977
+ let a = n.cp, o = i.cp;
978
+ (a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 && r(a) && r(o) && !t(o)) && (h[e] = !0, g++);
978
979
  }
979
980
  if (g === 0) return null;
980
- let _ = t / g;
981
- t < 0 && _ < c && (_ = c);
981
+ let _ = i / g;
982
+ i < 0 && _ < c && (_ = c);
982
983
  let v = /* @__PURE__ */ new Map();
983
984
  for (let e of f) e.cp !== void 0 && v.set(e.si, (v.get(e.si) ?? 0) + 1);
984
985
  let y = /* @__PURE__ */ new Map();