@silurus/ooxml 0.79.1 → 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/README.md +22 -15
- 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-DJ9yfiLN.js → canvas-viewer-mechanics-BdMdqj1R.js} +1 -1
- package/dist/{document-pull-client-DYoybVCn.js → document-pull-client-Dk2EnTL7.js} +2246 -2253
- package/dist/{docx-CSk_-kj_.js → docx-Dw1kxR2M.js} +107 -105
- package/dist/docx.mjs +4 -4
- package/dist/index.mjs +3 -3
- package/dist/line-distribute-vYf5DWek.js +1002 -0
- package/dist/{line-metrics-A77J_KRx.js → line-metrics-BY-aNaLO.js} +2064 -1925
- package/dist/math.mjs +34 -24
- package/dist/node.mjs +186 -186
- package/dist/{pptx-CO1Ut97p.js → pptx-CE7xARJ_.js} +128 -126
- package/dist/pptx.mjs +5 -5
- package/dist/region-map.mjs +75 -74
- package/dist/{render-C5m7Ddwx.js → render-C4IiRZiF.js} +1 -1
- package/dist/render-worker-host-1VHH_HQk.js +9 -0
- package/dist/render-worker-host-BVOjz-oV.js +9 -0
- package/dist/render-worker-host-D9mO9qMj.js +9 -0
- package/dist/renderer-module-contract-BNGz8HvO.js +30 -0
- package/dist/{resource-measurement-COxqtfGk.js → resource-measurement-DOQetcWm.js} +7 -7
- package/dist/{session-CJwZaquG.js → session-BYh13Iu2.js} +9 -9
- package/dist/{slide-pull-client-CFHNk0ek.js → slide-pull-client-v6Feibq1.js} +847 -861
- package/dist/three-d.mjs +339 -325
- package/dist/types/docx.d.ts +7 -7
- package/dist/types/index.d.ts +9 -9
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +2 -2
- package/dist/types/pptx.d.ts +7 -7
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/xlsx.d.ts +7 -7
- package/dist/{worksheet-pull-client-CziyJf24.js → worksheet-pull-client-Nk7nbD3-.js} +13 -13
- package/dist/{xlsx-DHQmjAfh.js → xlsx-zy51yoRg.js} +1206 -1216
- package/dist/xlsx.mjs +5 -5
- package/package.json +4 -1
- package/dist/line-distribute-CU7vu7XS.js +0 -1002
- package/dist/render-worker-host-BhMT5U73.js +0 -27
- package/dist/render-worker-host-DNMxGh5s.js +0 -27
- package/dist/render-worker-host-DWyg7wio.js +0 -27
- /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-BuX5rWP4.js} +0 -0
- /package/dist/{mathjax-Dqo857oC.js → mathjax-DgAl7Yi5.js} +0 -0
- /package/dist/{transfer-3QEJrsJa.js → transfer-CKZ79zFw.js} +0 -0
- /package/dist/{visible-index-CKvgpUrf.js → visible-index-BjesVGhg.js} +0 -0
package/dist/pptx.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./slide-pull-client-
|
|
2
|
-
import {
|
|
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-
|
|
5
|
-
export { t as OoxmlDecodedImageLimitError,
|
|
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
|
+
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/region-map.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as e, y as t } from "./chart-number-format-tjYUR9eS.js";
|
|
2
|
+
import { t as n } from "./renderer-module-contract-BNGz8HvO.js";
|
|
2
3
|
//#region packages/core/src/chart/region-map-natural-earth.generated.ts
|
|
3
|
-
var
|
|
4
|
+
var r = [
|
|
4
5
|
{
|
|
5
6
|
n: "Fiji",
|
|
6
7
|
a2: "FJ",
|
|
@@ -12423,7 +12424,7 @@ var n = [
|
|
|
12423
12424
|
[30.83, 3.51]
|
|
12424
12425
|
]]]
|
|
12425
12426
|
}
|
|
12426
|
-
],
|
|
12427
|
+
], i = [
|
|
12427
12428
|
1,
|
|
12428
12429
|
.9986,
|
|
12429
12430
|
.9954,
|
|
@@ -12443,7 +12444,7 @@ var n = [
|
|
|
12443
12444
|
.6213,
|
|
12444
12445
|
.5722,
|
|
12445
12446
|
.5322
|
|
12446
|
-
],
|
|
12447
|
+
], a = [
|
|
12447
12448
|
0,
|
|
12448
12449
|
.062,
|
|
12449
12450
|
.124,
|
|
@@ -12463,42 +12464,42 @@ var n = [
|
|
|
12463
12464
|
.9394,
|
|
12464
12465
|
.9761,
|
|
12465
12466
|
1
|
|
12466
|
-
],
|
|
12467
|
-
function
|
|
12468
|
-
let n = t === "mercator" || t === "miller" || t === "albers" || t === "robinson" ? t : "robinson",
|
|
12467
|
+
], o = (e) => e * Math.PI / 180, s = 1e4;
|
|
12468
|
+
function c(e, t) {
|
|
12469
|
+
let n = t === "mercator" || t === "miller" || t === "albers" || t === "robinson" ? t : "robinson", r = o(Math.max(-180, Math.min(180, e[0]))), s = Math.max(-89.999, Math.min(89.999, e[1])), c = o(s);
|
|
12469
12470
|
if (n === "mercator") {
|
|
12470
|
-
let e =
|
|
12471
|
+
let e = o(Math.max(-85, Math.min(85, s)));
|
|
12471
12472
|
return {
|
|
12472
|
-
x:
|
|
12473
|
+
x: r,
|
|
12473
12474
|
y: -Math.log(Math.tan(Math.PI / 4 + e / 2))
|
|
12474
12475
|
};
|
|
12475
12476
|
}
|
|
12476
12477
|
if (n === "miller") return {
|
|
12477
|
-
x:
|
|
12478
|
+
x: r,
|
|
12478
12479
|
y: -1.25 * Math.log(Math.tan(Math.PI / 4 + .4 * c))
|
|
12479
12480
|
};
|
|
12480
12481
|
if (n === "albers") {
|
|
12481
|
-
let e =
|
|
12482
|
+
let e = o(20), t = o(50), n = .5 * (Math.sin(e) + Math.sin(t)), i = Math.cos(e) ** 2 + 2 * n * Math.sin(e), a = Math.sqrt(i) / n, s = Math.sqrt(Math.max(0, i - 2 * n * Math.sin(c))) / n, l = n * r;
|
|
12482
12483
|
return {
|
|
12483
12484
|
x: s * Math.sin(l),
|
|
12484
|
-
y:
|
|
12485
|
+
y: a - s * Math.cos(l)
|
|
12485
12486
|
};
|
|
12486
12487
|
}
|
|
12487
12488
|
let l = Math.abs(s), u = Math.min(17, Math.floor(l / 5)), d = Math.min(1, (l - u * 5) / 5), f = (e) => e[u] + (e[u + 1] - e[u]) * d;
|
|
12488
12489
|
return {
|
|
12489
|
-
x: .8487 *
|
|
12490
|
-
y: -1.3523 * Math.sign(s) * f(
|
|
12490
|
+
x: .8487 * r * f(i),
|
|
12491
|
+
y: -1.3523 * Math.sign(s) * f(a)
|
|
12491
12492
|
};
|
|
12492
12493
|
}
|
|
12493
|
-
function
|
|
12494
|
+
function l(e) {
|
|
12494
12495
|
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "");
|
|
12495
12496
|
}
|
|
12496
|
-
var
|
|
12497
|
-
for (let e of
|
|
12498
|
-
let t =
|
|
12499
|
-
|
|
12497
|
+
var u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
|
|
12498
|
+
for (let e of r) if (u.set(l(e.n), e), e.a2 && d.set(l(e.a2), e), e.a3 && f.set(l(e.a3), e), e.p) {
|
|
12499
|
+
let t = l(e.p);
|
|
12500
|
+
p.has(t) || p.set(t, e);
|
|
12500
12501
|
}
|
|
12501
|
-
var
|
|
12502
|
+
var m = {
|
|
12502
12503
|
unitedstatesofamerica: "United States",
|
|
12503
12504
|
usa: "United States",
|
|
12504
12505
|
uk: "United Kingdom",
|
|
@@ -12510,27 +12511,27 @@ var p = {
|
|
|
12510
12511
|
drcongo: "Democratic Republic of the Congo",
|
|
12511
12512
|
congodemocraticrepublic: "Democratic Republic of the Congo"
|
|
12512
12513
|
};
|
|
12513
|
-
function
|
|
12514
|
-
let n = (e) =>
|
|
12514
|
+
function h(e, t) {
|
|
12515
|
+
let n = (e) => u.get(e) ?? d.get(e) ?? f.get(e) ?? p.get(e), r = t ? n(l(t)) : void 0;
|
|
12515
12516
|
if (r) return r;
|
|
12516
|
-
let i =
|
|
12517
|
-
return n(i) ?? (
|
|
12517
|
+
let i = l(e);
|
|
12518
|
+
return n(i) ?? (m[i] ? n(l(m[i])) : void 0);
|
|
12518
12519
|
}
|
|
12519
|
-
function
|
|
12520
|
+
function g(e, t) {
|
|
12520
12521
|
let n = (e ?? "").replace(/^#/, "").slice(0, 6);
|
|
12521
12522
|
return /^[0-9a-f]{6}$/i.test(n) ? [
|
|
12522
12523
|
0,
|
|
12523
12524
|
2,
|
|
12524
12525
|
4
|
|
12525
|
-
].map((e) => Number.parseInt(n.slice(e, e + 2), 16)) :
|
|
12526
|
+
].map((e) => Number.parseInt(n.slice(e, e + 2), 16)) : g(t, "000000");
|
|
12526
12527
|
}
|
|
12527
|
-
function
|
|
12528
|
+
function _(e) {
|
|
12528
12529
|
return `#${e.map((e) => Math.round(Math.max(0, Math.min(255, e))).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
12529
12530
|
}
|
|
12530
|
-
function
|
|
12531
|
-
return
|
|
12531
|
+
function v(e, t, n) {
|
|
12532
|
+
return _(e.map((e, r) => e + (t[r] - e) * Math.max(0, Math.min(1, n))));
|
|
12532
12533
|
}
|
|
12533
|
-
function
|
|
12534
|
+
function y([e, t, n]) {
|
|
12534
12535
|
let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = Math.min(r, i, a), c = (o + s) / 2, l = o - s;
|
|
12535
12536
|
if (l === 0) return [
|
|
12536
12537
|
0,
|
|
@@ -12544,7 +12545,7 @@ function v([e, t, n]) {
|
|
|
12544
12545
|
c
|
|
12545
12546
|
];
|
|
12546
12547
|
}
|
|
12547
|
-
function
|
|
12548
|
+
function b(e, t, n) {
|
|
12548
12549
|
let r = (1 - Math.abs(2 * n - 1)) * t, i = (e % 360 + 360) % 360 / 60, a = r * (1 - Math.abs(i % 2 - 1)), [o, s, c] = i < 1 ? [
|
|
12549
12550
|
r,
|
|
12550
12551
|
a,
|
|
@@ -12576,34 +12577,34 @@ function y(e, t, n) {
|
|
|
12576
12577
|
c + l
|
|
12577
12578
|
].map((e) => e * 255);
|
|
12578
12579
|
}
|
|
12579
|
-
function
|
|
12580
|
-
let [t, n, r] =
|
|
12580
|
+
function x(e) {
|
|
12581
|
+
let [t, n, r] = y(g(e, "4472C4"));
|
|
12581
12582
|
return {
|
|
12582
|
-
min:
|
|
12583
|
-
max:
|
|
12583
|
+
min: _(b(t, n, r * .2 + .8)),
|
|
12584
|
+
max: _(b(t, n, r * .75))
|
|
12584
12585
|
};
|
|
12585
12586
|
}
|
|
12586
|
-
function
|
|
12587
|
+
function S(e, t, n) {
|
|
12587
12588
|
let r = Math.max(0, Math.min(1, n)), i = e + (t - e) * r;
|
|
12588
12589
|
if (Number.isFinite(i)) return i;
|
|
12589
12590
|
let a = Math.max(Math.abs(e), Math.abs(t));
|
|
12590
12591
|
return !(a > 0) || !Number.isFinite(a) ? 0 : (e / a * (1 - r) + t / a * r) * a;
|
|
12591
12592
|
}
|
|
12592
|
-
function
|
|
12593
|
+
function C(e, t, n) {
|
|
12593
12594
|
if (t === n) return .5;
|
|
12594
12595
|
let r = (e - t) / (n - t);
|
|
12595
12596
|
if (Number.isFinite(r)) return r;
|
|
12596
12597
|
let i = Math.max(Math.abs(e), Math.abs(t), Math.abs(n));
|
|
12597
12598
|
return !(i > 0) || !Number.isFinite(i) ? .5 : (e / i - t / i) / (n / i - t / i);
|
|
12598
12599
|
}
|
|
12599
|
-
function
|
|
12600
|
-
return !e || e.kind === "extremeValue" ? t : e.kind === "percent" && Number.isFinite(e.value) ?
|
|
12600
|
+
function w(e, t, n, r) {
|
|
12601
|
+
return !e || e.kind === "extremeValue" ? t : e.kind === "percent" && Number.isFinite(e.value) ? S(n, r, e.value / 100) : e.kind === "number" && Number.isFinite(e.value) ? e.value : t;
|
|
12601
12602
|
}
|
|
12602
|
-
function
|
|
12603
|
+
function T(e, t, n) {
|
|
12603
12604
|
let r = Infinity, i = -Infinity;
|
|
12604
12605
|
for (let t of e) Number.isFinite(t) && (r = Math.min(r, t), i = Math.max(i, t));
|
|
12605
12606
|
(!Number.isFinite(r) || !Number.isFinite(i)) && (r = 0, i = 1);
|
|
12606
|
-
let a =
|
|
12607
|
+
let a = x(n), o = _(g(t?.minColor, a.min)), s = t?.stopCount === 3 && t.midColor ? _(g(t.midColor, "5B9BD5")) : void 0, c = _(g(t?.maxColor, a.max)), l = w(t?.minPosition, r, r, i), u = w(t?.maxPosition, i, r, i), d = w(t?.midPosition, (l + u) / 2, r, i), f = Math.min(l, u), p = Math.max(l, u);
|
|
12607
12608
|
return {
|
|
12608
12609
|
min: r,
|
|
12609
12610
|
max: i,
|
|
@@ -12611,28 +12612,28 @@ function w(e, t, n) {
|
|
|
12611
12612
|
midColor: s,
|
|
12612
12613
|
maxColor: c,
|
|
12613
12614
|
color(e) {
|
|
12614
|
-
return s ? e <= d ?
|
|
12615
|
+
return s ? e <= d ? v(g(o, o), g(s, s), C(e, f, d)) : v(g(s, s), g(c, c), C(e, d, p)) : v(g(o, o), g(c, c), C(e, f, p));
|
|
12615
12616
|
}
|
|
12616
12617
|
};
|
|
12617
12618
|
}
|
|
12618
|
-
function
|
|
12619
|
+
function E(e) {
|
|
12619
12620
|
let t = /* @__PURE__ */ new Map();
|
|
12620
12621
|
for (let n = 0; n < e.rows.length; n++) {
|
|
12621
12622
|
let r = e.rows[n];
|
|
12622
12623
|
if (!Number.isFinite(r.value)) continue;
|
|
12623
|
-
let i =
|
|
12624
|
+
let i = h(r.label, r.entityId);
|
|
12624
12625
|
if (!i) continue;
|
|
12625
12626
|
let a = t.get(i) ?? 0, o = r.value, s = a + o, c = Number.isFinite(s) ? s : a > 0 && o > 0 ? Number.MAX_VALUE : a < 0 && o < 0 ? -Number.MAX_VALUE : 0;
|
|
12626
12627
|
t.set(i, c);
|
|
12627
12628
|
}
|
|
12628
12629
|
return t;
|
|
12629
12630
|
}
|
|
12630
|
-
function
|
|
12631
|
+
function D(e, t, n, r, i) {
|
|
12631
12632
|
if (!t.title && !t.titlePresent) return;
|
|
12632
12633
|
let a = t.titleFontFace || t.themeMajorFontLatin || "sans-serif";
|
|
12633
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);
|
|
12634
12635
|
}
|
|
12635
|
-
function
|
|
12636
|
+
function O(t, n, r, i, a, o, s, c) {
|
|
12636
12637
|
let l = n.series[0]?.name ?? "", u = Math.max(8, (n.legendFontSizeHpt ?? 900) / 100 * c);
|
|
12637
12638
|
t.font = `${n.legendFontBold ? "bold " : ""}${u}px ${JSON.stringify(n.legendFontFace || n.themeMinorFontLatin || "sans-serif")}`, t.fillStyle = n.legendFontColor ? `#${n.legendFontColor}` : "#595959", t.textAlign = "center", t.textBaseline = "top", l && t.fillText(l, i + o / 2, a);
|
|
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 = t.createLinearGradient(p, 0, p + d, 0);
|
|
@@ -12640,39 +12641,39 @@ function D(t, n, r, i, a, o, s, c) {
|
|
|
12640
12641
|
let g = n.series[0]?.valFormatCode ?? null;
|
|
12641
12642
|
t.fillText(e(r.min, g, n.date1904), p, m + f + 2), t.textAlign = "right", t.fillText(e(r.max, g, n.date1904), p + d, m + f + 2);
|
|
12642
12643
|
}
|
|
12643
|
-
function
|
|
12644
|
+
function k(e, t, n, r) {
|
|
12644
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);
|
|
12645
12646
|
}
|
|
12646
|
-
function
|
|
12647
|
-
if (
|
|
12648
|
-
let
|
|
12649
|
-
if (
|
|
12650
|
-
if (
|
|
12651
|
-
let l =
|
|
12652
|
-
if (l != null && l !== "world") return
|
|
12653
|
-
let u =
|
|
12654
|
-
|
|
12655
|
-
let p =
|
|
12656
|
-
x: i.x +
|
|
12647
|
+
function A(e, n, i, a) {
|
|
12648
|
+
if (n.chartType !== "regionMap" || !n.chartexRegionMap) return !1;
|
|
12649
|
+
let o = n.chartexRegionMap;
|
|
12650
|
+
if (o.rows.length > s) return k(e, i, a, "(chart values exceed rendering limit)"), !0;
|
|
12651
|
+
if (o.geography?.cachePresent) return k(e, i, a, "(region map cache is unavailable offline)"), !0;
|
|
12652
|
+
let l = o.geography?.viewedRegionType;
|
|
12653
|
+
if (l != null && l !== "world") return k(e, i, a, "(region map detail is unavailable offline)"), !0;
|
|
12654
|
+
let u = E(o), d = T([...u.values()], o.colors, n.chartexAccents?.[0]), f = t(n, i.h, a, .02, .015);
|
|
12655
|
+
D(e, n, i, f.fontPx, f.topPad);
|
|
12656
|
+
let p = n.showLegend ? Math.max(32, i.h * .16) : 0, m = i.w * .03, g = i.h * .035, _ = {
|
|
12657
|
+
x: i.x + m,
|
|
12657
12658
|
y: i.y + f.bandH + p,
|
|
12658
|
-
w: Math.max(1, i.w -
|
|
12659
|
+
w: Math.max(1, i.w - m * 2),
|
|
12659
12660
|
h: Math.max(1, i.h - f.bandH - p - g)
|
|
12660
12661
|
};
|
|
12661
|
-
|
|
12662
|
-
let v =
|
|
12663
|
-
for (let e of
|
|
12664
|
-
let e =
|
|
12662
|
+
n.showLegend && O(e, n, d, i.x, i.y + f.bandH, i.w, p, a);
|
|
12663
|
+
let v = o.geography?.projectionType, y = Infinity, b = Infinity, x = -Infinity, S = -Infinity;
|
|
12664
|
+
for (let e of r) for (let t of e.g) for (let e of t) for (let t of e) {
|
|
12665
|
+
let e = c(t, v);
|
|
12665
12666
|
y = Math.min(y, e.x), x = Math.max(x, e.x), b = Math.min(b, e.y), S = Math.max(S, e.y);
|
|
12666
12667
|
}
|
|
12667
|
-
let C = Math.min(_.w / Math.max(Number.MIN_VALUE, x - y), _.h / Math.max(Number.MIN_VALUE, S - b)),
|
|
12668
|
-
let t =
|
|
12668
|
+
let C = Math.min(_.w / Math.max(Number.MIN_VALUE, x - y), _.h / Math.max(Number.MIN_VALUE, S - b)), w = _.x + (_.w - (x - y) * C) / 2 - y * C, A = _.y + (_.h - (S - b) * C) / 2 - b * C, j = (e) => {
|
|
12669
|
+
let t = c(e, v);
|
|
12669
12670
|
return {
|
|
12670
|
-
x:
|
|
12671
|
+
x: w + t.x * C,
|
|
12671
12672
|
y: A + t.y * C
|
|
12672
12673
|
};
|
|
12673
12674
|
}, M = /* @__PURE__ */ new Map();
|
|
12674
12675
|
e.lineWidth = Math.max(.35, .55 * a), e.strokeStyle = "#FFFFFF";
|
|
12675
|
-
for (let t of
|
|
12676
|
+
for (let t of r) {
|
|
12676
12677
|
e.beginPath();
|
|
12677
12678
|
let n = {
|
|
12678
12679
|
minX: Infinity,
|
|
@@ -12690,19 +12691,19 @@ function k(e, r, i, a) {
|
|
|
12690
12691
|
}
|
|
12691
12692
|
e.fillStyle = u.has(t) ? d.color(u.get(t)) : "#E0E0E0", e.fill("evenodd"), e.stroke(), M.set(t, n);
|
|
12692
12693
|
}
|
|
12693
|
-
if (
|
|
12694
|
-
e.font = `${Math.max(7, (
|
|
12695
|
-
for (let t of
|
|
12696
|
-
let n =
|
|
12694
|
+
if (o.regionLabelLayout && o.regionLabelLayout !== "none") {
|
|
12695
|
+
e.font = `${Math.max(7, (n.dataLabelFontSizeHpt ?? 800) / 100 * a)}px ${JSON.stringify(n.dataLabelFontFace || n.themeMinorFontLatin || "sans-serif")}`, e.fillStyle = n.dataLabelFontColor ? `#${n.dataLabelFontColor}` : "#404040", e.textAlign = "center", e.textBaseline = "middle";
|
|
12696
|
+
for (let t of o.rows) {
|
|
12697
|
+
let n = h(t.label, t.entityId), r = n ? M.get(n) : void 0;
|
|
12697
12698
|
if (!n || !r || !t.label) continue;
|
|
12698
12699
|
let i = j(n.l), a = e.measureText(t.label).width <= Math.max(0, r.maxX - r.minX - 4);
|
|
12699
|
-
(
|
|
12700
|
+
(o.regionLabelLayout === "showAll" || a) && e.fillText(t.label, i.x, i.y);
|
|
12700
12701
|
}
|
|
12701
12702
|
}
|
|
12702
|
-
return
|
|
12703
|
+
return o.geography?.attribution && (e.font = `${Math.max(7, 7 * a)}px sans-serif`, e.fillStyle = "#777777", e.textAlign = "right", e.textBaseline = "bottom", e.fillText(o.geography.attribution, i.x + i.w - 4, i.y + i.h - 2)), !0;
|
|
12703
12704
|
}
|
|
12704
12705
|
//#endregion
|
|
12705
12706
|
//#region src/region-map.ts
|
|
12706
|
-
var
|
|
12707
|
+
var j = n({ render: A }, "regionMap");
|
|
12707
12708
|
//#endregion
|
|
12708
|
-
export {
|
|
12709
|
+
export { j as regionMap };
|
|
@@ -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, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region packages/xlsx/src/render-worker.ts?worker&url
|
|
2
|
+
var e = "" + new URL("assets/render-worker-DidI5svV.js", import.meta.url).href;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region packages/xlsx/src/render-worker-host.ts
|
|
5
|
+
function t() {
|
|
6
|
+
return new Worker(e, { type: "module" });
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as createRenderWorker };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region packages/docx/src/render-worker.ts?worker&url
|
|
2
|
+
var e = "" + new URL("assets/render-worker-BC6Wez97.js", import.meta.url).href;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region packages/docx/src/render-worker-host.ts
|
|
5
|
+
function t() {
|
|
6
|
+
return new Worker(e, { type: "module" });
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as createRenderWorker };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region packages/pptx/src/render-worker.ts?worker&url
|
|
2
|
+
var e = "" + new URL("assets/render-worker-n3fNJ5XR.js", import.meta.url).href;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region packages/pptx/src/render-worker-host.ts
|
|
5
|
+
function t() {
|
|
6
|
+
return new Worker(e, { type: "module" });
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as createRenderWorker };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region packages/core/src/worker/renderer-module-contract.ts
|
|
2
|
+
var e = "ooxml-worker-renderer-module/v1", t = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function n(t, n) {
|
|
4
|
+
if (t === "math") {
|
|
5
|
+
if (!n) throw TypeError("Math worker renderer requires an engine asset URL");
|
|
6
|
+
return Object.freeze({
|
|
7
|
+
protocol: e,
|
|
8
|
+
builtin: t,
|
|
9
|
+
engineAssetUrl: n
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return Object.freeze({
|
|
13
|
+
protocol: e,
|
|
14
|
+
builtin: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function r(e, r, i) {
|
|
18
|
+
let a = r === "math" ? n(r, i?.engineAssetUrl ?? "") : n(r);
|
|
19
|
+
return t.set(e, a), e;
|
|
20
|
+
}
|
|
21
|
+
function i(e) {
|
|
22
|
+
let n = e.math ? t.get(e.math) : void 0, r = e.threeD ? t.get(e.threeD) : void 0, i = e.regionMap ? t.get(e.regionMap) : void 0, a = {
|
|
23
|
+
...n ? { math: n } : {},
|
|
24
|
+
...r ? { threeD: r } : {},
|
|
25
|
+
...i ? { regionMap: i } : {}
|
|
26
|
+
};
|
|
27
|
+
return Object.keys(a).length > 0 ? Object.freeze(a) : void 0;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as n, r as t };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
5
5
|
}
|
|
6
6
|
var a = "duotone";
|
|
7
7
|
async function o(o, s, c, l, u = {}) {
|
|
8
|
-
let { offscreenFactory: d, ...f } = u, p = await
|
|
9
|
-
return !c || !p ? p :
|
|
10
|
-
let { w:
|
|
11
|
-
if (
|
|
8
|
+
let { offscreenFactory: d, ...f } = u, p = await t(o, s, l, f);
|
|
9
|
+
return !c || !p ? p : n(a, i(o, c), l, async () => {
|
|
10
|
+
let { w: t, h: n } = e(p);
|
|
11
|
+
if (t <= 0 || n <= 0) return {
|
|
12
12
|
bitmap: p,
|
|
13
13
|
owned: !1
|
|
14
14
|
};
|
|
15
15
|
let i = await r(p, c, {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
16
|
+
width: t,
|
|
17
|
+
height: n,
|
|
18
18
|
offscreenFactory: d
|
|
19
19
|
});
|
|
20
20
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
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,
|
|
4
|
-
import { t as b } from "./transfer-
|
|
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
|
+
import { t as b } from "./transfer-CKZ79zFw.js";
|
|
5
5
|
//#region packages/pptx/src/slide-cursor-operation.ts
|
|
6
6
|
function x(e) {
|
|
7
7
|
try {
|
|
8
|
-
return
|
|
8
|
+
return _(e((e) => e.slide_cursor_resource_usage()));
|
|
9
9
|
} catch (e) {
|
|
10
10
|
if (String(e).includes("slide cursor usage is unavailable")) return;
|
|
11
11
|
throw e;
|
|
@@ -179,7 +179,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
179
179
|
operationId: e.operationId,
|
|
180
180
|
generation: e.generation,
|
|
181
181
|
requestId: e.requestId,
|
|
182
|
-
error:
|
|
182
|
+
error: g(/* @__PURE__ */ Error("slide pull session is not open"))
|
|
183
183
|
}), Promise.resolve());
|
|
184
184
|
}
|
|
185
185
|
async dispatchSafely(e, t) {
|
|
@@ -194,7 +194,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
194
194
|
operationId: e.operationId,
|
|
195
195
|
generation: e.generation,
|
|
196
196
|
requestId: e.requestId,
|
|
197
|
-
error:
|
|
197
|
+
error: g(n)
|
|
198
198
|
});
|
|
199
199
|
} catch {}
|
|
200
200
|
}
|
|
@@ -268,7 +268,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
268
268
|
operationId: e.operationId,
|
|
269
269
|
generation: e.generation,
|
|
270
270
|
requestId: e.requestId,
|
|
271
|
-
error:
|
|
271
|
+
error: g(this.lifecycleError())
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
requireArchive() {
|
|
@@ -295,7 +295,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
295
295
|
return x(this.executeArchive);
|
|
296
296
|
}
|
|
297
297
|
latchResourceFailure(e) {
|
|
298
|
-
let t = e instanceof
|
|
298
|
+
let t = e instanceof m ? e : u(e);
|
|
299
299
|
t && (this.resourceFailure ??= t);
|
|
300
300
|
}
|
|
301
301
|
staleLifecycleResponse(e) {
|
|
@@ -325,7 +325,7 @@ function C(e, t) {
|
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region packages/core/src/internal/wasm-runtime-generation.ts
|
|
327
327
|
function ie(e) {
|
|
328
|
-
return d(e) ? new
|
|
328
|
+
return d(e) ? new h(`WASM parser trapped and was recycled: ${e instanceof Error ? e.message : String(e)}`) : null;
|
|
329
329
|
}
|
|
330
330
|
var w = class {
|
|
331
331
|
realm;
|