vue-data-ui 3.25.11 → 3.25.12
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/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-KI_qWJHZ.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-CUB9qFqi.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-DeM1ZJiv.js} +16 -16
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useConfig-D32D002m.js → useConfig-Be2DFBsb.js} +1 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-DUdzTGvh.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-COEVZKW5.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-DFw5XDWb.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-BZCjuA3V.js} +4 -4
- package/dist/vue-ui-age-pyramid-DRUCkRz8.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BfKA4YVr.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-B0IfmAiX.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-C1kUAd9U.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-KA4AueJw.js} +98 -98
- package/dist/vue-ui-carousel-table-BxUd6pz5.js +467 -0
- package/dist/vue-ui-chestnut-DHSV3tgH.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-DwosQDGy.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-OoLvvkpK.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-DIDq-I8_.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-CEe-6BAo.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-Dyx0Ri4u.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-aocn4lMx.js} +4 -4
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-7uSOM7lM.js} +203 -203
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-DBwkC_24.js} +551 -551
- package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-MGfC3D58.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-593TeQ2W.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-DkJUBGun.js} +40 -40
- package/dist/vue-ui-galaxy-BrVH1I3l.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-DC4S5TsV.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-Yq0FgILc.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D9gwOdZE.js} +54 -54
- package/dist/vue-ui-heatmap-CIJRLiRS.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-B8mE9MIi.js} +21 -21
- package/dist/vue-ui-history-plot-Dj4qkhNI.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-njm9Qfcd.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-CFk0QESG.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-7gnBMFu5.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-CUVEBqJw.js} +3 -3
- package/dist/vue-ui-molecule-GqArgNXc.js +941 -0
- package/dist/vue-ui-mood-radar-Du71PAqx.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-BRGYUoVS.js} +481 -481
- package/dist/vue-ui-onion-C4LsJp_7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DumwZpjI.js +1444 -0
- package/dist/vue-ui-quadrant-BFEihaNk.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-COWxCDXU.js} +169 -169
- package/dist/vue-ui-radar-BZMDCj34.js +1386 -0
- package/dist/vue-ui-rating-D0tMtjhc.js +359 -0
- package/dist/vue-ui-relation-circle-DSNuFlbr.js +905 -0
- package/dist/vue-ui-ridgeline-DHHjDn73.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-BMKxADUw.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-BKJUWiYg.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-_EBFqU7v.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-DsfTcCOQ.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-Dj1tZM1l.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-B7ogNgvT.js} +113 -113
- package/dist/vue-ui-sparkgauge-BFGXwszU.js +268 -0
- package/dist/vue-ui-sparkhistogram-c-DSMEiv.js +589 -0
- package/dist/{vue-ui-sparkline-BF0Fdo6v.js → vue-ui-sparkline-Bm59iQiE.js} +198 -198
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-DIMZ8Wxa.js} +183 -183
- package/dist/vue-ui-stackbar-C53nXwth.js +2369 -0
- package/dist/vue-ui-stackline-D4ehty6i.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-CNnl1U1H.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bbw0YVee.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-B1uYpEhA.js} +95 -95
- package/dist/vue-ui-table-sparkline-D98mkhX0.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CDYrYD7E.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CW3wa1tF.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-CayzbbTu.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-BuOGDfHZ.js} +77 -77
- package/dist/vue-ui-waffle-D47Z_prI.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CNF5e3TM.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-y46KDG7e.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-DKW2yCXn.js} +133 -133
- package/dist/vue-ui-xy-BgmEGWgv.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-G3lMLlIL.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-CMAT-hT1.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1469,10 +1469,85 @@ function xt(e) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
return n.trim();
|
|
1471
1471
|
}
|
|
1472
|
+
function St(e, t) {
|
|
1473
|
+
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1474
|
+
let n = t instanceof Set ? t : new Set(t || []), r = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), i = (e) => `${h(e.x)},${h(e.y)}`, a = [], o = [], s = !1, c = null, l = () => {
|
|
1475
|
+
o.length >= 3 && a.push({
|
|
1476
|
+
path: o.join(" "),
|
|
1477
|
+
dashed: s
|
|
1478
|
+
}), o = [], c = null;
|
|
1479
|
+
};
|
|
1480
|
+
for (let t = 1; t < e.length; t += 1) {
|
|
1481
|
+
let a = e[t - 1], u = e[t];
|
|
1482
|
+
if (!r(a) || !r(u)) {
|
|
1483
|
+
l();
|
|
1484
|
+
continue;
|
|
1485
|
+
}
|
|
1486
|
+
let d = n.has(t - 1), f = i(a), p = `${h(u.x)},${h(a.y)}`, m = i(u);
|
|
1487
|
+
if (o.length && c === t - 1 && d === s) {
|
|
1488
|
+
o.push(`L${p}`, `L${m}`), c = t;
|
|
1489
|
+
continue;
|
|
1490
|
+
}
|
|
1491
|
+
l(), s = d, o = [
|
|
1492
|
+
f,
|
|
1493
|
+
`L${p}`,
|
|
1494
|
+
`L${m}`
|
|
1495
|
+
], c = t;
|
|
1496
|
+
}
|
|
1497
|
+
return l(), a;
|
|
1498
|
+
}
|
|
1499
|
+
function Ct(e, t) {
|
|
1500
|
+
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1501
|
+
let n = t instanceof Set ? t : new Set(t || []), r = [], i = [], a = !1, o = (e) => `${h(e.x)},${h(e.y)}`, s = () => {
|
|
1502
|
+
i.length >= 2 && r.push({
|
|
1503
|
+
path: i.map((e, t) => t === 0 ? e : `L${e}`).join(" "),
|
|
1504
|
+
dashed: a
|
|
1505
|
+
}), i = [];
|
|
1506
|
+
};
|
|
1507
|
+
i = [o(e[0])];
|
|
1508
|
+
for (let t = 1; t < e.length; t += 1) {
|
|
1509
|
+
let r = e[t - 1], c = e[t], l = n.has(t - 1), u = o(c);
|
|
1510
|
+
if (i.length === 1) {
|
|
1511
|
+
a = l, i.push(u);
|
|
1512
|
+
continue;
|
|
1513
|
+
}
|
|
1514
|
+
if (l !== a) {
|
|
1515
|
+
let e = o(r);
|
|
1516
|
+
s(), a = l, i = [e, u];
|
|
1517
|
+
} else i.push(u);
|
|
1518
|
+
}
|
|
1519
|
+
return s(), r;
|
|
1520
|
+
}
|
|
1521
|
+
function wt(e, t) {
|
|
1522
|
+
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1523
|
+
let n = t instanceof Set ? t : new Set(t || []), r = e.length - 1, i = [], a = [], o = [];
|
|
1524
|
+
for (let t = 0; t < r; t += 1) {
|
|
1525
|
+
let n = e[t + 1].x - e[t].x, r = e[t + 1].y - e[t].y;
|
|
1526
|
+
i[t] = r / n;
|
|
1527
|
+
}
|
|
1528
|
+
a[0] = i[0], a[r] = i[r - 1];
|
|
1529
|
+
for (let e = 1; e < r; e += 1) i[e - 1] * i[e] <= 0 ? a[e] = 0 : a[e] = 2 * i[e - 1] * i[e] / (i[e - 1] + i[e]);
|
|
1530
|
+
for (let t = 0; t < r; t += 1) {
|
|
1531
|
+
let n = e[t].x, r = e[t].y, i = e[t + 1].x, s = e[t + 1].y, c = a[t], l = a[t + 1], u = n + (i - n) / 3, d = r + c * (i - n) / 3, f = i - (i - n) / 3, p = s - l * (i - n) / 3;
|
|
1532
|
+
o[t] = `C${h(u)},${h(d)} ${h(f)},${h(p)} ${h(i)},${h(s)}`;
|
|
1533
|
+
}
|
|
1534
|
+
let s = [], c = 0, l = n.has(0), u = (t, n, r) => {
|
|
1535
|
+
let i = e[t];
|
|
1536
|
+
s.push({
|
|
1537
|
+
path: `${h(i.x)},${h(i.y)} ${o.slice(t, n + 1).join(" ")}`.trim(),
|
|
1538
|
+
dashed: r
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
for (let e = 1; e < r; e += 1) {
|
|
1542
|
+
let t = n.has(e);
|
|
1543
|
+
t !== l && (u(c, e - 1, l), c = e, l = t);
|
|
1544
|
+
}
|
|
1545
|
+
return u(c, r - 1, l), s;
|
|
1546
|
+
}
|
|
1472
1547
|
function J(e) {
|
|
1473
1548
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1474
1549
|
}
|
|
1475
|
-
function
|
|
1550
|
+
function Tt(e, t) {
|
|
1476
1551
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1477
1552
|
for (let e of i) {
|
|
1478
1553
|
let t = K(e);
|
|
@@ -1480,7 +1555,7 @@ function St(e, t) {
|
|
|
1480
1555
|
}
|
|
1481
1556
|
return r;
|
|
1482
1557
|
}
|
|
1483
|
-
function
|
|
1558
|
+
function Et(e) {
|
|
1484
1559
|
let t = [], n = [];
|
|
1485
1560
|
for (let r = 0; r < e.length; r += 1) {
|
|
1486
1561
|
let i = e[r];
|
|
@@ -1488,7 +1563,7 @@ function Ct(e) {
|
|
|
1488
1563
|
}
|
|
1489
1564
|
return n.length > 1 && t.push(n), t;
|
|
1490
1565
|
}
|
|
1491
|
-
function
|
|
1566
|
+
function Dt(e, t) {
|
|
1492
1567
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1493
1568
|
for (let e = 0; e < r; e += 1) i[e] = n[e + 1].x - n[e].x, a[e] = n[e + 1].y - n[e].y, o[e] = a[e] / i[e];
|
|
1494
1569
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1503,7 +1578,7 @@ function wt(e, t) {
|
|
|
1503
1578
|
commands: c
|
|
1504
1579
|
};
|
|
1505
1580
|
}
|
|
1506
|
-
function
|
|
1581
|
+
function Ot(e) {
|
|
1507
1582
|
let t = [];
|
|
1508
1583
|
if (!e.length) return t;
|
|
1509
1584
|
let n = 0, r = e[0];
|
|
@@ -1518,19 +1593,19 @@ function Tt(e) {
|
|
|
1518
1593
|
dashed: r
|
|
1519
1594
|
}), t;
|
|
1520
1595
|
}
|
|
1521
|
-
function
|
|
1596
|
+
function kt(e, t = []) {
|
|
1522
1597
|
let n = Array.isArray(e) ? e : [];
|
|
1523
1598
|
if (n.length < 2) return [];
|
|
1524
|
-
let r =
|
|
1599
|
+
let r = Tt(n.length, t), i = Et(n);
|
|
1525
1600
|
if (!i.length) return [];
|
|
1526
1601
|
let a = [];
|
|
1527
1602
|
for (let e of i) {
|
|
1528
|
-
let { startCoord: t, commands: i } =
|
|
1603
|
+
let { startCoord: t, commands: i } = Dt(n, e), o = Array(i.length);
|
|
1529
1604
|
for (let t = 0; t < i.length; t += 1) {
|
|
1530
1605
|
let n = e[t];
|
|
1531
1606
|
o[t] = r.has(n);
|
|
1532
1607
|
}
|
|
1533
|
-
let s =
|
|
1608
|
+
let s = Ot(o);
|
|
1534
1609
|
for (let r of s) {
|
|
1535
1610
|
let o = r.startEdge, s = `${o === 0 ? t : q(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1536
1611
|
a.push({
|
|
@@ -1541,7 +1616,7 @@ function Et(e, t = []) {
|
|
|
1541
1616
|
}
|
|
1542
1617
|
return a;
|
|
1543
1618
|
}
|
|
1544
|
-
function
|
|
1619
|
+
function At(e, t, n = !1, r = !0) {
|
|
1545
1620
|
function i(e) {
|
|
1546
1621
|
let t = [], n = [];
|
|
1547
1622
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
@@ -1566,10 +1641,10 @@ function Dt(e, t, n = !1, r = !0) {
|
|
|
1566
1641
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1567
1642
|
}).filter(Boolean);
|
|
1568
1643
|
}
|
|
1569
|
-
function
|
|
1644
|
+
function jt(e) {
|
|
1570
1645
|
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1571
1646
|
}
|
|
1572
|
-
function
|
|
1647
|
+
function Mt(e) {
|
|
1573
1648
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1574
1649
|
}
|
|
1575
1650
|
function Y(e) {
|
|
@@ -1577,17 +1652,17 @@ function Y(e) {
|
|
|
1577
1652
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1578
1653
|
let t = {};
|
|
1579
1654
|
for (let n in e) Object.hasOwn(e, n) && (t[n] = Y(e[n]));
|
|
1580
|
-
return
|
|
1655
|
+
return Mt(t);
|
|
1581
1656
|
}
|
|
1582
1657
|
return e;
|
|
1583
1658
|
}
|
|
1584
|
-
function
|
|
1659
|
+
function Nt(e) {
|
|
1585
1660
|
return 1 - (1 - e) ** 3;
|
|
1586
1661
|
}
|
|
1587
|
-
function
|
|
1662
|
+
function Pt(e) {
|
|
1588
1663
|
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
1589
1664
|
}
|
|
1590
|
-
function
|
|
1665
|
+
function Ft({ values: e, config: t = {} }) {
|
|
1591
1666
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1592
1667
|
function s(e) {
|
|
1593
1668
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1598,7 +1673,7 @@ function Mt({ values: e, config: t = {} }) {
|
|
|
1598
1673
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1599
1674
|
return i;
|
|
1600
1675
|
}
|
|
1601
|
-
function
|
|
1676
|
+
function It({ values: e, config: t = {} }) {
|
|
1602
1677
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1603
1678
|
function o(e) {
|
|
1604
1679
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1611,7 +1686,7 @@ function Nt({ values: e, config: t = {} }) {
|
|
|
1611
1686
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1612
1687
|
return i;
|
|
1613
1688
|
}
|
|
1614
|
-
function
|
|
1689
|
+
function Lt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1615
1690
|
if (!e || !n) return 0;
|
|
1616
1691
|
let o = n;
|
|
1617
1692
|
e.setAttribute("font-size", o);
|
|
@@ -1621,7 +1696,7 @@ function Pt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1621
1696
|
for (; g-- > 0 && o > r && (o--, e.setAttribute("font-size", o), h = e.getBBox(), !(h.x >= d + a && h.y >= f + a && h.x + h.width <= p - a && h.y + h.height <= m - a)););
|
|
1622
1697
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1623
1698
|
}
|
|
1624
|
-
function
|
|
1699
|
+
function Rt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1625
1700
|
if (e === 0) return "0";
|
|
1626
1701
|
let i = Math.abs(e);
|
|
1627
1702
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1633,18 +1708,18 @@ function Ft({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1633
1708
|
let o = e.toFixed(a);
|
|
1634
1709
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1635
1710
|
}
|
|
1636
|
-
function
|
|
1711
|
+
function zt(e) {
|
|
1637
1712
|
let t = [];
|
|
1638
1713
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1639
1714
|
return t;
|
|
1640
1715
|
}
|
|
1641
|
-
function
|
|
1716
|
+
function Bt(e, t = 20) {
|
|
1642
1717
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1643
1718
|
let n = e.split(" "), r = "", i = "";
|
|
1644
1719
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1645
1720
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1646
1721
|
}
|
|
1647
|
-
function
|
|
1722
|
+
function Vt(e) {
|
|
1648
1723
|
return e && ![null, void 0].includes(e.value) && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1649
1724
|
}
|
|
1650
1725
|
function X(e, t) {
|
|
@@ -1652,7 +1727,7 @@ function X(e, t) {
|
|
|
1652
1727
|
let n = [], r = [], i = () => {
|
|
1653
1728
|
r.length && (n.push(r), r = []);
|
|
1654
1729
|
};
|
|
1655
|
-
for (let n of e)
|
|
1730
|
+
for (let n of e) Vt(n) ? r.push(n) : t && i();
|
|
1656
1731
|
if (i(), !t) {
|
|
1657
1732
|
let e = n.flat();
|
|
1658
1733
|
n.length = 0, e.length && n.push(e);
|
|
@@ -1682,15 +1757,21 @@ function X(e, t) {
|
|
|
1682
1757
|
}
|
|
1683
1758
|
}), a;
|
|
1684
1759
|
}
|
|
1685
|
-
function
|
|
1760
|
+
function Ht(e, t, n) {
|
|
1686
1761
|
return e + (t - e) * n;
|
|
1687
1762
|
}
|
|
1688
|
-
function
|
|
1763
|
+
function Ut(e) {
|
|
1689
1764
|
let { lineA: t, lineB: n, colorLineA: r, colorLineB: i, smoothA: a = !1, smoothB: o = !1, stepperA: s = !1, stepperB: c = !1, sampleStepPx: l = 2, cutNullValues: u = !0, merge: d = !0 } = e || {};
|
|
1690
1765
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1691
1766
|
let f = s ? X(t, u) : t, p = c ? X(n, u) : n, m = (e) => Number.isFinite(e);
|
|
1692
1767
|
function h(e) {
|
|
1693
|
-
if (!u)
|
|
1768
|
+
if (!u) {
|
|
1769
|
+
let t = e.filter((e) => e && m(e.x) && m(e.y)).map((e) => ({
|
|
1770
|
+
x: e.x,
|
|
1771
|
+
y: e.y
|
|
1772
|
+
}));
|
|
1773
|
+
return t.length > 1 ? [t] : [];
|
|
1774
|
+
}
|
|
1694
1775
|
let t = [], n = [];
|
|
1695
1776
|
for (let r of e) r && m(r.x) && m(r.y) && r.value != null ? n.push({
|
|
1696
1777
|
x: r.x,
|
|
@@ -1711,67 +1792,76 @@ function zt(e) {
|
|
|
1711
1792
|
let u = (i - a) / l, d = u * u, f = d * u, p = 2 * f - 3 * d + 1, m = f - 2 * d + u, h = -2 * f + 3 * d, g = f - d;
|
|
1712
1793
|
return p * s + n * l * m + h * c + r * l * g;
|
|
1713
1794
|
}
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
let
|
|
1718
|
-
for (let
|
|
1719
|
-
if (!m(
|
|
1720
|
-
let
|
|
1721
|
-
for (let
|
|
1722
|
-
|
|
1723
|
-
let
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1795
|
+
let v = h(f), y = h(p);
|
|
1796
|
+
if (!v.length || !y.length) return [];
|
|
1797
|
+
function b() {
|
|
1798
|
+
let e = Infinity, t = -Infinity, n = [...v, ...y];
|
|
1799
|
+
for (let r of n) r.length && (e = Math.min(e, r[0].x), t = Math.max(t, r[r.length - 1].x));
|
|
1800
|
+
if (!m(e) || !m(t) || t <= e) return [];
|
|
1801
|
+
let r = Math.max(1, l), i = /* @__PURE__ */ new Set();
|
|
1802
|
+
for (let n = e; n <= t; n += r) i.add(n);
|
|
1803
|
+
i.add(e), i.add(t);
|
|
1804
|
+
for (let e of n) for (let t of e) m(t.x) && i.add(t.x);
|
|
1805
|
+
return [...i].sort((e, t) => e - t);
|
|
1806
|
+
}
|
|
1807
|
+
let x = b();
|
|
1808
|
+
if (x.length < 2) return [];
|
|
1809
|
+
function S(e, t, n) {
|
|
1810
|
+
let r = [];
|
|
1811
|
+
for (let i of n) {
|
|
1812
|
+
let n = null, a = !1;
|
|
1813
|
+
for (let r of e) {
|
|
1814
|
+
let e = r.length - 1;
|
|
1815
|
+
if (!(i < r[0].x - 1e-9 || i > r[e].x + 1e-9)) {
|
|
1816
|
+
for (let o = 0; o < e; o += 1) {
|
|
1817
|
+
let e = r[o], s = r[o + 1];
|
|
1818
|
+
if (!(i + 1e-9 < e.x || i - 1e-9 > s.x)) {
|
|
1732
1819
|
if (t) {
|
|
1733
|
-
let t =
|
|
1734
|
-
|
|
1820
|
+
let t = r.__tangents ||= g(r);
|
|
1821
|
+
n = _(e, s, t[o], t[o + 1], i);
|
|
1735
1822
|
} else {
|
|
1736
|
-
let t = (
|
|
1737
|
-
|
|
1823
|
+
let t = (i - e.x) / (s.x - e.x || 1);
|
|
1824
|
+
n = e.y + t * (s.y - e.y);
|
|
1738
1825
|
}
|
|
1739
|
-
|
|
1826
|
+
a = !0;
|
|
1740
1827
|
break;
|
|
1741
1828
|
}
|
|
1742
1829
|
}
|
|
1743
|
-
if (
|
|
1830
|
+
if (a) break;
|
|
1744
1831
|
}
|
|
1745
1832
|
}
|
|
1746
|
-
|
|
1747
|
-
x:
|
|
1833
|
+
n == null ? r.push({
|
|
1834
|
+
x: i,
|
|
1748
1835
|
y: null,
|
|
1749
1836
|
hole: !0
|
|
1750
|
-
}) :
|
|
1751
|
-
x:
|
|
1752
|
-
y:
|
|
1837
|
+
}) : r.push({
|
|
1838
|
+
x: i,
|
|
1839
|
+
y: n,
|
|
1753
1840
|
hole: !1
|
|
1754
1841
|
});
|
|
1755
1842
|
}
|
|
1756
|
-
return
|
|
1843
|
+
return r;
|
|
1844
|
+
}
|
|
1845
|
+
function C(e, t, n) {
|
|
1846
|
+
return e + n * (t - e);
|
|
1757
1847
|
}
|
|
1758
|
-
function
|
|
1848
|
+
function w(e, t) {
|
|
1759
1849
|
let n = [], r = [], i = Math.min(e.length, t.length);
|
|
1760
1850
|
for (let a = 0; a < i - 1; a += 1) {
|
|
1761
1851
|
let i = e[a], o = e[a + 1], s = t[a], c = t[a + 1];
|
|
1762
1852
|
if (n.push(i), r.push(s), i.hole || o.hole || s.hole || c.hole || i.y == null || o.y == null || s.y == null || c.y == null) continue;
|
|
1763
1853
|
let l = i.y - s.y, u = o.y - c.y;
|
|
1764
1854
|
if (l > 0 && u < 0 || l < 0 && u > 0) {
|
|
1765
|
-
let e = l / (l - u), t =
|
|
1855
|
+
let e = l / (l - u), t = C(i.x, o.x, e), a = C(i.y, o.y, e);
|
|
1856
|
+
n.push({
|
|
1766
1857
|
x: t,
|
|
1767
1858
|
y: a,
|
|
1768
1859
|
hole: !1
|
|
1769
|
-
},
|
|
1860
|
+
}), r.push({
|
|
1770
1861
|
x: t,
|
|
1771
1862
|
y: a,
|
|
1772
1863
|
hole: !1
|
|
1773
|
-
};
|
|
1774
|
-
n.push(s), r.push(c);
|
|
1864
|
+
});
|
|
1775
1865
|
}
|
|
1776
1866
|
}
|
|
1777
1867
|
return i > 0 && (n.push(e[i - 1]), r.push(t[i - 1])), {
|
|
@@ -1779,7 +1869,7 @@ function zt(e) {
|
|
|
1779
1869
|
B: r
|
|
1780
1870
|
};
|
|
1781
1871
|
}
|
|
1782
|
-
function
|
|
1872
|
+
function T(e, t) {
|
|
1783
1873
|
let n = [], a = Math.min(e.length, t.length);
|
|
1784
1874
|
for (let o = 0; o < a - 1; o += 1) {
|
|
1785
1875
|
let a = e[o], s = e[o + 1], c = t[o], l = t[o + 1];
|
|
@@ -1798,7 +1888,7 @@ function zt(e) {
|
|
|
1798
1888
|
}
|
|
1799
1889
|
return n;
|
|
1800
1890
|
}
|
|
1801
|
-
function
|
|
1891
|
+
function E(e, t) {
|
|
1802
1892
|
let n = [], a = Math.min(e.length, t.length);
|
|
1803
1893
|
if (a < 2) return n;
|
|
1804
1894
|
let o = 0;
|
|
@@ -1815,7 +1905,7 @@ function zt(e) {
|
|
|
1815
1905
|
if (n.hole || r.hole || i.hole || a.hole || n.y == null || r.y == null || i.y == null || a.y == null || (Math.sign(r.y - n.y || 0) || 1) !== c) break;
|
|
1816
1906
|
o += 1;
|
|
1817
1907
|
}
|
|
1818
|
-
let l = o
|
|
1908
|
+
let l = o, u = c >= 0 ? e : t, d = c >= 0 ? t : e, f = c >= 0 ? r : i, p = [];
|
|
1819
1909
|
for (let e = s; e <= l; e += 1) p.push(`${u[e].x},${u[e].y}`);
|
|
1820
1910
|
let m = [];
|
|
1821
1911
|
for (let e = l; e >= s; --e) m.push(`${d[e].x},${d[e].y}`);
|
|
@@ -1827,10 +1917,10 @@ function zt(e) {
|
|
|
1827
1917
|
}
|
|
1828
1918
|
return n;
|
|
1829
1919
|
}
|
|
1830
|
-
let { A:
|
|
1831
|
-
return d ?
|
|
1920
|
+
let { A: D, B: O } = w(S(v, !s && a, x), S(y, !c && o, x));
|
|
1921
|
+
return d ? E(D, O) : T(D, O);
|
|
1832
1922
|
}
|
|
1833
|
-
function
|
|
1923
|
+
function Wt(e, t, n = {}) {
|
|
1834
1924
|
let r = {
|
|
1835
1925
|
bubbles: !0,
|
|
1836
1926
|
cancelable: !0,
|
|
@@ -1865,7 +1955,7 @@ function Bt(e, t, n = {}) {
|
|
|
1865
1955
|
}) : new Event(t, r);
|
|
1866
1956
|
return e.dispatchEvent(o), o;
|
|
1867
1957
|
}
|
|
1868
|
-
function
|
|
1958
|
+
function Gt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1869
1959
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1870
1960
|
let i = e.style, a = {
|
|
1871
1961
|
width: i.width,
|
|
@@ -1880,14 +1970,14 @@ function Vt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1880
1970
|
});
|
|
1881
1971
|
}, n);
|
|
1882
1972
|
}
|
|
1883
|
-
function
|
|
1973
|
+
function Kt(e) {
|
|
1884
1974
|
let t = null, n = null;
|
|
1885
1975
|
return (...r) => {
|
|
1886
1976
|
let i = JSON.stringify(r);
|
|
1887
1977
|
return i === t ? n : (t = i, n = e(...r), n);
|
|
1888
1978
|
};
|
|
1889
1979
|
}
|
|
1890
|
-
function
|
|
1980
|
+
function Z(e, t, n = 0) {
|
|
1891
1981
|
let r = Math.max(1, Math.trunc(Number(t) || 1)), i = /* @__PURE__ */ new Set(), a = 0;
|
|
1892
1982
|
for (; a < e.length;) {
|
|
1893
1983
|
let t = e[a] ?? "";
|
|
@@ -1902,13 +1992,13 @@ function Q(e, t, n = 0) {
|
|
|
1902
1992
|
}
|
|
1903
1993
|
return i;
|
|
1904
1994
|
}
|
|
1905
|
-
function
|
|
1906
|
-
return
|
|
1995
|
+
function Q(e, t, n = 0) {
|
|
1996
|
+
return Z(e, t, n).size;
|
|
1907
1997
|
}
|
|
1908
|
-
function
|
|
1998
|
+
function qt({ configuredModulo: e, visibleTexts: t, allTexts: n, startAbs: r = 0, isZoomed: i = !1 }) {
|
|
1909
1999
|
let a = Math.max(1, Math.trunc(Number(e) || 1));
|
|
1910
2000
|
if (!i || !t.length || !n.length) return a;
|
|
1911
|
-
let o = Math.max(1,
|
|
2001
|
+
let o = Math.max(1, Q(n, a, 0)), s = Math.max(1, Math.round(t.length / o)), c = Math.max(1, t.length), l = /* @__PURE__ */ new Set([
|
|
1912
2002
|
1,
|
|
1913
2003
|
a,
|
|
1914
2004
|
s
|
|
@@ -1925,11 +2015,11 @@ function Ut({ configuredModulo: e, visibleTexts: t, allTexts: n, startAbs: r = 0
|
|
|
1925
2015
|
});
|
|
1926
2016
|
let u = a, d = Infinity, f = Infinity;
|
|
1927
2017
|
return l.forEach((e) => {
|
|
1928
|
-
let n =
|
|
2018
|
+
let n = Q(t, e, r), i = Math.abs(n - o), a = Math.abs(e - s);
|
|
1929
2019
|
(i < d || i === d && a < f) && (u = e, d = i, f = a);
|
|
1930
2020
|
}), u;
|
|
1931
2021
|
}
|
|
1932
|
-
var
|
|
2022
|
+
var $ = Kt((e, t, n, r, i, a, o, s) => {
|
|
1933
2023
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
1934
2024
|
text: e,
|
|
1935
2025
|
absoluteIndex: t
|
|
@@ -1941,19 +2031,19 @@ var Wt = Ht((e, t, n, r, i, a, o, s) => {
|
|
|
1941
2031
|
text: e,
|
|
1942
2032
|
absoluteIndex: t
|
|
1943
2033
|
}));
|
|
1944
|
-
let c =
|
|
2034
|
+
let c = Z(r, n, a);
|
|
1945
2035
|
return r.map((e, t) => ({
|
|
1946
2036
|
text: e && c.has(t) ? e : "",
|
|
1947
2037
|
absoluteIndex: t
|
|
1948
2038
|
}));
|
|
1949
2039
|
});
|
|
1950
|
-
function
|
|
2040
|
+
function Jt(e) {
|
|
1951
2041
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1952
2042
|
}
|
|
1953
|
-
function
|
|
2043
|
+
function Yt(e) {
|
|
1954
2044
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1955
2045
|
}
|
|
1956
|
-
function
|
|
2046
|
+
function Xt(e) {
|
|
1957
2047
|
if (!e || typeof e != "string") return null;
|
|
1958
2048
|
let t = document.createElementNS(U, "svg");
|
|
1959
2049
|
t.setAttribute("xmlns", U);
|
|
@@ -1965,13 +2055,13 @@ function qt(e) {
|
|
|
1965
2055
|
y: i.y
|
|
1966
2056
|
};
|
|
1967
2057
|
}
|
|
1968
|
-
function
|
|
2058
|
+
function Zt(e, t = "(", n = ")") {
|
|
1969
2059
|
return `${t}${e}${n}`;
|
|
1970
2060
|
}
|
|
1971
|
-
function
|
|
2061
|
+
function Qt(e, t) {
|
|
1972
2062
|
return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
|
|
1973
2063
|
}
|
|
1974
|
-
function
|
|
2064
|
+
function $t(e, t, n) {
|
|
1975
2065
|
if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
1976
2066
|
if (n.createSVGPoint && n.getScreenCTM) {
|
|
1977
2067
|
let r = n.createSVGPoint();
|
|
@@ -1991,10 +2081,10 @@ function Xt(e, t, n) {
|
|
|
1991
2081
|
y: r.top + t
|
|
1992
2082
|
};
|
|
1993
2083
|
}
|
|
1994
|
-
function
|
|
2084
|
+
function en(e) {
|
|
1995
2085
|
return e != null && Number.isFinite(Number(e));
|
|
1996
2086
|
}
|
|
1997
|
-
function
|
|
2087
|
+
function tn(e, t = 1) {
|
|
1998
2088
|
if (!e.length) return "";
|
|
1999
2089
|
if (e.length === 1) return `${e[0].x} ${e[0].y}`;
|
|
2000
2090
|
let n = [`${e[0].x} ${e[0].y}`];
|
|
@@ -2010,7 +2100,7 @@ function Qt(e, t = 1) {
|
|
|
2010
2100
|
}
|
|
2011
2101
|
return n.join(" ");
|
|
2012
2102
|
}
|
|
2013
|
-
function
|
|
2103
|
+
function nn(e, t = 1) {
|
|
2014
2104
|
return !e || typeof window > "u" ? Promise.resolve(null) : new Promise((n) => {
|
|
2015
2105
|
let r = new window.Image();
|
|
2016
2106
|
r.onload = () => {
|
|
@@ -2023,16 +2113,29 @@ function $t(e, t = 1) {
|
|
|
2023
2113
|
}, r.onerror = () => n(null), r.src = e;
|
|
2024
2114
|
});
|
|
2025
2115
|
}
|
|
2026
|
-
function
|
|
2116
|
+
function rn(e, t) {
|
|
2027
2117
|
let n = Math.floor(Number(t));
|
|
2028
2118
|
if (!Number.isFinite(n) || n <= 0) return [];
|
|
2029
2119
|
let r = b(e);
|
|
2030
2120
|
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
2031
2121
|
}
|
|
2032
|
-
function
|
|
2122
|
+
function an(e, t) {
|
|
2033
2123
|
if (!t || !e) return e;
|
|
2034
2124
|
let n = String(e ?? ""), r = Math.max(0, Number(t) || 0);
|
|
2035
2125
|
return n.length > r ? `${n.slice(0, r)}...` : n;
|
|
2036
2126
|
}
|
|
2127
|
+
function on(e, t) {
|
|
2128
|
+
if (!Array.isArray(e) || !Array.isArray(t)) return [];
|
|
2129
|
+
let n = [], r = 0;
|
|
2130
|
+
for (let i of t) {
|
|
2131
|
+
let t = -1;
|
|
2132
|
+
for (let n = r; n < e.length; n += 1) if (Object.is(e[n], i)) {
|
|
2133
|
+
t = n, r = n + 1;
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
n.push(t);
|
|
2137
|
+
}
|
|
2138
|
+
return n;
|
|
2139
|
+
}
|
|
2037
2140
|
//#endregion
|
|
2038
|
-
export {
|
|
2141
|
+
export { Fe as $, v as $t, _t as A, lt as At, oe as B, y as Bt, F as C, at as Ct, Ee as D, p as Dt, rn as E, Le as Et, ve as F, i as Ft, bt as G, ot as Gt, St as H, Zt as Ht, xt as I, we as It, W as J, A as Jt, Ct as K, Qt as Kt, kt as L, on as Lt, ie as M, dt as Mt, At as N, Ht as Nt, ft as O, en as Ot, _e as P, De as Pt, Oe as Q, $t as Qt, wt as R, ze as Rt, b as S, se as St, tn as T, Pe as Tt, he as U, pt as Ut, ge as V, g as Vt, yt as W, mt as Wt, ye as X, Ce as Xt, Ye as Y, jt as Yt, Qe as Z, nt as Zt, ke as _, Je as _t, an as a, Be as at, h as b, et as bt, $ as c, zt as ct, fe as d, Rt as dt, tt as en, G as et, I as f, Re as ft, qe as g, nn as gt, xe as h, qt as ht, it as i, Bt as in, Nt as it, ct as j, ut as jt, gt as k, f as kt, Ut as l, R as lt, pe as m, It as mt, Ie as n, Wt as nn, Te as nt, $e as o, Jt as ot, L as p, Ft as pt, Xe as q, st as qt, de as r, Gt as rn, Pt as rt, Lt as s, Yt as st, U as t, l as tn, Y as tt, me as u, m as ut, Ae as v, Ge as vt, Ze as w, Ne as wt, ce as x, Xt as xt, Se as y, _ as yt, We as z, be as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./dom-to-png-
|
|
1
|
+
import { t as e } from "./dom-to-png-DdqmzDdY.js";
|
|
2
2
|
//#region src/pdf.js
|
|
3
3
|
async function t({ domElement: t, fileName: n, scale: r = 2, orientation: i = "auto", overflowTolerance: a = .2, aspectRatio: o = null }) {
|
|
4
4
|
if (!t) return Promise.reject("No domElement provided");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./package-
|
|
1
|
+
import { B as e, M as t, S as n, ot as r, st as i } from "./lib-DOpaUOQx.js";
|
|
2
|
+
import { t as a } from "./package-CUB9qFqi.js";
|
|
3
3
|
//#region src/svg/utils/index.js
|
|
4
4
|
function o(e, t = 0) {
|
|
5
5
|
let n = Number(e);
|
|
@@ -11,13 +11,13 @@ function s(e) {
|
|
|
11
11
|
function c(e) {
|
|
12
12
|
return Number.isFinite(Number(e));
|
|
13
13
|
}
|
|
14
|
-
function l(e, t = {},
|
|
15
|
-
let
|
|
16
|
-
return `<${e}${
|
|
14
|
+
function l(e, t = {}, n = "") {
|
|
15
|
+
let r = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${i(t)}"`).join(" ");
|
|
16
|
+
return `<${e}${r ? ` ${r}` : ""}>${n}</${e}>`;
|
|
17
17
|
}
|
|
18
18
|
function u(e, t = {}) {
|
|
19
|
-
let
|
|
20
|
-
return `<${e}${
|
|
19
|
+
let n = Object.entries(t).filter(([, e]) => e != null && e !== !1).map(([e, t]) => `${e}="${i(t)}"`).join(" ");
|
|
20
|
+
return `<${e}${n ? ` ${n}` : ""}/>`;
|
|
21
21
|
}
|
|
22
22
|
function d(e, t = {}) {
|
|
23
23
|
return l("text", t, r(e ?? ""));
|
|
@@ -32,10 +32,10 @@ function f(e) {
|
|
|
32
32
|
"star"
|
|
33
33
|
].includes(e) ? e : "circle";
|
|
34
34
|
}
|
|
35
|
-
function p({ dataCy:
|
|
36
|
-
let d = f(
|
|
35
|
+
function p({ dataCy: n, shape: r, plot: i, radius: a, fill: s, stroke: c, strokeWidth: l }) {
|
|
36
|
+
let d = f(r), p = o(i.x, 0), m = o(i.y, 0), h = o(a, 4);
|
|
37
37
|
if (d === "circle") return u("circle", {
|
|
38
|
-
"data-cy":
|
|
38
|
+
"data-cy": n,
|
|
39
39
|
cx: p,
|
|
40
40
|
cy: m,
|
|
41
41
|
r: h,
|
|
@@ -44,8 +44,8 @@ function p({ dataCy: t, shape: n, plot: r, radius: a, fill: s, stroke: c, stroke
|
|
|
44
44
|
"stroke-width": l
|
|
45
45
|
});
|
|
46
46
|
if (d === "star") return u("polygon", {
|
|
47
|
-
"data-cy":
|
|
48
|
-
points:
|
|
47
|
+
"data-cy": n,
|
|
48
|
+
points: e({
|
|
49
49
|
plot: {
|
|
50
50
|
x: p,
|
|
51
51
|
y: m
|
|
@@ -79,8 +79,8 @@ function p({ dataCy: t, shape: n, plot: r, radius: a, fill: s, stroke: c, stroke
|
|
|
79
79
|
}
|
|
80
80
|
}[d];
|
|
81
81
|
return u("path", {
|
|
82
|
-
"data-cy":
|
|
83
|
-
d:
|
|
82
|
+
"data-cy": n,
|
|
83
|
+
d: t({
|
|
84
84
|
plot: {
|
|
85
85
|
x: p,
|
|
86
86
|
y: m
|
|
@@ -115,8 +115,8 @@ function _(e, t, n) {
|
|
|
115
115
|
let r = m(e, t, void 0);
|
|
116
116
|
return r === void 0 ? g(e, t, n) : r;
|
|
117
117
|
}
|
|
118
|
-
function v(e,
|
|
119
|
-
return
|
|
118
|
+
function v(e, t = "#000000") {
|
|
119
|
+
return n(e) || e || t;
|
|
120
120
|
}
|
|
121
121
|
function y(e, t = "#FFFFFF") {
|
|
122
122
|
return v(g(e, "backgroundColor", t), t);
|
package/dist/ssr/vue-ui-donut.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-donut-
|
|
1
|
+
import { t as e } from "../vue-ui-donut-7uSOM7lM.js";
|
|
2
2
|
export { e as createStaticVueUiDonut };
|
package/dist/ssr/vue-ui-xy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-xy-
|
|
1
|
+
import { t as e } from "../vue-ui-xy-G3lMLlIL.js";
|
|
2
2
|
export { e as createStaticVueUiXy };
|
package/dist/ssr.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./vue-ui-xy-
|
|
2
|
-
import { t } from "./vue-ui-donut-
|
|
1
|
+
import { t as e } from "./vue-ui-xy-G3lMLlIL.js";
|
|
2
|
+
import { t } from "./vue-ui-donut-7uSOM7lM.js";
|
|
3
3
|
export { t as createStaticVueUiDonut, e as createStaticVueUiXy };
|