@silurus/ooxml 0.75.1 → 0.75.3

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.
@@ -2,9 +2,9 @@ import { t as e } from "./chunk-DmhlhrBa.js";
2
2
  import { E as t, M as n, N as r, _ as i, c as a, l as o, t as s, u as c } from "./bounded-raw-part-cache-BTfZD_Sz.js";
3
3
  import { a as l, c as u, d, f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as ee, u as te } from "./find-cursor-Dc5iM6s7.js";
4
4
  import { a as S, i as C, n as w, o as T, r as E, t as D } from "./preload-BEouWnlI.js";
5
- import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-wKcG6wym.js";
5
+ import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-C3s6Y0eT.js";
6
6
  import { f as N, i as P, p as F, t as I } from "./svg-image-by-path-C1M3N2pT.js";
7
- import { M as L, ct as R } from "./line-metrics-CeZifII_.js";
7
+ import { M as L, ct as R } from "./line-metrics-EFT-W2Au.js";
8
8
  import { n as z, r as B, t as V } from "./highlight-rect-cCvVU-MW.js";
9
9
  import { r as H } from "./hyperlink-D85FexTa.js";
10
10
  //#region packages/core/src/fonts/embedded.ts
@@ -166,7 +166,7 @@ var K = class e {
166
166
  a = await e.arrayBuffer();
167
167
  } else a = t;
168
168
  a = p(await g(a, n.password)), s.setSourceBytes(a.byteLength), s.checkpoint("container ready");
169
- let c = o === "worker" ? (await import("./render-worker-host-CiCutFYa.js")).createRenderWorker() : new _e(), l;
169
+ let c = o === "worker" ? (await import("./render-worker-host-8wfcbD3f.js")).createRenderWorker() : new _e(), l;
170
170
  try {
171
171
  if (l = new e(c, o, i, n.wasmUrl), l._metrics = s, await l._parse(a, r.policy, o === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => s.observeUsage(e)), o === "worker" && l._mode === "main" && (s.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), n.math && l._mode === "worker" && console.warn("[ooxml] the math engine is unavailable in mode: 'worker'; equations will be skipped. Use mode: 'main' for documents with equations."), l._mode === "main" && n.useGoogleFonts && l._document && (l._googleFontFaces = await w(re(l._document), M)), l._mode === "main" && l._document?.embeddedFonts?.length) {
172
172
  let e = l;
package/dist/docx.mjs CHANGED
@@ -1,6 +1,6 @@
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
- import { a as r, i, n as a, o, r as s, s as c } from "./docx-FjTWCu8A.js";
3
+ import { a as r, i, n as a, o, r as s, s as c } from "./docx-C4sCu6Z1.js";
4
4
  import { f as l, p as u } from "./svg-image-by-path-C1M3N2pT.js";
5
5
  import { r as d } from "./hyperlink-D85FexTa.js";
6
6
  export { c as DocxDocument, s as DocxScrollViewer, i as DocxViewer, l as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, n as autoResize, r as buildDocxHighlightLayer, o as buildDocxTextLayer, u as isOoxmlDecodedImageLimitError, a as noteText, d as openExternalHyperlink };
@@ -1,5 +1,5 @@
1
1
  import { a as e, s as t } from "./svg-image-by-path-C1M3N2pT.js";
2
- import { I as n, V as r } from "./line-metrics-CeZifII_.js";
2
+ import { I as n, V as r } from "./line-metrics-EFT-W2Au.js";
3
3
  //#region packages/core/src/image/duotone-bitmap-by-path.ts
4
4
  function i(e, t) {
5
5
  return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-FjTWCu8A.js";
2
- import { t } from "./xlsx-xK5hP7XO.js";
3
- import { t as n } from "./pptx-G6qPHXg7.js";
1
+ import { t as e } from "./docx-C4sCu6Z1.js";
2
+ import { t } from "./xlsx-Ca8qcow5.js";
3
+ import { t as n } from "./pptx-DQqAbp3d.js";
4
4
  export { e as docx, n as pptx, t as xlsx };
@@ -1,4 +1,4 @@
1
- import { Q as e, U as t, _ as n, v as r, x as i } from "./line-metrics-CeZifII_.js";
1
+ import { Q as e, U as t, _ as n, v as r, x as i } from "./line-metrics-EFT-W2Au.js";
2
2
  //#region packages/core/src/fonts/symbol-font.ts
3
3
  var a = {
4
4
  167: "♣",
@@ -35954,6 +35954,11 @@ function ji(e, t) {
35954
35954
  //#endregion
35955
35955
  //#region packages/core/src/text/line-metrics.ts
35956
35956
  var Mi = [
35957
+ [(e) => e.includes("meiryo ui") || e.includes("meiryoui") || e.includes("メイリオ") && e.includes("ui"), {
35958
+ asc: 2171 * 1.3 / 2048,
35959
+ desc: 430 * 1.3 / 2048,
35960
+ eaOnly: !0
35961
+ }],
35957
35962
  [(e) => e.includes("meiryo") || e.includes("メイリオ"), {
35958
35963
  asc: 2210 / 2048,
35959
35964
  desc: 1059 / 2048
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-wKcG6wym.js";
3
+ import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-C3s6Y0eT.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-Dgq7pjSp.js";
8
- import { i as ve, n as ye, o as be, r as xe, t as Se } from "./render-DGuTuWpY.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";
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();
@@ -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-DGuTuWpY.js").then((e) => e.a);
719
+ let { renderSlideNode: r } = await import("./render-BcebVCOq.js").then((e) => e.a);
720
720
  await r(e, {
721
721
  slideWidth: this.slideWidth,
722
722
  slideHeight: this.slideHeight,
@@ -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-CeZifII_.js";
7
- import { r as D, t as O } from "./renderer-BLjFCwvM.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";
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-CdAc6W03.js")).createRenderWorker() : new Le(), c;
607
+ let s = i === "worker" ? (await import("./render-worker-host-vEEGCzB3.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) {
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-BLjFCwvM.js";
5
- import { a as o, i as s, n as c, o as l, r as u } from "./pptx-G6qPHXg7.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";
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 };
@@ -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-Dgq7pjSp.js").then((e) => e.a), a = i(e, n, t);
48
+ let { extractImage: i } = await import("./pptx-Bjf_CgIh.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-BLjFCwvM.js").then((e) => e.n), s = t.slides[n];
53
+ let { renderSlide: i } = await import("./renderer-C3LQln2P.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, {