@silurus/ooxml 0.74.6 → 0.75.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 (47) hide show
  1. package/README.md +105 -6
  2. package/dist/bounded-raw-part-cache-BTfZD_Sz.js +1248 -0
  3. package/dist/{docx-DftZMp7R.js → document-pull-client-wKcG6wym.js} +11165 -11517
  4. package/dist/docx-FjTWCu8A.js +1274 -0
  5. package/dist/docx.mjs +6 -3
  6. package/dist/docx_parser_bg.wasm +0 -0
  7. package/dist/duotone-bitmap-by-path-yvUnNu8c.js +28 -0
  8. package/dist/find-cursor-Dc5iM6s7.js +815 -0
  9. package/dist/highlight-rect-cCvVU-MW.js +48 -0
  10. package/dist/hyperlink-D85FexTa.js +27 -0
  11. package/dist/index.mjs +4 -4
  12. package/dist/{highlight-rect-IjFkGg4X.js → line-distribute-DNrLg-YD.js} +37 -84
  13. package/dist/{find-cursor-DtgyGs5V.js → line-metrics-CeZifII_.js} +1165 -3641
  14. package/dist/math.mjs +1 -1
  15. package/dist/node.mjs +998 -0
  16. package/dist/pptx-Dgq7pjSp.js +822 -0
  17. package/dist/pptx-G6qPHXg7.js +1705 -0
  18. package/dist/pptx.mjs +7 -3
  19. package/dist/pptx_parser_bg.wasm +0 -0
  20. package/dist/preload-BEouWnlI.js +132 -0
  21. package/dist/render-DGuTuWpY.js +71 -0
  22. package/dist/render-worker-host-CdAc6W03.js +27 -0
  23. package/dist/render-worker-host-CiCutFYa.js +27 -0
  24. package/dist/render-worker-host-DQXzSGiU.js +27 -0
  25. package/dist/renderer-BLjFCwvM.js +5225 -0
  26. package/dist/resource-measurement-6aReN3K0.js +93 -0
  27. package/dist/slide-pull-client-D_T0AIoX.js +175 -0
  28. package/dist/svg-image-by-path-C1M3N2pT.js +1623 -0
  29. package/dist/transfer-3QEJrsJa.js +6 -0
  30. package/dist/types/docx.d.ts +290 -105
  31. package/dist/types/index.d.ts +400 -145
  32. package/dist/types/math.d.ts +1 -1
  33. package/dist/types/node.d.ts +4855 -0
  34. package/dist/types/pptx.d.ts +431 -245
  35. package/dist/types/xlsx.d.ts +321 -123
  36. package/dist/visible-index-CKvgpUrf.js +17 -0
  37. package/dist/worksheet-pull-worker-DCei8u-4.js +347 -0
  38. package/dist/{xlsx-BqMHvfsE.js → xlsx-xK5hP7XO.js} +1500 -1288
  39. package/dist/xlsx.mjs +7 -3
  40. package/dist/xlsx_parser_bg.wasm +0 -0
  41. package/package.json +12 -2
  42. package/dist/pptx-qbadwIv4.js +0 -6761
  43. package/dist/render-worker-host-Bcm9j4-H.js +0 -27
  44. package/dist/render-worker-host-BqSTDaYt.js +0 -27
  45. package/dist/render-worker-host-C523QxVw.js +0 -27
  46. package/dist/visible-index-C3_3gBg-.js +0 -50
  47. /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 };