@silurus/ooxml 0.86.1 → 0.88.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 (72) hide show
  1. package/README.md +42 -2
  2. package/dist/assets/render-worker-1uPAxMZr.js +31 -0
  3. package/dist/assets/render-worker-BlvJybji.js +10 -0
  4. package/dist/assets/render-worker-CzmiJfFL.js +11 -0
  5. package/dist/{canvas-viewer-mechanics-DN5SqWGS.js → canvas-viewer-mechanics-DbLz0rYW.js} +75 -66
  6. package/dist/chart-ex.mjs +581 -616
  7. package/dist/cjk-fallback-bLI3z70h.js +46 -0
  8. package/dist/comment-ui-runtime-BsK8pmUT.js +2 -0
  9. package/dist/{comment-ui-runtime-lXwVOgjW.js → comment-ui-runtime-CWGqn5Vr.js} +5 -5
  10. package/dist/{comment-ui-runtime-DEtgcmj7.js → comment-ui-runtime-DcJOYlw-.js} +5 -5
  11. package/dist/{comments-CAn2A_Xh.js → comments-Diid5ujN.js} +1 -1
  12. package/dist/{document-pull-client-uopDjRde.js → document-pull-client-B9PTM-pL.js} +4693 -4621
  13. package/dist/{docx-wPzeF76A.js → docx-BF9WXrYH.js} +503 -388
  14. package/dist/docx.mjs +6 -6
  15. package/dist/docx_parser_bg.wasm +0 -0
  16. package/dist/{dom-interaction-boundary-CswB9Tzi.js → dom-interaction-boundary-Cnm8DSBN.js} +22 -19
  17. package/dist/{hyperlink-BR1NCO7S.js → hyperlink-Cxzhet30.js} +842 -829
  18. package/dist/index.mjs +3 -3
  19. package/dist/{line-distribute-IsUGfHXm.js → line-distribute-D1WNHKz_.js} +2 -2
  20. package/dist/math.mjs +2 -2
  21. package/dist/node.mjs +356 -352
  22. package/dist/plot-area-frame-DLTYKHNP.js +4354 -0
  23. package/dist/{pptx-BxJ_RBSY.js → pptx-DkyYBYoL.js} +444 -435
  24. package/dist/pptx.mjs +7 -7
  25. package/dist/pptx_parser_bg.wasm +0 -0
  26. package/dist/region-map.mjs +5 -5
  27. package/dist/{render-DEiun_AH.js → render-D3iqVKCo.js} +31 -29
  28. package/dist/{render-worker-host-Ba6Fchqr.js → render-worker-host-B5wQfB7U.js} +1 -1
  29. package/dist/{render-worker-host-BEfLZvSL.js → render-worker-host-D4123J27.js} +1 -1
  30. package/dist/{render-worker-host-C3xwtHnv.js → render-worker-host-Di3LxLc0.js} +1 -1
  31. package/dist/renderer-B4GZb5We.js +6492 -0
  32. package/dist/{resource-measurement-CclArDRs.js → resource-measurement-SHQCbkh2.js} +3 -3
  33. package/dist/{session-BuJL_xcp.js → session-BGq81gRQ.js} +98 -98
  34. package/dist/{slide-pull-client-Ck8wfRT_.js → slide-pull-client-DiPnm240.js} +767 -738
  35. package/dist/{three-d-YYghQndN.js → three-d-DJBl8g8M.js} +251 -435
  36. package/dist/three-d.mjs +998 -906
  37. package/dist/tiff.mjs +2 -2
  38. package/dist/types/chart-ex.d.ts +142 -4
  39. package/dist/types/docx.d.ts +155 -13
  40. package/dist/types/index.d.ts +131 -19
  41. package/dist/types/math.d.ts +1 -1
  42. package/dist/types/node.d.ts +120 -8
  43. package/dist/types/pptx.d.ts +123 -13
  44. package/dist/types/region-map.d.ts +142 -4
  45. package/dist/types/three-d.d.ts +142 -4
  46. package/dist/types/tiff.d.ts +1 -1
  47. package/dist/types/xlsx.d.ts +155 -13
  48. package/dist/{worksheet-pull-client-CAvuf22q.js → worksheet-pull-client-BM8ywvbu.js} +51 -51
  49. package/dist/{xlsx-Bblm5r1h.js → xlsx-C9NVjgaV.js} +1592 -1564
  50. package/dist/xlsx.mjs +6 -6
  51. package/dist/xlsx_parser_bg.wasm +0 -0
  52. package/package.json +1 -1
  53. package/dist/assets/render-worker-D21h5TGR.js +0 -10
  54. package/dist/assets/render-worker-Dsfekaht.js +0 -11
  55. package/dist/assets/render-worker-DxU7IrKo.js +0 -31
  56. package/dist/comment-ui-runtime-TLHustXJ.js +0 -2
  57. package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
  58. package/dist/renderer-XFSCOT6m.js +0 -5857
  59. /package/dist/{bounded-raw-part-cache-BfbSxRIL.js → bounded-raw-part-cache-Cg1BsSZQ.js} +0 -0
  60. /package/dist/{comment-occurrence-CqejEuts.js → comment-occurrence-C8Y2uoVr.js} +0 -0
  61. /package/dist/{delimited-text-worker-host-DcHj_JZt.js → delimited-text-worker-host-BVY-Ecni.js} +0 -0
  62. /package/dist/{highlight-rect-FuUSmL3a.js → highlight-rect-C5hkRqUr.js} +0 -0
  63. /package/dist/{line-metrics-CBbw80Ko.js → line-metrics-B60C86uh.js} +0 -0
  64. /package/dist/{mathjax-DS69BmJd.js → mathjax-DoyWZbSp.js} +0 -0
  65. /package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-9P63Bsk5.js} +0 -0
  66. /package/dist/{read-only-comment-decoration-BTnWEeo5.js → read-only-comment-decoration-Dz7eTQ4d.js} +0 -0
  67. /package/dist/{read-only-comment-margin-plStyGfE.js → read-only-comment-margin-DkgzASAl.js} +0 -0
  68. /package/dist/{renderer-module-contract-Cu-GKuPd.js → renderer-module-contract-D91rkYHH.js} +0 -0
  69. /package/dist/{source-key-Ktb1GRE5.js → source-key-DIJG8BA0.js} +0 -0
  70. /package/dist/{transfer-mIj7E7NB.js → transfer-p6iCC2R7.js} +0 -0
  71. /package/dist/{units-EJdC96r6.js → units-BzZ0gAxs.js} +0 -0
  72. /package/dist/{visible-index-DPoQYSDt.js → visible-index-BgiHEc1z.js} +0 -0
@@ -0,0 +1,46 @@
1
+ //#region packages/core/src/fonts/cjk-fallback.ts
2
+ function e(e) {
3
+ if (!e?.trim()) return null;
4
+ let t;
5
+ try {
6
+ t = new Intl.Locale(e.trim());
7
+ } catch {
8
+ return null;
9
+ }
10
+ let { language: n, script: r, region: i } = t;
11
+ return n === "ja" ? !r || [
12
+ "Jpan",
13
+ "Hani",
14
+ "Hira",
15
+ "Kana"
16
+ ].includes(r) ? "jp" : null : n === "ko" ? !r || [
17
+ "Kore",
18
+ "Hang",
19
+ "Hani"
20
+ ].includes(r) ? "kr" : null : n === "zh" ? r === "Hans" ? "sc" : r === "Hant" ? "tc" : r ? null : i === "HK" || i === "MO" ? "hk" : i === "TW" ? "tc" : "sc" : null;
21
+ }
22
+ function t(t = "auto") {
23
+ if (t !== "auto") {
24
+ if ([
25
+ "sc",
26
+ "tc",
27
+ "hk",
28
+ "jp",
29
+ "kr"
30
+ ].includes(t)) return t;
31
+ throw TypeError("cjkFallback must be auto, sc, tc, hk, jp, or kr");
32
+ }
33
+ let n = typeof document > "u" ? null : e(document.documentElement?.lang);
34
+ if (n) return n;
35
+ if (typeof navigator < "u") {
36
+ for (let t of navigator.languages ?? []) {
37
+ let n = e(t);
38
+ if (n) return n;
39
+ }
40
+ let t = e(navigator.language);
41
+ if (t) return t;
42
+ }
43
+ return "jp";
44
+ }
45
+ //#endregion
46
+ export { t as n, e as t };
@@ -0,0 +1,2 @@
1
+ import { a as e } from "./read-only-comment-margin-DkgzASAl.js";
2
+ export { e as paintReadOnlyCommentCard };
@@ -1,8 +1,8 @@
1
- import { i as e } from "./units-EJdC96r6.js";
2
- import { t } from "./highlight-rect-FuUSmL3a.js";
3
- import { t as n } from "./comment-occurrence-CqejEuts.js";
4
- import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-plStyGfE.js";
5
- import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-BTnWEeo5.js";
1
+ import { i as e } from "./units-BzZ0gAxs.js";
2
+ import { t } from "./highlight-rect-C5hkRqUr.js";
3
+ import { t as n } from "./comment-occurrence-C8Y2uoVr.js";
4
+ import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-DkgzASAl.js";
5
+ import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-Dz7eTQ4d.js";
6
6
  //#region packages/pptx/src/comment-margin.ts
7
7
  function f(e, t, n) {
8
8
  return {
@@ -1,8 +1,8 @@
1
- import { t as e } from "./highlight-rect-FuUSmL3a.js";
2
- import { o as t } from "./source-key-Ktb1GRE5.js";
3
- import { n } from "./comments-CAn2A_Xh.js";
4
- import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-plStyGfE.js";
5
- import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-BTnWEeo5.js";
1
+ import { t as e } from "./highlight-rect-C5hkRqUr.js";
2
+ import { o as t } from "./source-key-DIJG8BA0.js";
3
+ import { n } from "./comments-Diid5ujN.js";
4
+ import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-DkgzASAl.js";
5
+ import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-Dz7eTQ4d.js";
6
6
  //#region packages/docx/src/comment-margin.ts
7
7
  function p(e, r) {
8
8
  let i = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { o as e } from "./source-key-Ktb1GRE5.js";
1
+ import { o as e } from "./source-key-DIJG8BA0.js";
2
2
  //#region packages/docx/src/review-id.ts
3
3
  function t(e) {
4
4
  if (e === void 0) return;