@silurus/ooxml 0.75.5 → 0.76.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 (52) hide show
  1. package/README.md +66 -28
  2. package/dist/bounded-raw-part-cache-C6ro6Ezf.js +254 -0
  3. package/dist/{find-cursor-Dc5iM6s7.js → canvas-viewer-mechanics-CwVSOYke.js} +192 -64
  4. package/dist/{document-pull-client-BcNYhoAG.js → document-pull-client-AAnwzlig.js} +3625 -3601
  5. package/dist/docx-CCksIXd5.js +1301 -0
  6. package/dist/docx.mjs +4 -6
  7. package/dist/docx_parser_bg.wasm +0 -0
  8. package/dist/index.mjs +3 -3
  9. package/dist/{line-distribute-B8sqT8kC.js → line-distribute-C1r2zvji.js} +141 -141
  10. package/dist/{line-metrics-D9gqQWHl.js → line-metrics-BdCACYlq.js} +4026 -1170
  11. package/dist/math.mjs +1 -1
  12. package/dist/node.mjs +779 -465
  13. package/dist/pptx-CKAk5e-J.js +1735 -0
  14. package/dist/pptx.mjs +5 -7
  15. package/dist/pptx_parser_bg.wasm +0 -0
  16. package/dist/{render-CalC7GX4.js → render-CLcpSi0m.js} +11 -18
  17. package/dist/render-worker-host-B8HAb_sK.js +27 -0
  18. package/dist/render-worker-host-Bkf1jUcW.js +27 -0
  19. package/dist/render-worker-host-CKOmXdyr.js +27 -0
  20. package/dist/resource-measurement-E_S_iau4.js +119 -0
  21. package/dist/session-B4Y54cbT.js +730 -0
  22. package/dist/{renderer-B9R6F_QY.js → slide-pull-client-WCuYCjio.js} +973 -820
  23. package/dist/types/docx.d.ts +1181 -3994
  24. package/dist/types/index.d.ts +2733 -8171
  25. package/dist/types/math.d.ts +8 -33
  26. package/dist/types/node.d.ts +1852 -4433
  27. package/dist/types/pptx.d.ts +1030 -3678
  28. package/dist/types/xlsx.d.ts +1291 -3262
  29. package/dist/worksheet-pull-client-YzjJMOns.js +455 -0
  30. package/dist/xlsx-BBmmZNQn.js +6362 -0
  31. package/dist/xlsx.mjs +5 -7
  32. package/dist/xlsx_parser_bg.wasm +0 -0
  33. package/package.json +14 -7
  34. package/dist/bounded-raw-part-cache-BTfZD_Sz.js +0 -1248
  35. package/dist/docx-DjF8FgoP.js +0 -1274
  36. package/dist/duotone-bitmap-by-path-CWsSJkJu.js +0 -28
  37. package/dist/hyperlink-D85FexTa.js +0 -27
  38. package/dist/pptx-C17xP8AV.js +0 -1705
  39. package/dist/pptx-Dl8tOSmP.js +0 -822
  40. package/dist/preload-BEouWnlI.js +0 -132
  41. package/dist/render-worker-host-BG3a7brz.js +0 -27
  42. package/dist/render-worker-host-CsB-dPJv.js +0 -27
  43. package/dist/render-worker-host-Cyv5Hkbh.js +0 -27
  44. package/dist/resource-measurement-6aReN3K0.js +0 -93
  45. package/dist/slide-pull-client-D_T0AIoX.js +0 -175
  46. package/dist/svg-image-by-path-C1M3N2pT.js +0 -1623
  47. package/dist/worksheet-pull-worker-DCei8u-4.js +0 -347
  48. package/dist/xlsx-BaH9irS0.js +0 -5515
  49. /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-CAkCWJ37.js} +0 -0
  50. /package/dist/{mathjax-Dqo857oC.js → mathjax-CMjda8Ip.js} +0 -0
  51. /package/dist/{transfer-3QEJrsJa.js → transfer-DCu4c2BL.js} +0 -0
  52. /package/dist/{visible-index-CKvgpUrf.js → visible-index-CgyJLAS_.js} +0 -0
package/dist/pptx.mjs CHANGED
@@ -1,7 +1,5 @@
1
- import { M as e, N as t } from "./bounded-raw-part-cache-BTfZD_Sz.js";
2
- import { p as n } from "./find-cursor-Dc5iM6s7.js";
3
- import { f as r, p as i } from "./svg-image-by-path-C1M3N2pT.js";
4
- import { t as a } from "./renderer-B9R6F_QY.js";
5
- import { a as o, i as s, n as c, o as l, r as u } from "./pptx-C17xP8AV.js";
6
- import { r as d } from "./hyperlink-D85FexTa.js";
7
- export { r as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, s as PptxPresentation, c as PptxScrollViewer, u as PptxViewer, n as autoResize, o as buildPptxHighlightLayer, l as buildPptxTextLayer, i as isOoxmlDecodedImageLimitError, d as openExternalHyperlink, a as renderSlide };
1
+ import { c as e } from "./slide-pull-client-WCuYCjio.js";
2
+ import { It as t, Lt as n, a as r, hn as i, mn as a } from "./line-metrics-BdCACYlq.js";
3
+ import { y as o } from "./canvas-viewer-mechanics-CwVSOYke.js";
4
+ import { a as s, i as c, n as l, o as u, r as d } from "./pptx-CKAk5e-J.js";
5
+ export { t as OoxmlDecodedImageLimitError, a as OoxmlError, i as OoxmlResourceLimitError, c as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, o as autoResize, s as buildPptxHighlightLayer, u as buildPptxTextLayer, n as isOoxmlDecodedImageLimitError, r as openExternalHyperlink, e as renderSlide };
Binary file
@@ -3,8 +3,7 @@ import { t as e } from "./chunk-DmhlhrBa.js";
3
3
  var t = /* @__PURE__ */ e({
4
4
  installImageBitmapShim: () => i,
5
5
  installOffscreenCanvasShim: () => r,
6
- makeSourceBufferFetchImage: () => o,
7
- renderSlideNode: () => s,
6
+ renderSlideNode: () => o,
8
7
  withNodeCanvasRuntime: () => a
9
8
  }), n = Promise.resolve();
10
9
  function r(e) {
@@ -43,29 +42,23 @@ function a(e, t) {
43
42
  }, o = n.then(a, a);
44
43
  return n = o.then(() => void 0, () => void 0), o;
45
44
  }
46
- function o(e, t) {
47
- return async (n, r) => {
48
- let { extractImage: i } = await import("./pptx-Dl8tOSmP.js").then((e) => e.a), a = i(e, n, t);
49
- return new Blob([new Uint8Array(a).slice()], { type: r });
50
- };
51
- }
52
- async function s(e, t, n, r = {}) {
53
- let { renderSlide: i } = await import("./renderer-B9R6F_QY.js").then((e) => e.n), s = t.slides[n];
54
- if (!s) throw Error(`Slide index ${n} out of range`);
55
- let c = r.width ?? 960, l = r.dpr ?? 2, u = r.fetchImage ?? (r.sourceBuffer ? o(r.sourceBuffer, r.maxZipEntryBytes) : async () => new Blob([])), d = async () => {
56
- await i(e, s, t.slideWidth, t.slideHeight, {
57
- width: c,
58
- dpr: l,
45
+ async function o(e, t, n, r = {}) {
46
+ let { renderSlide: i } = await import("./session-B4Y54cbT.js").then((e) => e.t), o = t.slides[n];
47
+ if (!o) throw Error(`Slide index ${n} out of range`);
48
+ let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
49
+ await i(e, o, t.slideWidth, t.slideHeight, {
50
+ width: s,
51
+ dpr: c,
59
52
  defaultTextColor: t.defaultTextColor,
60
53
  majorFont: t.majorFont,
61
54
  minorFont: t.minorFont,
62
55
  hlinkColor: t.hlinkColor ?? null,
63
56
  fetchMedia: r.fetchMedia ?? (async () => new Blob([])),
64
- fetchImage: u,
57
+ fetchImage: l,
65
58
  skipMediaControls: !0
66
59
  });
67
60
  };
68
- await (r.factory ? a(r.factory, d) : d());
61
+ await (r.factory ? a(r.factory, u) : u());
69
62
  }
70
63
  //#endregion
71
- export { t as a, s as i, r as n, a as o, o as r, i as t };
64
+ export { a, t as i, r as n, o as r, i as t };