@silurus/ooxml 0.82.1 → 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.
- package/README.md +72 -3
- package/dist/assets/{render-worker-Cy-QsDge.js → render-worker-Bu31cf1J.js} +4 -4
- package/dist/assets/render-worker-DuztdEcX.js +11 -0
- package/dist/{canvas-viewer-mechanics-CS_qbr6T.js → canvas-viewer-mechanics-h07vpVOQ.js} +42 -2
- package/dist/{comment-ui-runtime-C1RV_3iu.js → comment-ui-runtime-BelHJt73.js} +2 -2
- package/dist/{comment-ui-runtime-DgCZpPR0.js → comment-ui-runtime-DD5a3x3k.js} +2 -2
- package/dist/{comments-Cf9W7r3M.js → comments-AAaNnQTi.js} +7 -2
- package/dist/{document-pull-client-B1WOjA0z.js → document-pull-client-BAhqoTmm.js} +4508 -3952
- package/dist/docx-Dg73PGgC.js +2707 -0
- package/dist/docx.mjs +6 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-CepOlXt6.js +217 -0
- package/dist/index.mjs +4 -4
- package/dist/line-distribute-D7A_wnJg.js +1003 -0
- package/dist/{line-metrics-B3syvDn2.js → line-metrics-Bpn7OeZD.js} +616 -616
- package/dist/node.mjs +308 -308
- package/dist/pptx-BcUCETmQ.js +2990 -0
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-BC8p7vZQ.js → render-CL-7V3E8.js} +1 -1
- package/dist/{render-worker-host-DhnkTyjj.js → render-worker-host-DDZo0feh.js} +1 -1
- package/dist/{render-worker-host-BNnXCtAu.js → render-worker-host-FJ19-fUI.js} +1 -1
- package/dist/{resource-measurement-CsW4_eYt.js → resource-measurement-DuiFWzam.js} +3 -3
- package/dist/{session-Da7LEQUB.js → session-BjydZEDF.js} +107 -94
- package/dist/{slide-pull-client-Bg9DusLX.js → slide-pull-client-CwvvncPA.js} +1158 -935
- package/dist/types/docx.d.ts +98 -8
- package/dist/types/index.d.ts +184 -13
- package/dist/types/node.d.ts +2 -2
- package/dist/types/pptx.d.ts +94 -5
- package/dist/types/xlsx.d.ts +2 -2
- package/dist/{worksheet-pull-client-CYtwXP5D.js → worksheet-pull-client-DyFsDF4A.js} +32 -32
- package/dist/{xlsx-DMWeXT-c.js → xlsx-BibrHQ52.js} +476 -476
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +3 -1
- package/dist/assets/render-worker-aHayzR7v.js +0 -11
- package/dist/docx-HoZXZUPA.js +0 -2162
- package/dist/dom-interaction-boundary-C8F6HO5x.js +0 -119
- package/dist/line-distribute-iXsUCIH-.js +0 -1003
- package/dist/pptx-DEUP4Yq5.js +0 -2432
- /package/dist/{comment-occurrence-C34fWs_F.js → comment-occurrence-X54si2ob.js} +0 -0
- /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 };
|