@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/README.md +12 -254
- package/dist/{document-pull-client-C3s6Y0eT.js → document-pull-client-BcNYhoAG.js} +3920 -3701
- package/dist/{docx-C4sCu6Z1.js → docx-DjF8FgoP.js} +3 -3
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{duotone-bitmap-by-path-D4mAC2FR.js → duotone-bitmap-by-path-CWsSJkJu.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-BHeDP03S.js → line-distribute-B8sqT8kC.js} +1 -1
- package/dist/{line-metrics-EFT-W2Au.js → line-metrics-D9gqQWHl.js} +286 -279
- package/dist/node.mjs +3 -3
- package/dist/{pptx-DQqAbp3d.js → pptx-C17xP8AV.js} +3 -3
- package/dist/{pptx-Bjf_CgIh.js → pptx-Dl8tOSmP.js} +1 -1
- package/dist/pptx.mjs +2 -2
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-BcebVCOq.js → render-CalC7GX4.js} +2 -2
- package/dist/{render-worker-host-vEEGCzB3.js → render-worker-host-BG3a7brz.js} +1 -1
- package/dist/render-worker-host-Cyv5Hkbh.js +27 -0
- package/dist/{renderer-C3LQln2P.js → renderer-B9R6F_QY.js} +39 -39
- package/dist/types/docx.d.ts +80 -14
- package/dist/types/index.d.ts +1100 -1069
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +744 -713
- package/dist/types/pptx.d.ts +800 -800
- package/dist/types/xlsx.d.ts +11 -13
- package/dist/{xlsx-Ca8qcow5.js → xlsx-BaH9irS0.js} +141 -141
- package/dist/xlsx.mjs +1 -1
- package/package.json +3 -1
- package/dist/render-worker-host-8wfcbD3f.js +0 -27
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-
|
|
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-
|
|
8
|
-
import { i as ve, n as ye, o as be, r as xe, t as Se } from "./render-
|
|
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,
|
|
7
|
-
import { r as D, t as O } from "./renderer-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
-
import { a as o, i as s, n as c, o as l, r as u } from "./pptx-
|
|
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 };
|
package/dist/pptx_parser_bg.wasm
CHANGED
|
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-
|
|
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-
|
|
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, {
|