@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.
- package/README.md +66 -28
- package/dist/bounded-raw-part-cache-C6ro6Ezf.js +254 -0
- package/dist/{find-cursor-Dc5iM6s7.js → canvas-viewer-mechanics-CwVSOYke.js} +192 -64
- package/dist/{document-pull-client-BcNYhoAG.js → document-pull-client-AAnwzlig.js} +3625 -3601
- package/dist/docx-CCksIXd5.js +1301 -0
- package/dist/docx.mjs +4 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-B8sqT8kC.js → line-distribute-C1r2zvji.js} +141 -141
- package/dist/{line-metrics-D9gqQWHl.js → line-metrics-BdCACYlq.js} +4026 -1170
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +779 -465
- package/dist/pptx-CKAk5e-J.js +1735 -0
- package/dist/pptx.mjs +5 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-CalC7GX4.js → render-CLcpSi0m.js} +11 -18
- package/dist/render-worker-host-B8HAb_sK.js +27 -0
- package/dist/render-worker-host-Bkf1jUcW.js +27 -0
- package/dist/render-worker-host-CKOmXdyr.js +27 -0
- package/dist/resource-measurement-E_S_iau4.js +119 -0
- package/dist/session-B4Y54cbT.js +730 -0
- package/dist/{renderer-B9R6F_QY.js → slide-pull-client-WCuYCjio.js} +973 -820
- package/dist/types/docx.d.ts +1181 -3994
- package/dist/types/index.d.ts +2733 -8171
- package/dist/types/math.d.ts +8 -33
- package/dist/types/node.d.ts +1852 -4433
- package/dist/types/pptx.d.ts +1030 -3678
- package/dist/types/xlsx.d.ts +1291 -3262
- package/dist/worksheet-pull-client-YzjJMOns.js +455 -0
- package/dist/xlsx-BBmmZNQn.js +6362 -0
- package/dist/xlsx.mjs +5 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +14 -7
- package/dist/bounded-raw-part-cache-BTfZD_Sz.js +0 -1248
- package/dist/docx-DjF8FgoP.js +0 -1274
- package/dist/duotone-bitmap-by-path-CWsSJkJu.js +0 -28
- package/dist/hyperlink-D85FexTa.js +0 -27
- package/dist/pptx-C17xP8AV.js +0 -1705
- package/dist/pptx-Dl8tOSmP.js +0 -822
- package/dist/preload-BEouWnlI.js +0 -132
- package/dist/render-worker-host-BG3a7brz.js +0 -27
- package/dist/render-worker-host-CsB-dPJv.js +0 -27
- package/dist/render-worker-host-Cyv5Hkbh.js +0 -27
- package/dist/resource-measurement-6aReN3K0.js +0 -93
- package/dist/slide-pull-client-D_T0AIoX.js +0 -175
- package/dist/svg-image-by-path-C1M3N2pT.js +0 -1623
- package/dist/worksheet-pull-worker-DCei8u-4.js +0 -347
- package/dist/xlsx-BaH9irS0.js +0 -5515
- /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-CAkCWJ37.js} +0 -0
- /package/dist/{mathjax-Dqo857oC.js → mathjax-CMjda8Ip.js} +0 -0
- /package/dist/{transfer-3QEJrsJa.js → transfer-DCu4c2BL.js} +0 -0
- /package/dist/{visible-index-CKvgpUrf.js → visible-index-CgyJLAS_.js} +0 -0
package/dist/pptx.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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 };
|
package/dist/pptx_parser_bg.wasm
CHANGED
|
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
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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:
|
|
57
|
+
fetchImage: l,
|
|
65
58
|
skipMediaControls: !0
|
|
66
59
|
});
|
|
67
60
|
};
|
|
68
|
-
await (r.factory ? a(r.factory,
|
|
61
|
+
await (r.factory ? a(r.factory, u) : u());
|
|
69
62
|
}
|
|
70
63
|
//#endregion
|
|
71
|
-
export {
|
|
64
|
+
export { a, t as i, r as n, o as r, i as t };
|