@silurus/ooxml 0.80.1 → 0.80.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.
- package/README.md +4 -3
- package/dist/assets/render-worker-CRaEOHkw.js +9 -0
- package/dist/assets/render-worker-DQGLj5Zv.js +22 -0
- package/dist/assets/render-worker-rnrSLmqL.js +8 -0
- package/dist/{canvas-viewer-mechanics-BdMdqj1R.js → canvas-viewer-mechanics-D-r6wHY_.js} +1 -1
- package/dist/{chart-number-format-tjYUR9eS.js → chart-number-format-qLhnk6hj.js} +57 -17
- package/dist/{document-pull-client-Dk2EnTL7.js → document-pull-client-vxk-Aomu.js} +38 -20
- package/dist/{docx-Dw1kxR2M.js → docx-DN0PRx2f.js} +5 -5
- package/dist/docx.mjs +3 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-vYf5DWek.js → line-distribute-Bvtp0Gt6.js} +1 -1
- package/dist/{line-metrics-BY-aNaLO.js → line-metrics-DdEJYxjx.js} +3789 -2998
- package/dist/math.mjs +27 -22
- package/dist/node.mjs +7 -7
- package/dist/{pptx-CE7xARJ_.js → pptx-B-Laftl1.js} +6 -6
- package/dist/pptx.mjs +4 -4
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +29 -29
- package/dist/{render-C4IiRZiF.js → render-CoqMHcbF.js} +1 -1
- package/dist/{render-worker-host-D9mO9qMj.js → render-worker-host-CYPhmBtX.js} +1 -1
- package/dist/{render-worker-host-1VHH_HQk.js → render-worker-host-GlLR1rtF.js} +1 -1
- package/dist/{render-worker-host-BVOjz-oV.js → render-worker-host-IuQFpoJM.js} +1 -1
- package/dist/{resource-measurement-DOQetcWm.js → resource-measurement-CgMubiAI.js} +1 -1
- package/dist/{session-BYh13Iu2.js → session-DkPblDiq.js} +2 -2
- package/dist/{slide-pull-client-v6Feibq1.js → slide-pull-client-m2blvngt.js} +4 -4
- package/dist/{dash-CMzZIDz_.js → three-d-C28kqDym.js} +352 -90
- package/dist/three-d.mjs +509 -715
- package/dist/types/docx.d.ts +58 -7
- package/dist/types/index.d.ts +62 -11
- package/dist/types/node.d.ts +54 -3
- package/dist/types/pptx.d.ts +58 -7
- package/dist/types/region-map.d.ts +54 -3
- package/dist/types/three-d.d.ts +54 -3
- package/dist/types/xlsx.d.ts +58 -7
- package/dist/{worksheet-pull-client-Nk7nbD3-.js → worksheet-pull-client-BntP6RiO.js} +2 -2
- package/dist/{xlsx-zy51yoRg.js → xlsx-DqMe7J2C.js} +982 -958
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-BC6Wez97.js +0 -7
- package/dist/assets/render-worker-DidI5svV.js +0 -21
- package/dist/assets/render-worker-n3fNJ5XR.js +0 -8
package/dist/math.mjs
CHANGED
|
@@ -2,50 +2,55 @@ import { t as e } from "./renderer-module-contract-BNGz8HvO.js";
|
|
|
2
2
|
import { n as t } from "./mathjax-DgAl7Yi5.js";
|
|
3
3
|
//#region packages/core/assets/mathjax-stix2.js?url
|
|
4
4
|
var n = new URL("mathjax-stix2.js", import.meta.url).href, r = null;
|
|
5
|
-
function i() {
|
|
6
|
-
return new URL(n, import.meta.url).href;
|
|
7
|
-
}
|
|
8
|
-
function a(e) {
|
|
9
|
-
return e ? new URL(e, import.meta.url).href : i();
|
|
10
|
-
}
|
|
11
|
-
function o(e) {
|
|
5
|
+
function i(e) {
|
|
12
6
|
return new Promise((t, n) => {
|
|
13
7
|
let r = document.createElement("script");
|
|
14
8
|
r.src = e, r.async = !0, r.onload = () => t(), r.onerror = () => n(/* @__PURE__ */ Error(`Failed to load math engine from ${e}`)), document.head.appendChild(r);
|
|
15
9
|
});
|
|
16
10
|
}
|
|
17
|
-
async function
|
|
11
|
+
async function a(e) {
|
|
18
12
|
await import(
|
|
19
13
|
/* @vite-ignore */
|
|
20
14
|
e
|
|
21
15
|
);
|
|
22
16
|
}
|
|
23
|
-
function
|
|
17
|
+
function o(e) {
|
|
24
18
|
return r || (r = (async () => {
|
|
25
19
|
let t = globalThis.__ooxmlStix2;
|
|
26
20
|
if (t) return t;
|
|
27
|
-
let n =
|
|
28
|
-
typeof document > "u" ? await
|
|
21
|
+
let n = new URL(e).href;
|
|
22
|
+
typeof document > "u" ? await a(n) : await i(n);
|
|
29
23
|
let r = globalThis.__ooxmlStix2;
|
|
30
24
|
if (!r) throw Error("Math engine failed to initialize");
|
|
31
25
|
return r;
|
|
32
26
|
})(), r);
|
|
33
27
|
}
|
|
34
|
-
async function
|
|
35
|
-
await
|
|
28
|
+
async function s(e) {
|
|
29
|
+
await o(e);
|
|
36
30
|
}
|
|
37
|
-
async function
|
|
38
|
-
let
|
|
31
|
+
async function c(e, n) {
|
|
32
|
+
let r = (await o(n)).mathml2svg(e);
|
|
39
33
|
return {
|
|
40
|
-
svg:
|
|
41
|
-
...t(
|
|
34
|
+
svg: r,
|
|
35
|
+
...t(r)
|
|
42
36
|
};
|
|
43
37
|
}
|
|
44
38
|
//#endregion
|
|
39
|
+
//#region packages/core/src/math/engine.ts
|
|
40
|
+
function l() {
|
|
41
|
+
return new URL(n, import.meta.url).href;
|
|
42
|
+
}
|
|
43
|
+
async function u() {
|
|
44
|
+
await s(l());
|
|
45
|
+
}
|
|
46
|
+
async function d(e) {
|
|
47
|
+
return c(e, l());
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
45
50
|
//#region src/math.ts
|
|
46
|
-
var
|
|
47
|
-
loadMathJax:
|
|
48
|
-
mathMLToSvg:
|
|
49
|
-
}, "math", { engineAssetUrl:
|
|
51
|
+
var f = e({
|
|
52
|
+
loadMathJax: u,
|
|
53
|
+
mathMLToSvg: d
|
|
54
|
+
}, "math", { engineAssetUrl: l() });
|
|
50
55
|
//#endregion
|
|
51
|
-
export {
|
|
56
|
+
export { f as math };
|
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-m2blvngt.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-DdEJYxjx.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-vxk-Aomu.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-BntP6RiO.js";
|
|
8
|
+
import { a as ye, i as be, n as xe, r as Se } from "./session-DkPblDiq.js";
|
|
9
|
+
import { a as Ce, n as we, r as Te, t as Ee } from "./render-CoqMHcbF.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-CoqMHcbF.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-m2blvngt.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-DdEJYxjx.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-D-r6wHY_.js";
|
|
5
5
|
import { a as ye, i as be, n as xe, t as Se } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
6
|
-
import {
|
|
7
|
-
import { n as Ce } from "./resource-measurement-
|
|
6
|
+
import { M } from "./three-d-C28kqDym.js";
|
|
7
|
+
import { n as Ce } from "./resource-measurement-CgMubiAI.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-CYPhmBtX.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-m2blvngt.js";
|
|
2
|
+
import { Rt as t, a as n, cn as r, ln as i, zt as a } from "./line-metrics-DdEJYxjx.js";
|
|
3
|
+
import { w as o } from "./canvas-viewer-mechanics-D-r6wHY_.js";
|
|
4
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-B-Laftl1.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 };
|
package/dist/pptx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/region-map.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, r as t } from "./chart-number-format-qLhnk6hj.js";
|
|
2
2
|
import { t as n } from "./renderer-module-contract-BNGz8HvO.js";
|
|
3
3
|
//#region packages/core/src/chart/region-map-natural-earth.generated.ts
|
|
4
4
|
var r = [
|
|
@@ -12633,33 +12633,33 @@ function D(e, t, n, r, i) {
|
|
|
12633
12633
|
let a = t.titleFontFace || t.themeMajorFontLatin || "sans-serif";
|
|
12634
12634
|
e.font = `${t.titleFontBold ?? !0 ? "bold " : ""}${r}px ${JSON.stringify(a)}`, e.fillStyle = t.titleFontColor ? `#${t.titleFontColor}` : "#333333", e.textAlign = "center", e.textBaseline = "top", e.fillText(t.title ?? "", n.x + n.w / 2, n.y + i);
|
|
12635
12635
|
}
|
|
12636
|
-
function O(
|
|
12636
|
+
function O(e, n, r, i, a, o, s, c) {
|
|
12637
12637
|
let l = n.series[0]?.name ?? "", u = Math.max(8, (n.legendFontSizeHpt ?? 900) / 100 * c);
|
|
12638
|
-
|
|
12639
|
-
let d = Math.min(o * .58, 240), f = Math.max(6, Math.min(12, s * .25)), p = i + (o - d) / 2, m = a + (l ? u + 2 : 0), h =
|
|
12640
|
-
h.addColorStop(0, r.minColor), r.midColor && h.addColorStop(.5, r.midColor), h.addColorStop(1, r.maxColor),
|
|
12638
|
+
e.font = `${n.legendFontBold ? "bold " : ""}${u}px ${JSON.stringify(n.legendFontFace || n.themeMinorFontLatin || "sans-serif")}`, e.fillStyle = n.legendFontColor ? `#${n.legendFontColor}` : "#595959", e.textAlign = "center", e.textBaseline = "top", l && e.fillText(l, i + o / 2, a);
|
|
12639
|
+
let d = Math.min(o * .58, 240), f = Math.max(6, Math.min(12, s * .25)), p = i + (o - d) / 2, m = a + (l ? u + 2 : 0), h = e.createLinearGradient(p, 0, p + d, 0);
|
|
12640
|
+
h.addColorStop(0, r.minColor), r.midColor && h.addColorStop(.5, r.midColor), h.addColorStop(1, r.maxColor), e.fillStyle = h, e.fillRect(p, m, d, f), e.fillStyle = n.legendFontColor ? `#${n.legendFontColor}` : "#595959", e.textBaseline = "top", e.textAlign = "left";
|
|
12641
12641
|
let g = n.series[0]?.valFormatCode ?? null;
|
|
12642
|
-
|
|
12642
|
+
e.fillText(t(r.min, g, n.date1904), p, m + f + 2), e.textAlign = "right", e.fillText(t(r.max, g, n.date1904), p + d, m + f + 2);
|
|
12643
12643
|
}
|
|
12644
12644
|
function k(e, t, n, r) {
|
|
12645
12645
|
e.fillStyle = "#666666", e.font = `${Math.max(9, 9 * n)}px sans-serif`, e.textAlign = "center", e.textBaseline = "middle", e.fillText(r, t.x + t.w / 2, t.y + t.h / 2);
|
|
12646
12646
|
}
|
|
12647
|
-
function A(
|
|
12647
|
+
function A(t, n, i, a) {
|
|
12648
12648
|
if (n.chartType !== "regionMap" || !n.chartexRegionMap) return !1;
|
|
12649
12649
|
let o = n.chartexRegionMap;
|
|
12650
|
-
if (o.rows.length > s) return k(
|
|
12651
|
-
if (o.geography?.cachePresent) return k(
|
|
12650
|
+
if (o.rows.length > s) return k(t, i, a, "(chart values exceed rendering limit)"), !0;
|
|
12651
|
+
if (o.geography?.cachePresent) return k(t, i, a, "(region map cache is unavailable offline)"), !0;
|
|
12652
12652
|
let l = o.geography?.viewedRegionType;
|
|
12653
|
-
if (l != null && l !== "world") return k(
|
|
12654
|
-
let u = E(o), d = T([...u.values()], o.colors, n.chartexAccents?.[0]), f =
|
|
12655
|
-
D(
|
|
12653
|
+
if (l != null && l !== "world") return k(t, i, a, "(region map detail is unavailable offline)"), !0;
|
|
12654
|
+
let u = E(o), d = T([...u.values()], o.colors, n.chartexAccents?.[0]), f = e(n, i.h, a, .02, .015);
|
|
12655
|
+
D(t, n, i, f.fontPx, f.topPad);
|
|
12656
12656
|
let p = n.showLegend ? Math.max(32, i.h * .16) : 0, m = i.w * .03, g = i.h * .035, _ = {
|
|
12657
12657
|
x: i.x + m,
|
|
12658
12658
|
y: i.y + f.bandH + p,
|
|
12659
12659
|
w: Math.max(1, i.w - m * 2),
|
|
12660
12660
|
h: Math.max(1, i.h - f.bandH - p - g)
|
|
12661
12661
|
};
|
|
12662
|
-
n.showLegend && O(
|
|
12662
|
+
n.showLegend && O(t, n, d, i.x, i.y + f.bandH, i.w, p, a);
|
|
12663
12663
|
let v = o.geography?.projectionType, y = Infinity, b = Infinity, x = -Infinity, S = -Infinity;
|
|
12664
12664
|
for (let e of r) for (let t of e.g) for (let e of t) for (let t of e) {
|
|
12665
12665
|
let e = c(t, v);
|
|
@@ -12672,35 +12672,35 @@ function A(e, n, i, a) {
|
|
|
12672
12672
|
y: A + t.y * C
|
|
12673
12673
|
};
|
|
12674
12674
|
}, M = /* @__PURE__ */ new Map();
|
|
12675
|
-
|
|
12676
|
-
for (let
|
|
12677
|
-
|
|
12675
|
+
t.lineWidth = Math.max(.35, .55 * a), t.strokeStyle = "#FFFFFF";
|
|
12676
|
+
for (let e of r) {
|
|
12677
|
+
t.beginPath();
|
|
12678
12678
|
let n = {
|
|
12679
12679
|
minX: Infinity,
|
|
12680
12680
|
minY: Infinity,
|
|
12681
12681
|
maxX: -Infinity,
|
|
12682
12682
|
maxY: -Infinity
|
|
12683
12683
|
};
|
|
12684
|
-
for (let r of
|
|
12684
|
+
for (let r of e.g) for (let e of r) {
|
|
12685
12685
|
let r;
|
|
12686
|
-
for (let i = 0; i <
|
|
12687
|
-
let a =
|
|
12688
|
-
n.minX = Math.min(n.minX, o.x), n.maxX = Math.max(n.maxX, o.x), n.minY = Math.min(n.minY, o.y), n.maxY = Math.max(n.maxY, o.y), i === 0 || r && Math.abs(a[0] - r[0]) > 180 ?
|
|
12686
|
+
for (let i = 0; i < e.length; i++) {
|
|
12687
|
+
let a = e[i], o = j(a);
|
|
12688
|
+
n.minX = Math.min(n.minX, o.x), n.maxX = Math.max(n.maxX, o.x), n.minY = Math.min(n.minY, o.y), n.maxY = Math.max(n.maxY, o.y), i === 0 || r && Math.abs(a[0] - r[0]) > 180 ? t.moveTo(o.x, o.y) : t.lineTo(o.x, o.y), r = a;
|
|
12689
12689
|
}
|
|
12690
|
-
|
|
12690
|
+
t.closePath();
|
|
12691
12691
|
}
|
|
12692
|
-
|
|
12692
|
+
t.fillStyle = u.has(e) ? d.color(u.get(e)) : "#E0E0E0", t.fill("evenodd"), t.stroke(), M.set(e, n);
|
|
12693
12693
|
}
|
|
12694
12694
|
if (o.regionLabelLayout && o.regionLabelLayout !== "none") {
|
|
12695
|
-
|
|
12696
|
-
for (let
|
|
12697
|
-
let n = h(
|
|
12698
|
-
if (!n || !r || !
|
|
12699
|
-
let i = j(n.l), a =
|
|
12700
|
-
(o.regionLabelLayout === "showAll" || a) &&
|
|
12695
|
+
t.font = `${Math.max(7, (n.dataLabelFontSizeHpt ?? 800) / 100 * a)}px ${JSON.stringify(n.dataLabelFontFace || n.themeMinorFontLatin || "sans-serif")}`, t.fillStyle = n.dataLabelFontColor ? `#${n.dataLabelFontColor}` : "#404040", t.textAlign = "center", t.textBaseline = "middle";
|
|
12696
|
+
for (let e of o.rows) {
|
|
12697
|
+
let n = h(e.label, e.entityId), r = n ? M.get(n) : void 0;
|
|
12698
|
+
if (!n || !r || !e.label) continue;
|
|
12699
|
+
let i = j(n.l), a = t.measureText(e.label).width <= Math.max(0, r.maxX - r.minX - 4);
|
|
12700
|
+
(o.regionLabelLayout === "showAll" || a) && t.fillText(e.label, i.x, i.y);
|
|
12701
12701
|
}
|
|
12702
12702
|
}
|
|
12703
|
-
return o.geography?.attribution && (
|
|
12703
|
+
return o.geography?.attribution && (t.font = `${Math.max(7, 7 * a)}px sans-serif`, t.fillStyle = "#777777", t.textAlign = "right", t.textBaseline = "bottom", t.fillText(o.geography.attribution, i.x + i.w - 4, i.y + i.h - 2)), !0;
|
|
12704
12704
|
}
|
|
12705
12705
|
//#endregion
|
|
12706
12706
|
//#region src/region-map.ts
|
|
@@ -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-DkPblDiq.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/pptx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-CRaEOHkw.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/xlsx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-DQGLj5Zv.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-rnrSLmqL.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/docx/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-DdEJYxjx.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-m2blvngt.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-DdEJYxjx.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-
|
|
3
|
-
import {
|
|
4
|
-
import { i as Ee } from "./resource-measurement-
|
|
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-DdEJYxjx.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-Bvtp0Gt6.js";
|
|
3
|
+
import { f as Te, j as Y } from "./three-d-C28kqDym.js";
|
|
4
|
+
import { i as Ee } from "./resource-measurement-CgMubiAI.js";
|
|
5
5
|
//#region packages/pptx/src/types.ts
|
|
6
6
|
function De(e) {
|
|
7
7
|
return e;
|