@silurus/ooxml 0.82.0 → 0.83.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 (45) hide show
  1. package/README.md +72 -3
  2. package/dist/assets/{render-worker-7-Zr7fSw.js → render-worker-Bu31cf1J.js} +4 -4
  3. package/dist/assets/render-worker-DuztdEcX.js +11 -0
  4. package/dist/{canvas-viewer-mechanics-CS_qbr6T.js → canvas-viewer-mechanics-h07vpVOQ.js} +42 -2
  5. package/dist/{comment-ui-runtime-BAe30Ct9.js → comment-ui-runtime-BelHJt73.js} +3 -3
  6. package/dist/{comment-ui-runtime-BUCj4hWn.js → comment-ui-runtime-DD5a3x3k.js} +3 -3
  7. package/dist/comment-ui-runtime-DTGN3Vyy.js +2 -0
  8. package/dist/{comments-Cf9W7r3M.js → comments-AAaNnQTi.js} +7 -2
  9. package/dist/{document-pull-client-BCgmytqI.js → document-pull-client-BAhqoTmm.js} +4509 -3953
  10. package/dist/docx-Dg73PGgC.js +2707 -0
  11. package/dist/docx.mjs +6 -6
  12. package/dist/docx_parser_bg.wasm +0 -0
  13. package/dist/dom-interaction-boundary-CepOlXt6.js +217 -0
  14. package/dist/index.mjs +4 -4
  15. package/dist/line-distribute-D7A_wnJg.js +1003 -0
  16. package/dist/{line-metrics-B3syvDn2.js → line-metrics-Bpn7OeZD.js} +616 -616
  17. package/dist/node.mjs +308 -308
  18. package/dist/pptx-BcUCETmQ.js +2990 -0
  19. package/dist/pptx.mjs +5 -5
  20. package/dist/pptx_parser_bg.wasm +0 -0
  21. package/dist/{read-only-comment-margin-Dn2y55W6.js → read-only-comment-margin-DrUX-YrP.js} +1 -1
  22. package/dist/{render-CenWM4g1.js → render-CL-7V3E8.js} +1 -1
  23. package/dist/{render-worker-host-BNENN3qP.js → render-worker-host-DDZo0feh.js} +1 -1
  24. package/dist/{render-worker-host-BmH3kGSj.js → render-worker-host-FJ19-fUI.js} +1 -1
  25. package/dist/{resource-measurement-CsW4_eYt.js → resource-measurement-DuiFWzam.js} +3 -3
  26. package/dist/{session-Cky_swUj.js → session-BjydZEDF.js} +107 -94
  27. package/dist/{slide-pull-client-CqTVFb3W.js → slide-pull-client-CwvvncPA.js} +1199 -970
  28. package/dist/types/docx.d.ts +99 -7
  29. package/dist/types/index.d.ts +189 -12
  30. package/dist/types/node.d.ts +385 -379
  31. package/dist/types/pptx.d.ts +96 -5
  32. package/dist/types/xlsx.d.ts +4 -2
  33. package/dist/{worksheet-pull-client-CYtwXP5D.js → worksheet-pull-client-DyFsDF4A.js} +32 -32
  34. package/dist/{xlsx-DlV37-0j.js → xlsx-BibrHQ52.js} +477 -477
  35. package/dist/xlsx.mjs +5 -5
  36. package/dist/xlsx_parser_bg.wasm +0 -0
  37. package/package.json +4 -1
  38. package/dist/assets/render-worker-B5gsW6b5.js +0 -11
  39. package/dist/comment-ui-runtime-F4a3te6p.js +0 -2
  40. package/dist/docx-wokGKYfi.js +0 -2162
  41. package/dist/dom-interaction-boundary-C8F6HO5x.js +0 -119
  42. package/dist/line-distribute-iXsUCIH-.js +0 -1003
  43. package/dist/pptx-DU8L8I2T.js +0 -2432
  44. /package/dist/{comment-occurrence-C34fWs_F.js → comment-occurrence-X54si2ob.js} +0 -0
  45. /package/dist/{highlight-rect-MaCt0om0.js → highlight-rect-Hes0z_Mj.js} +0 -0
@@ -1,119 +0,0 @@
1
- //#region packages/core/src/layout/virtual-scroll.ts
2
- function e(e, t, n) {
3
- return e < t ? t : e > n ? n : e;
4
- }
5
- function t(e, t, n) {
6
- let r = e.length;
7
- if (r === 0) return {
8
- offsets: [],
9
- totalHeight: 0
10
- };
11
- let i = n?.leading ?? 0, a = n?.trailing ?? 0, o = Array(r), s = 0;
12
- for (let n = 0; n < r; n++) o[n] = i + s + n * t, s += e[n];
13
- return {
14
- offsets: o,
15
- totalHeight: i + s + (r - 1) * t + a
16
- };
17
- }
18
- function n(t, n, r, i) {
19
- let a = t.offsets, o = a.length;
20
- if (o === 0) return {
21
- start: 0,
22
- end: -1,
23
- topIndex: 0,
24
- offsets: a,
25
- totalHeight: 0
26
- };
27
- let s = 0, c = o;
28
- for (; s < c;) {
29
- let e = s + c >>> 1;
30
- a[e] <= n ? s = e + 1 : c = e;
31
- }
32
- let l = e(s - 1, 0, o - 1), u = n + r;
33
- for (s = 0, c = o; s < c;) {
34
- let e = s + c >>> 1;
35
- a[e] < u ? s = e + 1 : c = e;
36
- }
37
- let d = e(s - 1, 0, o - 1);
38
- return {
39
- start: e(l - i, 0, o - 1),
40
- end: e(d + i, 0, o - 1),
41
- topIndex: l,
42
- offsets: a,
43
- totalHeight: t.totalHeight
44
- };
45
- }
46
- function r(t, n, r, i, a, o, s) {
47
- if (t === 0) return {
48
- start: 0,
49
- end: -1,
50
- topIndex: 0,
51
- totalHeight: 0
52
- };
53
- let c = s?.leading ?? 0, l = s?.trailing ?? 0, u = n + r, d = e(i < c ? 0 : u > 0 ? Math.floor((i - c) / u) : t - 1, 0, t - 1), f = i + a, p = e(f <= c ? 0 : u > 0 ? Math.ceil((f - c) / u) - 1 : t - 1, 0, t - 1);
54
- return {
55
- start: e(d - o, 0, t - 1),
56
- end: e(p + o, 0, t - 1),
57
- topIndex: d,
58
- totalHeight: c + t * n + (t - 1) * r + l
59
- };
60
- }
61
- //#endregion
62
- //#region packages/core/src/internal/comment-context.ts
63
- var i = 65536;
64
- function a(e, t) {
65
- let n = Math.min(e.length, t);
66
- if (n > 0 && n < e.length) {
67
- let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
68
- t >= 55296 && t <= 56319 && r >= 56320 && r <= 57343 && n--;
69
- }
70
- return e.slice(0, n);
71
- }
72
- function o(e) {
73
- if (e !== void 0 && (!Number.isFinite(e) || e < 0)) throw RangeError("maxTextCharacters must be a finite non-negative number.");
74
- return Math.min(i, Math.floor(e ?? 65536));
75
- }
76
- function s(e, t, n) {
77
- let r = o(n), i = 0, s = !1, c = (e) => {
78
- let t = a(e.text, Math.max(0, r - i));
79
- return i += t.length, t.length < e.text.length && (s = !0), {
80
- ...e,
81
- text: t
82
- };
83
- }, l = Object.freeze({
84
- root: Object.freeze(c(e)),
85
- replies: Object.freeze(t.map((e) => Object.freeze(c(e))))
86
- });
87
- return Object.freeze({
88
- thread: l,
89
- truncated: s,
90
- textCharacters: i,
91
- maxTextCharacters: r
92
- });
93
- }
94
- //#endregion
95
- //#region packages/core/src/internal/dom-interaction-boundary.ts
96
- function c(e, t) {
97
- return e.dataset?.[t] !== void 0;
98
- }
99
- function l(e, t, n) {
100
- let r = typeof e.composedPath == "function" ? e.composedPath() : [];
101
- if (r.length > 0) {
102
- let e = !1;
103
- for (let i of r) {
104
- if (i === t) return e;
105
- c(i, n) && (e = !0);
106
- }
107
- }
108
- let i = e.target;
109
- if (!i || !t.contains(i)) return !1;
110
- let a = i;
111
- for (; a;) {
112
- if (c(a, n)) return !0;
113
- if (a === t) break;
114
- a = a.parentElement;
115
- }
116
- return !1;
117
- }
118
- //#endregion
119
- export { t as a, n as i, s as n, r, l as t };