@silurus/ooxml 0.88.0 → 0.89.1

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 (127) hide show
  1. package/README.md +118 -23
  2. package/THIRD_PARTY_NOTICES.md +8 -7
  3. package/dist/abort-VrnK7mdP.js +10 -0
  4. package/dist/assets/render-worker-C5G_Nr_A.js +35 -0
  5. package/dist/assets/render-worker-DQfWdNsm.js +16 -0
  6. package/dist/assets/render-worker-Ds7LjwU-.js +15 -0
  7. package/dist/{hyperlink-Cxzhet30.js → bounded-raw-part-cache-CsnNptAy.js} +4937 -7458
  8. package/dist/bundled-asset-url-E2nXURF9.js +15 -0
  9. package/dist/canvas-viewer-mechanics-BZ8QCrRi.js +675 -0
  10. package/dist/cfb-guard-dNeUiANF.js +528 -0
  11. package/dist/chart-ex.mjs +667 -663
  12. package/dist/comment-overlay-controller-CBvQx-En.js +994 -0
  13. package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
  14. package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-BKidRH36.js} +5 -5
  15. package/dist/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-C47QoDUy.js} +5 -5
  16. package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
  17. package/dist/document-model-source-MzFPrxt0.js +249 -0
  18. package/dist/document-pull-client-BoJeuURD.js +35941 -0
  19. package/dist/document-pull-worker-CaP8XESP.js +104 -0
  20. package/dist/docx-BN70UhvX.js +495 -0
  21. package/dist/docx-BRRtSvk3.js +3563 -0
  22. package/dist/docx-model-source-CTO9iw_W.js +98 -0
  23. package/dist/docx-source-worker.mjs +455 -0
  24. package/dist/docx.mjs +7 -7
  25. package/dist/docx_parser_bg.wasm +0 -0
  26. package/dist/drawingml-shape-CHmq8kpM.js +310 -0
  27. package/dist/duotone-DN8P4aXe.js +126 -0
  28. package/dist/emf-CGFQIz6c.js +1790 -0
  29. package/dist/font-preload-demand-Dmy31xt-.js +2058 -0
  30. package/dist/grid-geometry-C3IG20ut.js +384 -0
  31. package/dist/host-layout-DVMw8hDY.js +56 -0
  32. package/dist/host-layout-measure-DsuQ2UJs.js +7 -0
  33. package/dist/in-process-pull-transport-DuXcPZng.js +29 -0
  34. package/dist/index.mjs +4 -4
  35. package/dist/internal-companion.mjs +12 -0
  36. package/dist/line-distribute-Bu8psjGd.js +2799 -0
  37. package/dist/math.mjs +2 -2
  38. package/dist/mathjax-stix2.js +10 -10
  39. package/dist/model-source-kz_NkZqT.js +179 -0
  40. package/dist/model-source-s5hRpk4w.js +61 -0
  41. package/dist/model-source-session-6fuaqbGs.js +71 -0
  42. package/dist/model-source-session-DqrR4XHR.js +85 -0
  43. package/dist/model-source-session-cPJSF_Ak.js +58 -0
  44. package/dist/node.mjs +7 -1327
  45. package/dist/{pixel-budget-9P63Bsk5.js → pixel-budget-BpTYrepD.js} +13 -10
  46. package/dist/plot-area-frame-Bs_j4uu7.js +41811 -0
  47. package/dist/pptx-CaJ6ILnw.js +183 -0
  48. package/dist/pptx-_BOGcBym.js +2936 -0
  49. package/dist/pptx-model-source-B_9afw9R.js +37 -0
  50. package/dist/pptx-source-worker.mjs +446 -0
  51. package/dist/pptx.mjs +8 -7
  52. package/dist/pptx_parser_bg.wasm +0 -0
  53. package/dist/presentation-model-source-CGHLyX32.js +77 -0
  54. package/dist/raster-target-YQ4G6rxo.js +42 -0
  55. package/dist/region-map.mjs +117 -153
  56. package/dist/{render-D3iqVKCo.js → render-CzbDzRKa.js} +3 -3
  57. package/dist/{render-worker-host-B5wQfB7U.js → render-worker-host-B1u6BOUd.js} +1 -1
  58. package/dist/{render-worker-host-D4123J27.js → render-worker-host-C-EECo68.js} +1 -1
  59. package/dist/{render-worker-host-Di3LxLc0.js → render-worker-host-DDqZTCVf.js} +1 -1
  60. package/dist/renderer-CD2cvVAF.js +5823 -0
  61. package/dist/renderer-DRoeb14O.js +5170 -0
  62. package/dist/resource-measurement-Dhhm7P_l.js +772 -0
  63. package/dist/session-XPmC0CUd.js +656 -0
  64. package/dist/slide-pull-client-tq7U_fYg.js +6485 -0
  65. package/dist/three-d-BKwNPAP4.js +878 -0
  66. package/dist/three-d.mjs +925 -910
  67. package/dist/{raster-target-ojDdQizC.js → tiff-contract-C6M3QcPp.js} +1 -42
  68. package/dist/tiff.mjs +401 -248
  69. package/dist/types/chart-ex.d.ts +149 -2
  70. package/dist/types/docx.d.ts +333 -96
  71. package/dist/types/index.d.ts +566 -301
  72. package/dist/types/internal-companion.d.ts +11 -0
  73. package/dist/types/math.d.ts +1 -1
  74. package/dist/types/node.d.ts +422 -9
  75. package/dist/types/pptx.d.ts +302 -95
  76. package/dist/types/region-map.d.ts +149 -2
  77. package/dist/types/three-d.d.ts +149 -2
  78. package/dist/types/tiff.d.ts +1 -1
  79. package/dist/types/xlsx.d.ts +343 -132
  80. package/dist/wasm-loader-rlgHmcSv.js +35 -0
  81. package/dist/wasm-runtime-generation-D6TKZdNb.js +97 -0
  82. package/dist/workbook-model-source-BIGrfZy6.js +94 -0
  83. package/dist/worker-source-DrwhR9fw.js +22 -0
  84. package/dist/worker-source-SbudzjYL.js +22 -0
  85. package/dist/worker-source-UAi3GNcM.js +22 -0
  86. package/dist/worksheet-pull-client-ClvPO_Jf.js +579 -0
  87. package/dist/xlsx-CsmREBaZ.js +5819 -0
  88. package/dist/xlsx-DmHfeNNp.js +534 -0
  89. package/dist/xlsx-model-source-D1flORqy.js +309 -0
  90. package/dist/xlsx-source-worker.mjs +525 -0
  91. package/dist/xlsx.mjs +8 -7
  92. package/dist/xlsx_parser_bg.wasm +0 -0
  93. package/package.json +42 -16
  94. package/dist/assets/render-worker-1uPAxMZr.js +0 -31
  95. package/dist/assets/render-worker-BlvJybji.js +0 -10
  96. package/dist/assets/render-worker-CzmiJfFL.js +0 -11
  97. package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  98. package/dist/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
  99. package/dist/cjk-fallback-bLI3z70h.js +0 -46
  100. package/dist/comment-occurrence-C8Y2uoVr.js +0 -6
  101. package/dist/comment-ui-runtime-BsK8pmUT.js +0 -2
  102. package/dist/comments-Diid5ujN.js +0 -246
  103. package/dist/delimited-text-worker-host-BVY-Ecni.js +0 -27
  104. package/dist/document-pull-client-B9PTM-pL.js +0 -27280
  105. package/dist/docx-BF9WXrYH.js +0 -3103
  106. package/dist/dom-interaction-boundary-Cnm8DSBN.js +0 -223
  107. package/dist/highlight-rect-C5hkRqUr.js +0 -13
  108. package/dist/line-distribute-D1WNHKz_.js +0 -1023
  109. package/dist/line-metrics-B60C86uh.js +0 -60
  110. package/dist/plot-area-frame-DLTYKHNP.js +0 -4354
  111. package/dist/pptx-DkyYBYoL.js +0 -3065
  112. package/dist/renderer-B4GZb5We.js +0 -6492
  113. package/dist/resource-measurement-SHQCbkh2.js +0 -150
  114. package/dist/session-BGq81gRQ.js +0 -743
  115. package/dist/slide-pull-client-DiPnm240.js +0 -6253
  116. package/dist/source-key-DIJG8BA0.js +0 -42
  117. package/dist/three-d-DJBl8g8M.js +0 -1162
  118. package/dist/transfer-p6iCC2R7.js +0 -6
  119. package/dist/units-BzZ0gAxs.js +0 -4
  120. package/dist/worksheet-pull-client-BM8ywvbu.js +0 -458
  121. package/dist/xlsx-C9NVjgaV.js +0 -8484
  122. /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
  123. /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
  124. /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
  125. /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
  126. /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
  127. /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
@@ -1,150 +0,0 @@
1
- import { at as e, dt as t, mt as n, pt as r, vt as i } from "./hyperlink-Cxzhet30.js";
2
- import { wt as a } from "./plot-area-frame-DLTYKHNP.js";
3
- import { i as o } from "./pixel-budget-9P63Bsk5.js";
4
- import { r as s } from "./raster-target-ojDdQizC.js";
5
- //#region packages/core/src/image/duotone-bitmap-by-path.ts
6
- function c(e, t) {
7
- return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
8
- }
9
- var l = "duotone";
10
- async function u(u, d, f, p, m = {}) {
11
- let { offscreenFactory: h, failClosedOnDuotoneFailure: g = !1, ..._ } = m, v = f ? {
12
- ..._,
13
- maxRetainedPixels: Math.min(_.maxRetainedPixels ?? 33554432, Math.floor(o / 4))
14
- } : _, y = f ? {
15
- ...v,
16
- targetWidthPx: void 0,
17
- targetHeightPx: void 0
18
- } : v, b = f ? t(p, l) : void 0, x = await r(u, d, p, y);
19
- if (!f || !x) return x;
20
- let S = await i(u, d, p, y, b, x), C = s(Number(x.width), Number(x.height), _.targetWidthPx, _.targetHeightPx), w = C ? `|resize:${C.resizeWidth}x${C.resizeHeight}` : "";
21
- return n(l, `${c(S, f)}${w}${g ? "|strict" : ""}`, p, async () => {
22
- let { w: t, h: n } = a(x);
23
- if (t <= 0 || n <= 0) return {
24
- bitmap: g ? null : x,
25
- owned: !1
26
- };
27
- let r = await e(x, f, {
28
- width: t,
29
- height: n,
30
- offscreenFactory: h,
31
- targetWidthPx: _.targetWidthPx,
32
- targetHeightPx: _.targetHeightPx
33
- });
34
- if (r === x) {
35
- if (g) return {
36
- bitmap: null,
37
- owned: !1
38
- };
39
- if (!C) return {
40
- bitmap: x,
41
- owned: !1
42
- };
43
- if (typeof createImageBitmap > "u") throw Error("createImageBitmap is unavailable for duotone fallback resampling");
44
- let e = await createImageBitmap(x, C);
45
- return {
46
- bitmap: e,
47
- owned: e !== x
48
- };
49
- }
50
- let i = r;
51
- return {
52
- bitmap: i,
53
- owned: i !== x
54
- };
55
- }, b);
56
- }
57
- //#endregion
58
- //#region packages/core/src/internal/resource-measurement.ts
59
- function d(e, t) {
60
- if (!Number.isSafeInteger(e) || e < 0) throw Error(`${t} must be a non-negative safe integer`);
61
- }
62
- function f(e, t, n) {
63
- return d(e, "resource measurement"), d(t, "resource measurement"), d(n, "resource measurement limit"), e > n || t > n || t > n - e ? n === 2 ** 53 - 1 ? n : n + 1 : e + t;
64
- }
65
- function p(e, t = 2 ** 53 - 1) {
66
- d(t, "resource measurement limit");
67
- let n = 0;
68
- for (let r = 0; r < e.length; r += 1) {
69
- let i = e.charCodeAt(r), a;
70
- if (i <= 127) a = 1;
71
- else if (i <= 2047) a = 2;
72
- else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
73
- let t = e.charCodeAt(r + 1);
74
- t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 3;
75
- } else a = 3;
76
- if (n = f(n, a, t), n > t) return n;
77
- }
78
- return n;
79
- }
80
- function m(e, t = 2 ** 53 - 1) {
81
- d(t, "resource measurement limit");
82
- let n = f(0, 2, t);
83
- if (n > t) return n;
84
- for (let r = 0; r < e.length; r += 1) {
85
- let i = e.charCodeAt(r), a;
86
- if (i === 34 || i === 92 || i === 8 || i === 9 || i === 10 || i === 12 || i === 13) a = 2;
87
- else if (i <= 31) a = 6;
88
- else if (i <= 127) a = 1;
89
- else if (i <= 2047) a = 2;
90
- else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
91
- let t = e.charCodeAt(r + 1);
92
- t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 6;
93
- } else a = i >= 55296 && i <= 57343 ? 6 : 3;
94
- if (n = f(n, a, t), n > t) return n;
95
- }
96
- return n;
97
- }
98
- function h(e, t) {
99
- return f(0, e, t);
100
- }
101
- function g(e, t = 2 ** 53 - 1, n = !1) {
102
- if (d(t, "resource measurement limit"), e === null) return {
103
- jsonBytes: h(4, t),
104
- stringValueUtf8Bytes: 0
105
- };
106
- if (typeof e == "string") return {
107
- jsonBytes: m(e, t),
108
- stringValueUtf8Bytes: p(e, t)
109
- };
110
- if (typeof e == "boolean") return {
111
- jsonBytes: h(e ? 4 : 5, t),
112
- stringValueUtf8Bytes: 0
113
- };
114
- if (typeof e == "number") return {
115
- jsonBytes: h((Number.isFinite(e) ? String(Object.is(e, -0) ? 0 : e) : "null").length, t),
116
- stringValueUtf8Bytes: 0
117
- };
118
- if (typeof e == "bigint") throw TypeError("BigInt values cannot be serialized to JSON");
119
- if (Array.isArray(e)) {
120
- let n = h(2, t), r = 0;
121
- for (let i = 0; i < e.length; i += 1) {
122
- i !== 0 && (n = f(n, 1, t));
123
- let a = g(e[i], t, !0);
124
- n = f(n, a.jsonBytes, t), r = f(r, a.stringValueUtf8Bytes, t);
125
- }
126
- return {
127
- jsonBytes: n,
128
- stringValueUtf8Bytes: r
129
- };
130
- }
131
- if (typeof e == "object") {
132
- let n = h(2, t), r = 0, i = 0;
133
- for (let [a, o] of Object.entries(e)) {
134
- if (o === void 0 || typeof o == "function" || typeof o == "symbol") continue;
135
- i++ !== 0 && (n = f(n, 1, t)), n = f(n, m(a, t), t), n = f(n, 1, t);
136
- let e = g(o, t);
137
- n = f(n, e.jsonBytes, t), r = f(r, e.stringValueUtf8Bytes, t);
138
- }
139
- return {
140
- jsonBytes: n,
141
- stringValueUtf8Bytes: r
142
- };
143
- }
144
- return {
145
- jsonBytes: n ? h(4, t) : 0,
146
- stringValueUtf8Bytes: 0
147
- };
148
- }
149
- //#endregion
150
- export { u as a, c as i, g as n, p as r, f as t };