@silurus/ooxml 0.74.5 → 0.75.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 +105 -6
- package/dist/bounded-raw-part-cache-BTfZD_Sz.js +1248 -0
- package/dist/{docx-DftZMp7R.js → document-pull-client-H80_E10V.js} +11165 -11517
- package/dist/docx-BX0mJqS1.js +1274 -0
- package/dist/docx.mjs +6 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/duotone-bitmap-by-path-Dv5Ikbzl.js +28 -0
- package/dist/find-cursor-Dc5iM6s7.js +815 -0
- package/dist/highlight-rect-cCvVU-MW.js +48 -0
- package/dist/hyperlink-D85FexTa.js +27 -0
- package/dist/index.mjs +4 -4
- package/dist/{highlight-rect-IjFkGg4X.js → line-distribute-DkLgIa7B.js} +37 -84
- package/dist/{find-cursor-DtgyGs5V.js → line-metrics-qwIyTk7Q.js} +1169 -3641
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +998 -0
- package/dist/pptx-BEYjiTnZ.js +822 -0
- package/dist/pptx-CXgyi7wu.js +1705 -0
- package/dist/pptx.mjs +7 -3
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/preload-BEouWnlI.js +132 -0
- package/dist/render-C0wMf5eT.js +71 -0
- package/dist/render-worker-host-CLdOlxFu.js +27 -0
- package/dist/render-worker-host-DZ4u0RFs.js +27 -0
- package/dist/render-worker-host-s3J-mWBP.js +27 -0
- package/dist/renderer-CwzTv9hH.js +5225 -0
- package/dist/resource-measurement-6aReN3K0.js +93 -0
- package/dist/slide-pull-client-D_T0AIoX.js +175 -0
- package/dist/svg-image-by-path-C1M3N2pT.js +1623 -0
- package/dist/transfer-3QEJrsJa.js +6 -0
- package/dist/types/docx.d.ts +290 -105
- package/dist/types/index.d.ts +399 -142
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +4855 -0
- package/dist/types/pptx.d.ts +431 -245
- package/dist/types/xlsx.d.ts +320 -120
- package/dist/visible-index-CKvgpUrf.js +17 -0
- package/dist/worksheet-pull-worker-DCei8u-4.js +347 -0
- package/dist/{xlsx-BqMHvfsE.js → xlsx-DJyPlzjB.js} +1499 -1284
- package/dist/xlsx.mjs +7 -3
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +12 -2
- package/dist/pptx-BxU0Lb3J.js +0 -6761
- package/dist/render-worker-host-Bcm9j4-H.js +0 -27
- package/dist/render-worker-host-BqSTDaYt.js +0 -27
- package/dist/render-worker-host-C523QxVw.js +0 -27
- package/dist/visible-index-C3_3gBg-.js +0 -50
- /package/dist/{mathjax-BPjQ2C_j.js → mathjax-Dqo857oC.js} +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { X as e, it as t, ot as n, tt as r } from "./find-cursor-DtgyGs5V.js";
|
|
2
|
-
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
3
|
-
function i(e, t) {
|
|
4
|
-
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|
|
5
|
-
}
|
|
6
|
-
var a = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
function o(e) {
|
|
8
|
-
let t = a.get(e);
|
|
9
|
-
return t || (t = /* @__PURE__ */ new Map(), a.set(e, t)), t;
|
|
10
|
-
}
|
|
11
|
-
async function s(t, a, s, c, l = {}) {
|
|
12
|
-
let { offscreenFactory: u, ...d } = l, f = await n(t, a, c, d);
|
|
13
|
-
if (!s || !f) return f;
|
|
14
|
-
let p = o(c), m = i(t, s), h = p.get(m);
|
|
15
|
-
return h || (h = (async () => {
|
|
16
|
-
let { w: t, h: n } = r(f);
|
|
17
|
-
return t <= 0 || n <= 0 ? f : await e(f, s, {
|
|
18
|
-
width: t,
|
|
19
|
-
height: n,
|
|
20
|
-
offscreenFactory: u
|
|
21
|
-
});
|
|
22
|
-
})(), h.catch(() => p.delete(m)), h.then((e) => {
|
|
23
|
-
e === f && p.delete(m);
|
|
24
|
-
}).catch(() => {}), p.set(m, h)), h;
|
|
25
|
-
}
|
|
26
|
-
function c(e) {
|
|
27
|
-
let n = a.get(e);
|
|
28
|
-
if (n) {
|
|
29
|
-
for (let r of n.values()) t(e, r);
|
|
30
|
-
n.clear(), a.delete(e);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region packages/core/src/nav/visible-index.ts
|
|
35
|
-
function l(e, t, n, r) {
|
|
36
|
-
for (let i = e + t; i >= 0 && i < r; i += t) if (!n(i)) return i;
|
|
37
|
-
return e;
|
|
38
|
-
}
|
|
39
|
-
function u(e, t, n) {
|
|
40
|
-
if (n === 0 || !t(e)) return e;
|
|
41
|
-
let r = l(e, 1, t, n);
|
|
42
|
-
return r === e ? l(e, -1, t, n) : r;
|
|
43
|
-
}
|
|
44
|
-
function d(e, t) {
|
|
45
|
-
let n = 0;
|
|
46
|
-
for (let r = 0; r < t; r++) e(r) || n++;
|
|
47
|
-
return n;
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { s as a, c as i, l as n, u as r, d as t };
|
|
File without changes
|