@silurus/ooxml 0.80.0 → 0.80.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/dist/assets/render-worker-BC6Wez97.js +7 -0
- package/dist/assets/render-worker-DidI5svV.js +21 -0
- package/dist/assets/render-worker-n3fNJ5XR.js +8 -0
- package/dist/{canvas-viewer-mechanics-D41tGY4d.js → canvas-viewer-mechanics-BdMdqj1R.js} +1 -1
- package/dist/{document-pull-client-D-fnlVGf.js → document-pull-client-Dk2EnTL7.js} +2 -2
- package/dist/{docx-CbIqgb1f.js → docx-Dw1kxR2M.js} +4 -4
- package/dist/docx.mjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-DFdgzaLK.js → line-distribute-vYf5DWek.js} +1 -1
- package/dist/{line-metrics-PpgpOvz4.js → line-metrics-BY-aNaLO.js} +1688 -1682
- package/dist/node.mjs +7 -7
- package/dist/{pptx-DwF8olh2.js → pptx-CE7xARJ_.js} +5 -5
- package/dist/pptx.mjs +4 -4
- package/dist/{render-BMC4d1CO.js → render-C4IiRZiF.js} +1 -1
- package/dist/{render-worker-host-CzsHtsN_.js → render-worker-host-1VHH_HQk.js} +1 -1
- package/dist/{render-worker-host-CcENRoDr.js → render-worker-host-BVOjz-oV.js} +1 -1
- package/dist/{render-worker-host-DFgTN7hy.js → render-worker-host-D9mO9qMj.js} +1 -1
- package/dist/{resource-measurement-DvIKHd-9.js → resource-measurement-DOQetcWm.js} +1 -1
- package/dist/{session-BzhcJOvj.js → session-BYh13Iu2.js} +2 -2
- package/dist/{slide-pull-client-DLC3nJUt.js → slide-pull-client-v6Feibq1.js} +3 -3
- package/dist/three-d.mjs +49 -36
- package/dist/{worksheet-pull-client-DlVk_4Bt.js → worksheet-pull-client-Nk7nbD3-.js} +2 -2
- package/dist/{xlsx-C1BUns1R.js → xlsx-zy51yoRg.js} +5 -5
- package/dist/xlsx.mjs +4 -4
- package/package.json +1 -1
- package/dist/assets/render-worker-BSx9_xRC.js +0 -8
- package/dist/assets/render-worker-BTp87EaD.js +0 -21
- package/dist/assets/render-worker-fdwAjSve.js +0 -7
package/dist/node.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { t } from "./slide-pull-client-
|
|
3
|
-
import { B as n, F as r, H as i, I as a, Ot as o, P as s, R as c, Rt as l, U as u, W as d, at as f, jt as p, ln as m, ot as h, q as g, rt as _, st as ee, zt as te } from "./line-metrics-
|
|
2
|
+
import { t } from "./slide-pull-client-v6Feibq1.js";
|
|
3
|
+
import { B as n, F as r, H as i, I as a, Ot as o, P as s, R as c, Rt as l, U as u, W as d, at as f, jt as p, ln as m, ot as h, q as g, rt as _, st as ee, zt as te } from "./line-metrics-BY-aNaLO.js";
|
|
4
4
|
import { t as ne } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
|
-
import { a as re, c as ie, i as ae, l as oe, r as se, u as ce } from "./document-pull-client-
|
|
5
|
+
import { a as re, c as ie, i as ae, l as oe, r as se, u as ce } from "./document-pull-client-Dk2EnTL7.js";
|
|
6
6
|
import { t as le } from "./transfer-CKZ79zFw.js";
|
|
7
|
-
import { a as ue, c as de, d as fe, l as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./worksheet-pull-client-
|
|
8
|
-
import { a as ye, i as be, n as xe, r as Se } from "./session-
|
|
9
|
-
import { a as Ce, n as we, r as Te, t as Ee } from "./render-
|
|
7
|
+
import { a as ue, c as de, d as fe, l as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./worksheet-pull-client-Nk7nbD3-.js";
|
|
8
|
+
import { a as ye, i as be, n as xe, r as Se } from "./session-BYh13Iu2.js";
|
|
9
|
+
import { a as Ce, n as we, r as Te, t as Ee } from "./render-C4IiRZiF.js";
|
|
10
10
|
import { existsSync as De, readFileSync as Oe } from "node:fs";
|
|
11
11
|
import { fileURLToPath as ke } from "node:url";
|
|
12
12
|
import { basename as Ae, dirname as je, resolve as Me } from "node:path";
|
|
@@ -133,7 +133,7 @@ var ze = class {
|
|
|
133
133
|
async renderSlide(e, t, n) {
|
|
134
134
|
return this.assertOpen(), this.enqueueRender(async () => {
|
|
135
135
|
x(this.signal);
|
|
136
|
-
let { renderSlideNode: r } = await import("./render-
|
|
136
|
+
let { renderSlideNode: r } = await import("./render-C4IiRZiF.js").then((e) => e.i);
|
|
137
137
|
await r(e, {
|
|
138
138
|
slideWidth: this.slideWidth,
|
|
139
139
|
slideHeight: this.slideHeight,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./slide-pull-client-
|
|
3
|
-
import { B as u, G as d, Ot as f, R as p, Rt as m, a as h, at as g, cn as _, ht as v, it as y, jt as b, ln as x, mt as S, q as C, z as w, zt as ee } from "./line-metrics-
|
|
4
|
-
import { C as te, E as ne, S as re, T as ie, _ as T, a as E, b as ae, c as D, d as oe, f as se, g as ce, h as le, i as O, l as k, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as A, w as _e, x as ve, y as j } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./slide-pull-client-v6Feibq1.js";
|
|
3
|
+
import { B as u, G as d, Ot as f, R as p, Rt as m, a as h, at as g, cn as _, ht as v, it as y, jt as b, ln as x, mt as S, q as C, z as w, zt as ee } from "./line-metrics-BY-aNaLO.js";
|
|
4
|
+
import { C as te, E as ne, S as re, T as ie, _ as T, a as E, b as ae, c as D, d as oe, f as se, g as ce, h as le, i as O, l as k, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as A, w as _e, x as ve, y as j } from "./canvas-viewer-mechanics-BdMdqj1R.js";
|
|
5
5
|
import { a as ye, i as be, n as xe, t as Se } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
6
6
|
import { x as M } from "./dash-CMzZIDz_.js";
|
|
7
|
-
import { n as Ce } from "./resource-measurement-
|
|
7
|
+
import { n as Ce } from "./resource-measurement-DOQetcWm.js";
|
|
8
8
|
import { n as we } from "./renderer-module-contract-BNGz8HvO.js";
|
|
9
9
|
import { n as Te, r as N, t as Ee } from "./visible-index-BjesVGhg.js";
|
|
10
10
|
import { n as De, r as P, t as F } from "./highlight-rect-BuX5rWP4.js";
|
|
@@ -765,7 +765,7 @@ var X = class e {
|
|
|
765
765
|
s = await e.arrayBuffer();
|
|
766
766
|
} else s = t;
|
|
767
767
|
s = ne(await ie(s, n.password)), a.setSourceBytes(s.byteLength), a.checkpoint("container ready");
|
|
768
|
-
let c = i === "worker" ? (await import("./render-worker-host-
|
|
768
|
+
let c = i === "worker" ? (await import("./render-worker-host-D9mO9qMj.js")).createRenderWorker() : new et(), l = i === "worker" ? we(n) : void 0, u;
|
|
769
769
|
try {
|
|
770
770
|
return u = new e(c, i, n.wasmUrl), u._metrics = a, n.math && i === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), n.threeD && i === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._math = i === "worker" ? void 0 : n.math, u._threeD = i === "worker" ? void 0 : n.threeD, n.regionMap && i === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = i === "worker" ? void 0 : n.regionMap, await u._parse(s, r.policy, i === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => a.observeUsage(e), l), a.checkpoint("presentation preflight ready"), i === "main" && n.useGoogleFonts && u._preflight && (u._googleFontFaces = await be(u._preflight.fontPreloadNames, o)), a.succeed({ slides: u.slideCount }), u;
|
|
771
771
|
} catch (e) {
|
package/dist/pptx.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./slide-pull-client-
|
|
2
|
-
import { Rt as t, a as n, cn as r, ln as i, zt as a } from "./line-metrics-
|
|
3
|
-
import { w as o } from "./canvas-viewer-mechanics-
|
|
4
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-
|
|
1
|
+
import { c as e } from "./slide-pull-client-v6Feibq1.js";
|
|
2
|
+
import { Rt as t, a as n, cn as r, ln as i, zt as a } from "./line-metrics-BY-aNaLO.js";
|
|
3
|
+
import { w as o } from "./canvas-viewer-mechanics-BdMdqj1R.js";
|
|
4
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-CE7xARJ_.js";
|
|
5
5
|
export { t as OoxmlDecodedImageLimitError, r as OoxmlError, i as OoxmlResourceLimitError, s as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, o as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, a as isOoxmlDecodedImageLimitError, n as openExternalHyperlink, c as readPptxTextSelectionContext, e as renderSlide };
|
|
@@ -43,7 +43,7 @@ function a(e, t) {
|
|
|
43
43
|
return n = o.then(() => void 0, () => void 0), o;
|
|
44
44
|
}
|
|
45
45
|
async function o(e, t, n, r = {}) {
|
|
46
|
-
let { renderSlide: i } = await import("./session-
|
|
46
|
+
let { renderSlide: i } = await import("./session-BYh13Iu2.js").then((e) => e.t), o = t.slides[n];
|
|
47
47
|
if (!o) throw Error(`Slide index ${n} out of range`);
|
|
48
48
|
let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
|
|
49
49
|
await i(e, o, t.slideWidth, t.slideHeight, {
|
|
@@ -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-DidI5svV.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/docx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-BC6Wez97.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/docx/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-n3fNJ5XR.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/pptx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as e, Mt as t, Pt as n, xt as r } from "./line-metrics-
|
|
1
|
+
import { Et as e, Mt as t, Pt as n, xt as r } from "./line-metrics-BY-aNaLO.js";
|
|
2
2
|
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
3
3
|
function i(e, t) {
|
|
4
4
|
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { c as t, i as n } from "./slide-pull-client-
|
|
3
|
-
import { B as r, F as i, H as a, I as o, K as s, P as c, R as l, at as u, dt as d, ft as f, it as p, ln as m, lt as h, ot as g, rt as _, st as v, ut as y } from "./line-metrics-
|
|
2
|
+
import { c as t, i as n } from "./slide-pull-client-v6Feibq1.js";
|
|
3
|
+
import { B as r, F as i, H as a, I as o, K as s, P as c, R as l, at as u, dt as d, ft as f, it as p, ln as m, lt as h, ot as g, rt as _, st as v, ut as y } from "./line-metrics-BY-aNaLO.js";
|
|
4
4
|
import { t as b } from "./transfer-CKZ79zFw.js";
|
|
5
5
|
//#region packages/pptx/src/slide-cursor-operation.ts
|
|
6
6
|
function x(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, Ft as c, Gt as l, Ht as u, Jt as d, K as f, Kt as p, Lt as m, M as h, Mt as g, N as _, Nt as v, O as y, Qt as b, S as x, St as S, Ut as C, Wt as w, Yt as T, Zt as E, _ as D, _t as O, an as k, bt as A, c as j, ct as M, d as N, en as P, f as F, g as I, gt as L, h as R, ht as z, i as B, in as V, j as H, kt as U, m as W, mt as G, n as K, nn as q, p as ee, pt as J, qt as te, r as ne, rn as re, s as ie, sn as ae, tn as oe, u as se, vt as ce, w as le, wt as ue, y as de, yt as fe, zt as pe } from "./line-metrics-
|
|
2
|
-
import { a as me, c as he, d as ge, i as _e, l as ve, n as ye, o as be, r as xe, s as Se, t as Ce, u as we } from "./line-distribute-
|
|
1
|
+
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, Ft as c, Gt as l, Ht as u, Jt as d, K as f, Kt as p, Lt as m, M as h, Mt as g, N as _, Nt as v, O as y, Qt as b, S as x, St as S, Ut as C, Wt as w, Yt as T, Zt as E, _ as D, _t as O, an as k, bt as A, c as j, ct as M, d as N, en as P, f as F, g as I, gt as L, h as R, ht as z, i as B, in as V, j as H, kt as U, m as W, mt as G, n as K, nn as q, p as ee, pt as J, qt as te, r as ne, rn as re, s as ie, sn as ae, tn as oe, u as se, vt as ce, w as le, wt as ue, y as de, yt as fe, zt as pe } from "./line-metrics-BY-aNaLO.js";
|
|
2
|
+
import { a as me, c as he, d as ge, i as _e, l as ve, n as ye, o as be, r as xe, s as Se, t as Ce, u as we } from "./line-distribute-vYf5DWek.js";
|
|
3
3
|
import { b as Y, r as Te } from "./dash-CMzZIDz_.js";
|
|
4
|
-
import { i as Ee } from "./resource-measurement-
|
|
4
|
+
import { i as Ee } from "./resource-measurement-DOQetcWm.js";
|
|
5
5
|
//#region packages/pptx/src/types.ts
|
|
6
6
|
function De(e) {
|
|
7
7
|
return e;
|
package/dist/three-d.mjs
CHANGED
|
@@ -1353,12 +1353,12 @@ function Pe(e) {
|
|
|
1353
1353
|
let t = e.catAxisLabelRotation;
|
|
1354
1354
|
return t == null ? null : !Number.isFinite(t) || Math.abs(t) > 54e5 ? 0 : t / 6e4 * Math.PI / 180;
|
|
1355
1355
|
}
|
|
1356
|
-
function Fe(e, t, n, r, i, a = 1) {
|
|
1356
|
+
function Fe(e, t, n, r, i, a = 1, o = 6) {
|
|
1357
1357
|
if (i || r === 0) {
|
|
1358
|
-
e.textAlign = i ? "right" : "center", e.textBaseline = i ? "middle" : a < 0 ? "bottom" : "top", e.fillText(t, n.x + (i ? -
|
|
1358
|
+
e.textAlign = i ? "right" : "center", e.textBaseline = i ? "middle" : a < 0 ? "bottom" : "top", e.fillText(t, n.x + (i ? -o : 0), n.y + (i ? 0 : a * o));
|
|
1359
1359
|
return;
|
|
1360
1360
|
}
|
|
1361
|
-
e.save(), e.translate(n.x, n.y + a *
|
|
1361
|
+
e.save(), e.translate(n.x, n.y + a * o), e.rotate(r), e.textAlign = a < 0 ? "left" : "right", e.textBaseline = "middle", e.fillText(t, 0, 0), e.restore();
|
|
1362
1362
|
}
|
|
1363
1363
|
function Ie(e, t, n, r, i, a, o) {
|
|
1364
1364
|
if (!(r > 0) || !Number.isFinite(t.x) || !Number.isFinite(t.y)) return;
|
|
@@ -1577,7 +1577,7 @@ function Ve(e, t, r, i, a, s) {
|
|
|
1577
1577
|
function He(e, t, r, i, a, o, s, c, l, u) {
|
|
1578
1578
|
let f = t.threeD?.seriesAxis;
|
|
1579
1579
|
if (!f || f.hidden || t.threeD?.barGrouping !== "standard" || t.series.length === 0) return;
|
|
1580
|
-
let p =
|
|
1580
|
+
let p = et(t, i, a, o, s, c, l), m = Ke(i), h = l === "vertical" ? m.seriesAxisX : p.axisX, g = l === "horizontal" ? m.floorY === i.front.y ? i.front.y + i.front.h : i.front.y : m.floorY, _ = i.project(h, g, i.topology.nearDepth), v = i.project(h, g, i.topology.farDepth), y = Math.hypot(v.x - _.x, v.y - _.y);
|
|
1581
1581
|
if (!(y > 1e-6)) return;
|
|
1582
1582
|
let b = {
|
|
1583
1583
|
x: (v.x - _.x) / y,
|
|
@@ -1771,7 +1771,7 @@ function qe(e, t, n, r, i, a, o, s, c) {
|
|
|
1771
1771
|
b(f.floor, t.threeD?.floor), b(f.sideWall, t.threeD?.sideWall), b(f.backWall, t.threeD?.backWall), e.setLineDash([]);
|
|
1772
1772
|
}
|
|
1773
1773
|
function Je(e, t, n, r, i, a, o, s, c) {
|
|
1774
|
-
let l =
|
|
1774
|
+
let l = et(t, n, r, i, a, o, c), u = c === "vertical" ? !t.catAxisHidden && !t.catAxisLineHidden : !t.valAxisHidden && !t.valAxisLineHidden, d = c === "vertical" ? !t.valAxisHidden && !t.valAxisLineHidden : !t.catAxisHidden && !t.catAxisLineHidden;
|
|
1775
1775
|
u && ($(e, Q(c === "vertical" ? t.catAxisLineColor : t.valAxisLineColor, c === "vertical" ? t.catAxisLineWidthEmu : t.valAxisLineWidthEmu, null, s, "898989", 1)), e.beginPath(), e.moveTo(l.horizontalStart.x, l.horizontalStart.y), e.lineTo(l.horizontalEnd.x, l.horizontalEnd.y), e.stroke()), d && ($(e, Q(c === "vertical" ? t.valAxisLineColor : t.catAxisLineColor, c === "vertical" ? t.valAxisLineWidthEmu : t.catAxisLineWidthEmu, null, s, "898989", 1)), e.beginPath(), e.moveTo(l.verticalStart.x, l.verticalStart.y), e.lineTo(l.verticalEnd.x, l.verticalEnd.y), e.stroke()), e.setLineDash([]);
|
|
1776
1776
|
}
|
|
1777
1777
|
function Ye(e, t, n, r) {
|
|
@@ -1789,10 +1789,23 @@ function Ye(e, t, n, r) {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
function Xe(e, t, n, r, i, a, o, s, c) {
|
|
1791
1791
|
if (!t || t === "none") return;
|
|
1792
|
-
let l = Ye(r, i, a, o), u = (s
|
|
1792
|
+
let l = Ye(r, i, a, o), u = Ze(s, c), d = t === "cross" ? u / 2 : u, f = t === "out" || t === "cross" ? d : 0, p = t === "in" || t === "cross" ? d : 0;
|
|
1793
1793
|
e.beginPath(), e.moveTo(n.x + l.x * f, n.y + l.y * f), e.lineTo(n.x - l.x * p, n.y - l.y * p), e.stroke();
|
|
1794
1794
|
}
|
|
1795
|
-
function Ze(e, t
|
|
1795
|
+
function Ze(e, t) {
|
|
1796
|
+
return (e === "minor" ? 4 : 6) * t;
|
|
1797
|
+
}
|
|
1798
|
+
function Qe(e, t, n) {
|
|
1799
|
+
if (e !== "out" && e !== "cross") return 0;
|
|
1800
|
+
let r = Ze(t, n);
|
|
1801
|
+
return e === "cross" ? r / 2 : r;
|
|
1802
|
+
}
|
|
1803
|
+
function $e(e, t, n, r) {
|
|
1804
|
+
if (t) return r;
|
|
1805
|
+
let i = Qe(e, "major", n);
|
|
1806
|
+
return Math.max(r, i + 3 * n);
|
|
1807
|
+
}
|
|
1808
|
+
function et(e, t, n, r, i, a, o) {
|
|
1796
1809
|
let { front: s } = t, c = (e) => Math.max(0, Math.min(1, e)), l = t.topology.axisX === "min" ? s.x : s.x + s.w, u = t.topology.axisY === "min" ? s.y : s.y + s.h, d = () => {
|
|
1797
1810
|
if (e.catAxisCrossesAt != null && Number.isFinite(e.catAxisCrossesAt)) {
|
|
1798
1811
|
let t = e.chartType.endsWith("Pct") ? e.catAxisCrossesAt * 100 : e.catAxisCrossesAt;
|
|
@@ -1818,8 +1831,8 @@ function Ze(e, t, n, r, i, a, o) {
|
|
|
1818
1831
|
verticalEnd: t.project(h, s.y, _)
|
|
1819
1832
|
};
|
|
1820
1833
|
}
|
|
1821
|
-
function
|
|
1822
|
-
let { front: l } = n, u =
|
|
1834
|
+
function tt(e, t, n, r, i, a, o, s, c) {
|
|
1835
|
+
let { front: l } = n, u = et(t, n, r, i, a, o, s), { axisX: d, axisY: f, depth: p } = u, m = n.project(l.x + l.w / 2, l.y + l.h / 2, p), h = t.valAxisMinorTickMark ?? "cross";
|
|
1823
1836
|
if (!t.valAxisHidden && !t.valAxisLineHidden) {
|
|
1824
1837
|
$(e, Q(t.valAxisLineColor, t.valAxisLineWidthEmu, null, c, "898989", 1));
|
|
1825
1838
|
let i = (e) => s === "horizontal" ? n.project(l.x + r.fraction(e) * l.w, f, p) : n.project(d, l.y + l.h - r.fraction(e) * l.h, p), a = s === "horizontal" ? u.horizontalStart : u.verticalStart, o = s === "horizontal" ? u.horizontalEnd : u.verticalEnd;
|
|
@@ -1847,7 +1860,7 @@ function Qe(e, t, n, r, i, a, o, s, c) {
|
|
|
1847
1860
|
}
|
|
1848
1861
|
e.setLineDash([]);
|
|
1849
1862
|
}
|
|
1850
|
-
function
|
|
1863
|
+
function nt(e, t, n, r) {
|
|
1851
1864
|
if (!t.threeD) return !1;
|
|
1852
1865
|
let i = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), a = t.chartType.endsWith("H") || t.chartType.includes("BarH"), o = t.chartType.startsWith("stacked"), s = i && !o && t.threeD.barGrouping === "standard", { plot: u, legend: f } = ze(e, t, n, r, a ? "horizontal" : "vertical"), p = j(t.threeD, u, {
|
|
1853
1866
|
sceneDepthScale: i ? s ? .65 : .1 : .4,
|
|
@@ -2221,8 +2234,8 @@ function $e(e, t, n, r) {
|
|
|
2221
2234
|
for (let e of q(l)) e.paint();
|
|
2222
2235
|
for (let e of u) e();
|
|
2223
2236
|
}
|
|
2224
|
-
Je(e, t, p, N, y, S, b, r, a ? "horizontal" : "vertical"),
|
|
2225
|
-
let H =
|
|
2237
|
+
Je(e, t, p, N, y, S, b, r, a ? "horizontal" : "vertical"), tt(e, t, p, N, y, S, b, a ? "horizontal" : "vertical", r), He(e, t, n, p, N, y, S, b, a ? "horizontal" : "vertical", r);
|
|
2238
|
+
let H = et(t, p, N, y, S, b, a ? "horizontal" : "vertical"), U = (e, t) => {
|
|
2226
2239
|
if (t !== "low" && t !== "high") return H;
|
|
2227
2240
|
let n = p.topology.nearDepth, r = H.axisX, i = H.axisY;
|
|
2228
2241
|
if (e === "value" === a) {
|
|
@@ -2243,34 +2256,34 @@ function $e(e, t, n, r) {
|
|
|
2243
2256
|
};
|
|
2244
2257
|
}, W = U("value", t.valAxisTickLabelPos), G = U("category", t.catAxisTickLabelPos), K = d(t.valAxisFontSizeHpt, r) ?? 9 * r;
|
|
2245
2258
|
if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${K}px ${Ce(t.valAxisFontFace)}`, e.fillStyle = t.valAxisFontColor ? `#${t.valAxisFontColor}` : "#595959", e.textAlign = a ? "center" : "right", e.textBaseline = a ? "top" : "middle", !t.valAxisHidden && t.valAxisTickLabelPos !== "none") {
|
|
2246
|
-
let { axisX: n, axisY:
|
|
2247
|
-
e.textAlign = Math.abs(
|
|
2248
|
-
let
|
|
2249
|
-
for (let
|
|
2250
|
-
let
|
|
2251
|
-
e.fillText(c(_ ?
|
|
2259
|
+
let { axisX: n, axisY: i, depth: o } = W, s = p.project(F.x + F.w / 2, F.y + F.h / 2, o), l = Ye(a ? W.horizontalStart : W.verticalStart, a ? W.horizontalEnd : W.verticalEnd, s, a ? "vertical" : "horizontal");
|
|
2260
|
+
e.textAlign = Math.abs(l.x) < .2 ? "center" : l.x < 0 ? "right" : "left", e.textBaseline = Math.abs(l.y) < .2 ? "middle" : l.y < 0 ? "bottom" : "top";
|
|
2261
|
+
let u = $e(t.valAxisMajorTickMark, t.valAxisLineHidden, r, 5), d = t.valAxisDisplayUnits?.divisor;
|
|
2262
|
+
for (let r of N.majorTicks) {
|
|
2263
|
+
let s = a ? p.project(F.x + N.fraction(r) * F.w, i, o) : p.project(n, F.y + F.h - N.fraction(r) * F.h, o);
|
|
2264
|
+
e.fillText(c(_ ? r / 100 : d != null && Number.isFinite(d) && d > 0 ? r / d : r, _ ? t.valAxisFormatCode ?? "0%" : t.valAxisFormatCode, t.date1904), s.x + l.x * u, s.y + l.y * u);
|
|
2252
2265
|
}
|
|
2253
2266
|
}
|
|
2254
2267
|
let J = d(t.catAxisFontSizeHpt, r) ?? 9 * r;
|
|
2255
2268
|
if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${J}px ${Ce(t.catAxisFontFace)}`, e.fillStyle = t.catAxisFontColor ? `#${t.catAxisFontColor}` : "#595959", !t.catAxisHidden && t.catAxisTickLabelPos !== "none") {
|
|
2256
|
-
let n = Array.from({ length: y }, (e, n) => l(String(v[n] ?? n + 1), t.catAxisFormatCode, t.date1904)),
|
|
2257
|
-
if (
|
|
2258
|
-
let t = Infinity,
|
|
2269
|
+
let n = $e(t.catAxisMajorTickMark, t.catAxisLineHidden, r, 6), i = Array.from({ length: y }, (e, n) => l(String(v[n] ?? n + 1), t.catAxisFormatCode, t.date1904)), o = Pe(t);
|
|
2270
|
+
if (o == null && (o = 0, !a && y > 1)) {
|
|
2271
|
+
let t = Infinity, n = null, r = G.axisY;
|
|
2259
2272
|
for (let e = 0; e < y; e++) {
|
|
2260
|
-
let
|
|
2261
|
-
|
|
2273
|
+
let i = Z(e, y, S, b), a = p.project(F.x + i * F.w, r, p.topology.nearDepth);
|
|
2274
|
+
n && (t = Math.min(t, Math.hypot(a.x - n.x, a.y - n.y))), n = a;
|
|
2262
2275
|
}
|
|
2263
|
-
Math.max(0, ...
|
|
2276
|
+
Math.max(0, ...i.map((t) => e.measureText(t).width)) > t * .9 && (o = -Math.PI / 4);
|
|
2264
2277
|
}
|
|
2265
|
-
let
|
|
2266
|
-
for (let t = 0; t < y; t +=
|
|
2267
|
-
let
|
|
2278
|
+
let s = Math.max(1, Math.floor(t.catAxisTickLabelSkip ?? 1));
|
|
2279
|
+
for (let t = 0; t < y; t += s) {
|
|
2280
|
+
let r = Z(t, y, S, b), { axisX: s, axisY: c, depth: l } = G, u = a ? p.project(s, F.y + Z(t, y, S, b) * F.h, l) : p.project(F.x + r * F.w, c, l);
|
|
2268
2281
|
if (a) {
|
|
2269
|
-
let r = p.project(
|
|
2270
|
-
e.textAlign =
|
|
2282
|
+
let r = p.project(s, F.y + F.h / 2, l), a = p.project(F.x + F.w / 2, F.y + F.h / 2, l), o = r.x <= a.x;
|
|
2283
|
+
e.textAlign = o ? "right" : "left", e.textBaseline = "middle", e.fillText(i[t], u.x + (o ? -n : n), u.y);
|
|
2271
2284
|
} else {
|
|
2272
|
-
let
|
|
2273
|
-
Fe(e,
|
|
2285
|
+
let r = p.project(F.x + F.w / 2, F.y + F.h / 2, l), s = Ye(G.horizontalStart, G.horizontalEnd, r, "vertical");
|
|
2286
|
+
Fe(e, i[t], u, o, a, s.y < 0 ? -1 : 1, n);
|
|
2274
2287
|
}
|
|
2275
2288
|
}
|
|
2276
2289
|
}
|
|
@@ -2278,7 +2291,7 @@ function $e(e, t, n, r) {
|
|
|
2278
2291
|
for (let e of L) e();
|
|
2279
2292
|
return Ue(e, t, f, r), !0;
|
|
2280
2293
|
}
|
|
2281
|
-
function
|
|
2294
|
+
function rt(e, t, n, r) {
|
|
2282
2295
|
if (!t.threeD || t.chartType !== "pie") return !1;
|
|
2283
2296
|
let i = t.series[0];
|
|
2284
2297
|
if (!i) return !0;
|
|
@@ -2417,11 +2430,11 @@ function et(e, t, n, r) {
|
|
|
2417
2430
|
}]
|
|
2418
2431
|
}, l, r, !0), !0;
|
|
2419
2432
|
}
|
|
2420
|
-
function
|
|
2421
|
-
return t.threeD ?
|
|
2433
|
+
function it(e, t, n, r) {
|
|
2434
|
+
return t.threeD ? rt(e, t, n, r) ? !0 : ge.has(t.chartType) ? nt(e, t, n, r) : !1 : !1;
|
|
2422
2435
|
}
|
|
2423
2436
|
//#endregion
|
|
2424
2437
|
//#region src/three-d.ts
|
|
2425
|
-
var
|
|
2438
|
+
var at = T({ render: it }, "threeD");
|
|
2426
2439
|
//#endregion
|
|
2427
|
-
export {
|
|
2440
|
+
export { at as threeD };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, ln as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
1
|
+
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, ln as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-BY-aNaLO.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-DOQetcWm.js";
|
|
3
3
|
import { t as v } from "./transfer-CKZ79zFw.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
5
|
var y = d, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { $t as t, A as n, At as r, B as i, C as a, D as o, Dt as s, Gt as c, J as l, Jt as u, M as d, O as f, Ot as p, Qt as m, R as h, Rt as g, S as _, T as v, Tt as y, V as b, Yt as x, Zt as S, _ as C, _t as w, a as T, an as E, bt as D, c as O, cn as k, d as A, en as j, f as M, g as ee, gt as te, h as N, ht as P, in as F, it as I, j as L, jt as R, kt as z, ln as ne, m as B, mt as V, n as H, nn as U, on as re, p as ie, pt as W, q as ae, rn as oe, s as se, sn as ce, tn as le, u as ue, vt as de, w as fe, y as pe, yt as me, z as G, zt as K } from "./line-metrics-
|
|
3
|
-
import { C as q, E as he, S as ge, T as _e, _ as ve, a as J, b as ye, d as be, f as xe, h as Se, i as Ce, l as we, m as Te, p as Ee, t as De, u as Oe, v as ke, w as Ae, x as je, y as Me } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { $t as t, A as n, At as r, B as i, C as a, D as o, Dt as s, Gt as c, J as l, Jt as u, M as d, O as f, Ot as p, Qt as m, R as h, Rt as g, S as _, T as v, Tt as y, V as b, Yt as x, Zt as S, _ as C, _t as w, a as T, an as E, bt as D, c as O, cn as k, d as A, en as j, f as M, g as ee, gt as te, h as N, ht as P, in as F, it as I, j as L, jt as R, kt as z, ln as ne, m as B, mt as V, n as H, nn as U, on as re, p as ie, pt as W, q as ae, rn as oe, s as se, sn as ce, tn as le, u as ue, vt as de, w as fe, y as pe, yt as me, z as G, zt as K } from "./line-metrics-BY-aNaLO.js";
|
|
3
|
+
import { C as q, E as he, S as ge, T as _e, _ as ve, a as J, b as ye, d as be, f as xe, h as Se, i as Ce, l as we, m as Te, p as Ee, t as De, u as Oe, v as ke, w as Ae, x as je, y as Me } from "./canvas-viewer-mechanics-BdMdqj1R.js";
|
|
4
4
|
import { a as Ne, i as Pe, t as Fe } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { a as Ie, i as Le, o as Re } from "./chart-number-format-tjYUR9eS.js";
|
|
6
6
|
import { S as ze, a as Be, b as Ve, x as Y } from "./dash-CMzZIDz_.js";
|
|
7
|
-
import { i as He } from "./resource-measurement-
|
|
7
|
+
import { i as He } from "./resource-measurement-DOQetcWm.js";
|
|
8
8
|
import { n as Ue } from "./renderer-module-contract-BNGz8HvO.js";
|
|
9
9
|
import { n as We, r as Ge, t as Ke } from "./visible-index-BjesVGhg.js";
|
|
10
|
-
import { a as qe, c as Je, d as Ye, i as Xe, l as Ze, n as Qe, o as $e, s as et, t as tt, u as nt } from "./worksheet-pull-client-
|
|
10
|
+
import { a as qe, c as Je, d as Ye, i as Xe, l as Ze, n as Qe, o as $e, s as et, t as tt, u as nt } from "./worksheet-pull-client-Nk7nbD3-.js";
|
|
11
11
|
//#region packages/core/src/sparkline/renderer.ts
|
|
12
12
|
function rt(e, t, n) {
|
|
13
13
|
let { values: r } = n;
|
|
@@ -4289,7 +4289,7 @@ var Ka = Symbol("retain-xlsx-viewer-fonts"), qa = Symbol("prepare-xlsx-viewer-ro
|
|
|
4289
4289
|
s = he(await _e(s, n.password));
|
|
4290
4290
|
let c = s === i;
|
|
4291
4291
|
o.setSourceBytes(s.byteLength), o.checkpoint("container ready");
|
|
4292
|
-
let l = a === "worker" ? (await import("./render-worker-host-
|
|
4292
|
+
let l = a === "worker" ? (await import("./render-worker-host-1VHH_HQk.js")).createRenderWorker() : new ut(), u;
|
|
4293
4293
|
try {
|
|
4294
4294
|
return u = new e(l, a, n.wasmUrl), u.metrics = o, await u._load(s, n, r.policy, (e) => o.observeUsage(e), c), o.checkpoint("workbook index ready"), o.succeed({ sheets: u.sheetCount }), u;
|
|
4295
4295
|
} catch (e) {
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Rt as e, a as t, cn as n, ln as r, zt as i } from "./line-metrics-
|
|
2
|
-
import { w as a } from "./canvas-viewer-mechanics-
|
|
3
|
-
import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-
|
|
4
|
-
import { i as f } from "./worksheet-pull-client-
|
|
1
|
+
import { Rt as e, a as t, cn as n, ln as r, zt as i } from "./line-metrics-BY-aNaLO.js";
|
|
2
|
+
import { w as a } from "./canvas-viewer-mechanics-BdMdqj1R.js";
|
|
3
|
+
import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-zy51yoRg.js";
|
|
4
|
+
import { i as f } from "./worksheet-pull-client-Nk7nbD3-.js";
|
|
5
5
|
export { s as MAX_SELECTION_AREAS, o as MAX_SELECTION_CONTEXT_CELLS, l as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, e as OoxmlDecodedImageLimitError, n as OoxmlError, r as OoxmlResourceLimitError, c as XlsxSheetViewer, u as XlsxViewer, d as XlsxWorkbook, a as autoResize, i as isOoxmlDecodedImageLimitError, t as openExternalHyperlink, f as resolveSharedStrings };
|
package/package.json
CHANGED