@silurus/ooxml 0.75.3 → 0.75.5

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/dist/node.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
2
  import { D as t, N as n, O as r, T as i, a, c as o, f as s, i as c, k as l, m as u, o as d, p as f, r as p, u as m } from "./bounded-raw-part-cache-BTfZD_Sz.js";
3
- import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-C3s6Y0eT.js";
3
+ import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-BcNYhoAG.js";
4
4
  import { f as re, i as _, p as ie, t as ae } from "./svg-image-by-path-C1M3N2pT.js";
5
5
  import { t as oe } from "./transfer-3QEJrsJa.js";
6
6
  import { d as se, n as ce, t as le, u as ue } from "./worksheet-pull-worker-DCei8u-4.js";
7
- import { c as de, i as fe, n as pe, o as me, r as he, s as ge, t as _e } from "./pptx-Bjf_CgIh.js";
8
- import { i as ve, n as ye, o as be, r as xe, t as Se } from "./render-BcebVCOq.js";
7
+ import { c as de, i as fe, n as pe, o as me, r as he, s as ge, t as _e } from "./pptx-Dl8tOSmP.js";
8
+ import { i as ve, n as ye, o as be, r as xe, t as Se } from "./render-CalC7GX4.js";
9
9
  //#region packages/docx/src/document-pull-worker.ts
10
10
  var Ce = Math.max(f, u), we = class {
11
11
  coordinator = new d();
@@ -3,8 +3,8 @@ import { D as t, E as n, M as r, N as i, _ as a, c as o, h as s, l as c, n as l,
3
3
  import { a as f, c as p, d as m, f as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as ee, u as te } from "./find-cursor-Dc5iM6s7.js";
4
4
  import { n as ne, r as re } from "./preload-BEouWnlI.js";
5
5
  import { f as ie, i as ae, p as oe, t as se } from "./svg-image-by-path-C1M3N2pT.js";
6
- import { M as T, N as ce, st as E } from "./line-metrics-EFT-W2Au.js";
7
- import { r as D, t as O } from "./renderer-C3LQln2P.js";
6
+ import { M as T, N as ce, ct as E } from "./line-metrics-D9gqQWHl.js";
7
+ import { r as D, t as O } from "./renderer-B9R6F_QY.js";
8
8
  import { n as le, r as k, t as ue } from "./visible-index-CKvgpUrf.js";
9
9
  import { n as de, r as A, t as j } from "./highlight-rect-cCvVU-MW.js";
10
10
  import { r as M } from "./hyperlink-D85FexTa.js";
@@ -604,7 +604,7 @@ var Re = new URL("pptx_parser_bg.wasm", import.meta.url).href, $ = class e {
604
604
  o = await e.arrayBuffer();
605
605
  } else o = t;
606
606
  o = g(await y(o, n.password)), a.setSourceBytes(o.byteLength), a.checkpoint("container ready");
607
- let s = i === "worker" ? (await import("./render-worker-host-vEEGCzB3.js")).createRenderWorker() : new Le(), c;
607
+ let s = i === "worker" ? (await import("./render-worker-host-BG3a7brz.js")).createRenderWorker() : new Le(), c;
608
608
  try {
609
609
  return c = new e(s, i, n.wasmUrl), c._metrics = a, n.math && i === "worker" && console.warn("[ooxml] the math engine is unavailable in mode: 'worker'; equations will be skipped. Use mode: 'main' for documents with equations."), c._math = i === "worker" ? void 0 : n.math, await c._parse(o, r.policy, i === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => a.observeUsage(e)), a.checkpoint("presentation preflight ready"), i === "main" && n.useGoogleFonts && c._preflight && (c._googleFontFaces = await ne(c._preflight.fontPreloadNames, me)), a.succeed({ slides: c.slideCount }), c;
610
610
  } catch (e) {
@@ -716,7 +716,7 @@ var Ce = class {
716
716
  async renderSlide(e, t, n) {
717
717
  return this.assertOpen(), this.enqueueRender(async () => {
718
718
  $(this.signal);
719
- let { renderSlideNode: r } = await import("./render-BcebVCOq.js").then((e) => e.a);
719
+ let { renderSlideNode: r } = await import("./render-CalC7GX4.js").then((e) => e.a);
720
720
  await r(e, {
721
721
  slideWidth: this.slideWidth,
722
722
  slideHeight: this.slideHeight,
package/dist/pptx.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as e, N as t } from "./bounded-raw-part-cache-BTfZD_Sz.js";
2
2
  import { p as n } from "./find-cursor-Dc5iM6s7.js";
3
3
  import { f as r, p as i } from "./svg-image-by-path-C1M3N2pT.js";
4
- import { t as a } from "./renderer-C3LQln2P.js";
5
- import { a as o, i as s, n as c, o as l, r as u } from "./pptx-DQqAbp3d.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
6
  import { r as d } from "./hyperlink-D85FexTa.js";
7
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 };
Binary file
@@ -45,12 +45,12 @@ function a(e, t) {
45
45
  }
46
46
  function o(e, t) {
47
47
  return async (n, r) => {
48
- let { extractImage: i } = await import("./pptx-Bjf_CgIh.js").then((e) => e.a), a = i(e, n, t);
48
+ let { extractImage: i } = await import("./pptx-Dl8tOSmP.js").then((e) => e.a), a = i(e, n, t);
49
49
  return new Blob([new Uint8Array(a).slice()], { type: r });
50
50
  };
51
51
  }
52
52
  async function s(e, t, n, r = {}) {
53
- let { renderSlide: i } = await import("./renderer-C3LQln2P.js").then((e) => e.n), s = t.slides[n];
53
+ let { renderSlide: i } = await import("./renderer-B9R6F_QY.js").then((e) => e.n), s = t.slides[n];
54
54
  if (!s) throw Error(`Slide index ${n} out of range`);
55
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
56
  await i(e, s, t.slideWidth, t.slideHeight, {