@silurus/ooxml 0.86.1 → 0.88.0
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 +42 -2
- package/dist/assets/render-worker-1uPAxMZr.js +31 -0
- package/dist/assets/render-worker-BlvJybji.js +10 -0
- package/dist/assets/render-worker-CzmiJfFL.js +11 -0
- package/dist/{canvas-viewer-mechanics-DN5SqWGS.js → canvas-viewer-mechanics-DbLz0rYW.js} +75 -66
- package/dist/chart-ex.mjs +581 -616
- package/dist/cjk-fallback-bLI3z70h.js +46 -0
- package/dist/comment-ui-runtime-BsK8pmUT.js +2 -0
- package/dist/{comment-ui-runtime-lXwVOgjW.js → comment-ui-runtime-CWGqn5Vr.js} +5 -5
- package/dist/{comment-ui-runtime-DEtgcmj7.js → comment-ui-runtime-DcJOYlw-.js} +5 -5
- package/dist/{comments-CAn2A_Xh.js → comments-Diid5ujN.js} +1 -1
- package/dist/{document-pull-client-uopDjRde.js → document-pull-client-B9PTM-pL.js} +4693 -4621
- package/dist/{docx-wPzeF76A.js → docx-BF9WXrYH.js} +503 -388
- package/dist/docx.mjs +6 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{dom-interaction-boundary-CswB9Tzi.js → dom-interaction-boundary-Cnm8DSBN.js} +22 -19
- package/dist/{hyperlink-BR1NCO7S.js → hyperlink-Cxzhet30.js} +842 -829
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-IsUGfHXm.js → line-distribute-D1WNHKz_.js} +2 -2
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +356 -352
- package/dist/plot-area-frame-DLTYKHNP.js +4354 -0
- package/dist/{pptx-BxJ_RBSY.js → pptx-DkyYBYoL.js} +444 -435
- package/dist/pptx.mjs +7 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +5 -5
- package/dist/{render-DEiun_AH.js → render-D3iqVKCo.js} +31 -29
- package/dist/{render-worker-host-Ba6Fchqr.js → render-worker-host-B5wQfB7U.js} +1 -1
- package/dist/{render-worker-host-BEfLZvSL.js → render-worker-host-D4123J27.js} +1 -1
- package/dist/{render-worker-host-C3xwtHnv.js → render-worker-host-Di3LxLc0.js} +1 -1
- package/dist/renderer-B4GZb5We.js +6492 -0
- package/dist/{resource-measurement-CclArDRs.js → resource-measurement-SHQCbkh2.js} +3 -3
- package/dist/{session-BuJL_xcp.js → session-BGq81gRQ.js} +98 -98
- package/dist/{slide-pull-client-Ck8wfRT_.js → slide-pull-client-DiPnm240.js} +767 -738
- package/dist/{three-d-YYghQndN.js → three-d-DJBl8g8M.js} +251 -435
- package/dist/three-d.mjs +998 -906
- package/dist/tiff.mjs +2 -2
- package/dist/types/chart-ex.d.ts +142 -4
- package/dist/types/docx.d.ts +155 -13
- package/dist/types/index.d.ts +131 -19
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +120 -8
- package/dist/types/pptx.d.ts +123 -13
- package/dist/types/region-map.d.ts +142 -4
- package/dist/types/three-d.d.ts +142 -4
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +155 -13
- package/dist/{worksheet-pull-client-CAvuf22q.js → worksheet-pull-client-BM8ywvbu.js} +51 -51
- package/dist/{xlsx-Bblm5r1h.js → xlsx-C9NVjgaV.js} +1592 -1564
- package/dist/xlsx.mjs +6 -6
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-D21h5TGR.js +0 -10
- package/dist/assets/render-worker-Dsfekaht.js +0 -11
- package/dist/assets/render-worker-DxU7IrKo.js +0 -31
- package/dist/comment-ui-runtime-TLHustXJ.js +0 -2
- package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
- package/dist/renderer-XFSCOT6m.js +0 -5857
- /package/dist/{bounded-raw-part-cache-BfbSxRIL.js → bounded-raw-part-cache-Cg1BsSZQ.js} +0 -0
- /package/dist/{comment-occurrence-CqejEuts.js → comment-occurrence-C8Y2uoVr.js} +0 -0
- /package/dist/{delimited-text-worker-host-DcHj_JZt.js → delimited-text-worker-host-BVY-Ecni.js} +0 -0
- /package/dist/{highlight-rect-FuUSmL3a.js → highlight-rect-C5hkRqUr.js} +0 -0
- /package/dist/{line-metrics-CBbw80Ko.js → line-metrics-B60C86uh.js} +0 -0
- /package/dist/{mathjax-DS69BmJd.js → mathjax-DoyWZbSp.js} +0 -0
- /package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-9P63Bsk5.js} +0 -0
- /package/dist/{read-only-comment-decoration-BTnWEeo5.js → read-only-comment-decoration-Dz7eTQ4d.js} +0 -0
- /package/dist/{read-only-comment-margin-plStyGfE.js → read-only-comment-margin-DkgzASAl.js} +0 -0
- /package/dist/{renderer-module-contract-Cu-GKuPd.js → renderer-module-contract-D91rkYHH.js} +0 -0
- /package/dist/{source-key-Ktb1GRE5.js → source-key-DIJG8BA0.js} +0 -0
- /package/dist/{transfer-mIj7E7NB.js → transfer-p6iCC2R7.js} +0 -0
- /package/dist/{units-EJdC96r6.js → units-BzZ0gAxs.js} +0 -0
- /package/dist/{visible-index-DPoQYSDt.js → visible-index-BgiHEc1z.js} +0 -0
package/dist/pptx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-
|
|
7
|
-
export {
|
|
1
|
+
import { ln as e, r as t, un as n } from "./hyperlink-Cxzhet30.js";
|
|
2
|
+
import { T as r } from "./canvas-viewer-mechanics-DbLz0rYW.js";
|
|
3
|
+
import { l as i, s as a } from "./pixel-budget-9P63Bsk5.js";
|
|
4
|
+
import { i as o, s } from "./raster-target-ojDdQizC.js";
|
|
5
|
+
import { l as c } from "./slide-pull-client-DiPnm240.js";
|
|
6
|
+
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-DkyYBYoL.js";
|
|
7
|
+
export { a as OoxmlDecodedImageLimitError, e as OoxmlError, n as OoxmlResourceLimitError, l as PptxPresentation, d as PptxScrollViewer, p as PptxViewer, o as TiffDecodeError, r as autoResize, f as buildPptxHighlightLayer, m as buildPptxTextLayer, i as isOoxmlDecodedImageLimitError, s as isTiffDecodeError, t as openExternalHyperlink, u as readPptxTextSelectionContext, c as renderSlide };
|
package/dist/pptx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/region-map.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./renderer-module-contract-
|
|
1
|
+
import { Fn as e, Rn as t, W as n, m as r, t as i } from "./plot-area-frame-DLTYKHNP.js";
|
|
2
|
+
import { t as a } from "./renderer-module-contract-D91rkYHH.js";
|
|
3
3
|
//#region packages/core/src/chart/region-map-natural-earth.generated.ts
|
|
4
4
|
var o = [
|
|
5
5
|
{
|
|
@@ -12651,19 +12651,19 @@ function N(n, a, s, c, l = 0) {
|
|
|
12651
12651
|
if (f.geography?.cachePresent) return M(n, s, c, "(region map cache is unavailable offline)"), !0;
|
|
12652
12652
|
let p = f.geography?.viewedRegionType;
|
|
12653
12653
|
if (p != null && p !== "world") return M(n, s, c, "(region map detail is unavailable offline)"), !0;
|
|
12654
|
-
let m = k(f), h = O([...m.values()], f.colors, a.chartexAccents?.[0]), g =
|
|
12654
|
+
let m = k(f), h = O([...m.values()], f.colors, a.chartexAccents?.[0]), g = e(a, s.h, c, .02, .015);
|
|
12655
12655
|
A(n, a, s, g.fontPx, g.topPad);
|
|
12656
12656
|
let _ = a.showLegend ? Math.max(32, s.h * .16) : 0, y = a.showLegend ? {
|
|
12657
12657
|
x: s.x,
|
|
12658
12658
|
y: s.y + g.bandH,
|
|
12659
12659
|
w: s.w,
|
|
12660
12660
|
h: _
|
|
12661
|
-
} : null, b = y && a.legendManualLayout ?
|
|
12661
|
+
} : null, b = y && a.legendManualLayout ? t(a.legendManualLayout, s, y) ?? y : y, x = a.legendOverlay === !0 ? 0 : _, S = s.w * .03, C = s.h * .035, w = {
|
|
12662
12662
|
x: s.x + S,
|
|
12663
12663
|
y: s.y + g.bandH + x,
|
|
12664
12664
|
w: Math.max(1, s.w - S * 2),
|
|
12665
12665
|
h: Math.max(1, s.h - g.bandH - x - C)
|
|
12666
|
-
}, T = a.plotAreaManualLayout ?
|
|
12666
|
+
}, T = a.plotAreaManualLayout ? t(a.plotAreaManualLayout, s, w) ?? w : w;
|
|
12667
12667
|
i(n, a, T.x, T.y, T.w, T.h, c, l), b && (r(n, a, b, c, l), j(n, a, h, b.x, b.y, b.w, b.h, c));
|
|
12668
12668
|
let E = f.geography?.projectionType, D = Infinity, N = Infinity, P = -Infinity, F = -Infinity;
|
|
12669
12669
|
for (let e of o) for (let t of e.g) for (let e of t) for (let t of e) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
+
import { n as t } from "./cjk-fallback-bLI3z70h.js";
|
|
2
3
|
//#region packages/node/src/render.ts
|
|
3
|
-
var
|
|
4
|
-
installImageBitmapShim: () =>
|
|
5
|
-
installOffscreenCanvasShim: () =>
|
|
6
|
-
renderSlideNode: () =>
|
|
7
|
-
withNodeCanvasRuntime: () =>
|
|
8
|
-
}),
|
|
9
|
-
function
|
|
4
|
+
var n = /* @__PURE__ */ e({
|
|
5
|
+
installImageBitmapShim: () => a,
|
|
6
|
+
installOffscreenCanvasShim: () => i,
|
|
7
|
+
renderSlideNode: () => s,
|
|
8
|
+
withNodeCanvasRuntime: () => o
|
|
9
|
+
}), r = Promise.resolve();
|
|
10
|
+
function i(e) {
|
|
10
11
|
let t = globalThis, n = t.OffscreenCanvas, r = Object.prototype.hasOwnProperty.call(globalThis, "OffscreenCanvas");
|
|
11
12
|
if (n !== void 0) return () => {};
|
|
12
13
|
class i {
|
|
@@ -18,7 +19,7 @@ function r(e) {
|
|
|
18
19
|
r ? t.OffscreenCanvas = n : delete t.OffscreenCanvas;
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function a(e) {
|
|
22
23
|
let t = globalThis, n = t.createImageBitmap;
|
|
23
24
|
return t.createImageBitmap = async (t, n) => {
|
|
24
25
|
if (t && typeof t.getContext == "function") return t;
|
|
@@ -34,34 +35,35 @@ function i(e) {
|
|
|
34
35
|
t.createImageBitmap = n;
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
let
|
|
39
|
-
let n = typeof globalThis.createImageBitmap == "function" ? () => void 0 :
|
|
38
|
+
function o(e, t) {
|
|
39
|
+
let n = async () => {
|
|
40
|
+
let n = typeof globalThis.createImageBitmap == "function" ? () => void 0 : a(e), r = i(e);
|
|
40
41
|
try {
|
|
41
42
|
return await t();
|
|
42
43
|
} finally {
|
|
43
|
-
|
|
44
|
+
r(), n();
|
|
44
45
|
}
|
|
45
|
-
}, o =
|
|
46
|
-
return
|
|
46
|
+
}, o = r.then(n, n);
|
|
47
|
+
return r = o.then(() => void 0, () => void 0), o;
|
|
47
48
|
}
|
|
48
|
-
async function
|
|
49
|
-
let { renderSlide:
|
|
50
|
-
if (!
|
|
51
|
-
let
|
|
52
|
-
await
|
|
53
|
-
width:
|
|
54
|
-
dpr:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
async function s(e, n, r, i = {}) {
|
|
50
|
+
let a = t(i.cjkFallback), { renderSlide: s } = await import("./session-BGq81gRQ.js").then((e) => e.t), c = n.slides[r];
|
|
51
|
+
if (!c) throw Error(`Slide index ${r} out of range`);
|
|
52
|
+
let l = i.width ?? 960, u = i.dpr ?? 2, d = i.fetchImage ?? (async () => new Blob([])), f = async () => {
|
|
53
|
+
await s(e, c, n.slideWidth, n.slideHeight, {
|
|
54
|
+
width: l,
|
|
55
|
+
dpr: u,
|
|
56
|
+
cjkFallback: a,
|
|
57
|
+
defaultTextColor: n.defaultTextColor,
|
|
58
|
+
majorFont: n.majorFont,
|
|
59
|
+
minorFont: n.minorFont,
|
|
60
|
+
hlinkColor: n.hlinkColor ?? null,
|
|
61
|
+
fetchMedia: i.fetchMedia ?? (async () => new Blob([])),
|
|
62
|
+
fetchImage: d,
|
|
61
63
|
skipMediaControls: !0
|
|
62
64
|
});
|
|
63
65
|
};
|
|
64
|
-
await (
|
|
66
|
+
await (i.factory ? o(i.factory, f) : f());
|
|
65
67
|
}
|
|
66
68
|
//#endregion
|
|
67
|
-
export { a,
|
|
69
|
+
export { o as a, n as i, i as n, s as r, a as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/xlsx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-1uPAxMZr.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/xlsx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/pptx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-CzmiJfFL.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/pptx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/docx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-BlvJybji.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/docx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|