vue-data-ui 3.22.9 → 3.22.11
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-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
- 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-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-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-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/exposedLib-Ciw6TGtP.js +25 -0
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
- package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
- 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/utils.d.ts +40 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
- package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
- package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
- package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
- package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
- package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
- package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
- package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
- package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
- package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
- package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
- package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
- package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
- package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
- package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
- package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
- package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
- package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
- package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
- package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
- package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
- package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
- package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
- package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
- package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
- package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
- package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
- package/package.json +2 -2
- package/dist/Slicer-CW_XPIKL.js +0 -1150
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -14,40 +14,40 @@ function e(e, t = []) {
|
|
|
14
14
|
})
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
var t =
|
|
18
|
-
function
|
|
17
|
+
var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
18
|
+
function r(e) {
|
|
19
19
|
return e * Math.PI / 180;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return Math.round(e *
|
|
21
|
+
function i(e) {
|
|
22
|
+
return Math.round(e * 100) / 100;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function a(e, t) {
|
|
25
25
|
return {
|
|
26
26
|
cx: e / 2,
|
|
27
|
-
cy:
|
|
28
|
-
radius: Math.min(e,
|
|
27
|
+
cy: t / 2,
|
|
28
|
+
radius: Math.min(e, t) / 2 * .95
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
let [
|
|
31
|
+
function o(e, t, n = [0, 0]) {
|
|
32
|
+
let [i, o] = n, s = r(o);
|
|
33
33
|
return {
|
|
34
|
-
...
|
|
35
|
-
lon0Rad:
|
|
36
|
-
sinLat0: Math.sin(
|
|
37
|
-
cosLat0: Math.cos(
|
|
34
|
+
...a(e, t),
|
|
35
|
+
lon0Rad: r(i),
|
|
36
|
+
sinLat0: Math.sin(s),
|
|
37
|
+
cosLat0: Math.cos(s)
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
let n =
|
|
40
|
+
function s([e, t]) {
|
|
41
|
+
let n = r(t);
|
|
42
42
|
return {
|
|
43
43
|
lon: e,
|
|
44
44
|
lat: t,
|
|
45
|
-
lonRad:
|
|
45
|
+
lonRad: r(e),
|
|
46
46
|
sinLat: Math.sin(n),
|
|
47
47
|
cosLat: Math.cos(n)
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function c(e, t) {
|
|
51
51
|
let n = e.lonRad - t.lon0Rad, r = Math.sin(n), i = Math.cos(n);
|
|
52
52
|
return {
|
|
53
53
|
x: e.cosLat * r,
|
|
@@ -55,86 +55,86 @@ function f(e, t) {
|
|
|
55
55
|
z: t.sinLat0 * e.sinLat + t.cosLat0 * e.cosLat * i
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function l(e, t = [0, 0]) {
|
|
59
|
+
return c(s(e), o(1, 1, t));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
let { cx: r, cy: i, radius:
|
|
61
|
+
function u(e, t, n = 10) {
|
|
62
|
+
let { cx: r, cy: i, radius: o } = a(e, t), s = r - o - n, c = i - o - n, l = r + o + n, u = i + o + n;
|
|
63
63
|
return {
|
|
64
|
-
minX: Math.floor(
|
|
65
|
-
minY: Math.floor(
|
|
66
|
-
width: Math.ceil(
|
|
67
|
-
height: Math.ceil(u -
|
|
64
|
+
minX: Math.floor(s),
|
|
65
|
+
minY: Math.floor(c),
|
|
66
|
+
width: Math.ceil(l - s),
|
|
67
|
+
height: Math.ceil(u - c)
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function d(e, t) {
|
|
71
|
+
return c(e, t).z >= -1e-9;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
73
|
+
function f(e, t = [0, 0]) {
|
|
74
|
+
return l(e, t).z >= -1e-9;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
let
|
|
78
|
-
if (
|
|
79
|
-
if (!
|
|
80
|
-
let e = Math.hypot(
|
|
81
|
-
return !Number.isFinite(e) || e <=
|
|
76
|
+
function p(e, t, n = !1) {
|
|
77
|
+
let r = c(e, t);
|
|
78
|
+
if (r.z < -1e-9) {
|
|
79
|
+
if (!n) return [NaN, NaN];
|
|
80
|
+
let e = Math.hypot(r.x, r.y);
|
|
81
|
+
return !Number.isFinite(e) || e <= 1e-9 ? [NaN, NaN] : [t.cx + t.radius * (r.x / e), t.cy - t.radius * (r.y / e)];
|
|
82
82
|
}
|
|
83
|
-
return [t.cx + t.radius *
|
|
83
|
+
return [t.cx + t.radius * r.x, t.cy - t.radius * r.y];
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function m(e, t, n, r = [0, 0], i = !1) {
|
|
86
|
+
return p(s(e), o(t, n, r), i);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function h(e) {
|
|
89
89
|
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
let r =
|
|
93
|
-
return
|
|
91
|
+
function g(e, t, n) {
|
|
92
|
+
let r = h(t.lon - e.lon);
|
|
93
|
+
return s([e.lon + r * n, e.lat + (t.lat - e.lat) * n]);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
let
|
|
97
|
-
for (let
|
|
98
|
-
let
|
|
99
|
-
|
|
95
|
+
function _(e, t, n) {
|
|
96
|
+
let r = 0, i = 1, a = d(e, n);
|
|
97
|
+
for (let o = 0; o < 24; o += 1) {
|
|
98
|
+
let o = (r + i) / 2;
|
|
99
|
+
d(g(e, t, o), n) === a ? r = o : i = o;
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return g(e, t, (r + i) / 2);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function v(e, t) {
|
|
104
104
|
return Math.abs(e[0] - t[0]) < 1e-12 && Math.abs(e[1] - t[1]) < 1e-12;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function y(e) {
|
|
107
107
|
if (!Array.isArray(e)) return [];
|
|
108
|
-
let
|
|
109
|
-
if (
|
|
110
|
-
let
|
|
108
|
+
let n = t.get(e);
|
|
109
|
+
if (n) return n;
|
|
110
|
+
let r = [];
|
|
111
111
|
for (let t of e) {
|
|
112
|
-
let e =
|
|
113
|
-
(!e || !
|
|
112
|
+
let e = r[r.length - 1];
|
|
113
|
+
(!e || !v(e, t)) && r.push(t);
|
|
114
114
|
}
|
|
115
|
-
return
|
|
115
|
+
return r.length > 1 && v(r[0], r[r.length - 1]) && r.pop(), t.set(e, r), r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function b(e) {
|
|
118
118
|
if (!Array.isArray(e)) return [];
|
|
119
|
-
let t =
|
|
119
|
+
let t = n.get(e);
|
|
120
120
|
if (t) return t;
|
|
121
|
-
let
|
|
122
|
-
return
|
|
121
|
+
let r = y(e).map(s);
|
|
122
|
+
return n.set(e, r), r;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
let t = "", n = 0, r = null,
|
|
126
|
-
for (let
|
|
127
|
-
if (!
|
|
128
|
-
let e =
|
|
129
|
-
r !== null && Math.abs(r - e) < 1e-8 && Math.abs(
|
|
124
|
+
function x(e) {
|
|
125
|
+
let t = "", n = 0, r = null, a = null;
|
|
126
|
+
for (let o of e) {
|
|
127
|
+
if (!o || !Number.isFinite(o[0]) || !Number.isFinite(o[1])) continue;
|
|
128
|
+
let e = i(o[0]), s = i(o[1]);
|
|
129
|
+
r !== null && Math.abs(r - e) < 1e-8 && Math.abs(a - s) < 1e-8 || (t += n === 0 ? `M${e},${s}` : `L${e},${s}`, r = e, a = s, n += 1);
|
|
130
130
|
}
|
|
131
131
|
return n < 3 ? "" : `${t}Z`;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
let n =
|
|
133
|
+
function S(e, t) {
|
|
134
|
+
let n = b(e), r = n.length;
|
|
135
135
|
if (r < 3) return "";
|
|
136
136
|
let i = Array(r), a = !1, o = !1;
|
|
137
|
-
for (let e = 0; e < r; e += 1) i[e] =
|
|
137
|
+
for (let e = 0; e < r; e += 1) i[e] = d(n[e], t), i[e] && (a = !0);
|
|
138
138
|
for (let e = 0; e < r; e += 1) {
|
|
139
139
|
let t = (e - 1 + r) % r;
|
|
140
140
|
if (i[e] !== i[t]) {
|
|
@@ -147,22 +147,22 @@ function E(e, t) {
|
|
|
147
147
|
for (let e = 0; e < r; e += 1) {
|
|
148
148
|
let a = n[e], o = n[(e - 1 + r) % r], c = i[e];
|
|
149
149
|
if (i[(e - 1 + r) % r] !== c) {
|
|
150
|
-
let e =
|
|
151
|
-
s.push(
|
|
150
|
+
let e = _(o, a, t);
|
|
151
|
+
s.push(p(e, t, !1));
|
|
152
152
|
}
|
|
153
|
-
s.push(
|
|
153
|
+
s.push(p(a, t, !c));
|
|
154
154
|
}
|
|
155
|
-
return
|
|
155
|
+
return x(s);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function C(e, t, n, r, i = [0, 0]) {
|
|
158
|
+
return x(y(e).map((e) => t(e, n, r, i)));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function w(e, { projection: t = "globe", width: n, height: r, center: i = [0, 0] } = {}) {
|
|
161
161
|
if (!e || !n || !r) return "";
|
|
162
|
-
let a =
|
|
163
|
-
return e.type === "Polygon" ?
|
|
162
|
+
let a = T[t] || T.globe, s = t === "globe" ? o(n, r, i) : null, c = (e) => e.map((e) => t === "globe" ? S(e, s) : C(e, a, n, r, i)).filter(Boolean).join(" ");
|
|
163
|
+
return e.type === "Polygon" ? c(e.coordinates) : e.type === "MultiPolygon" ? e.coordinates.map(c).filter(Boolean).join(" ") : "";
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var T = {
|
|
166
166
|
mercator([e, t], n, r, i) {
|
|
167
167
|
t = Math.max(Math.min(t, 85.05113), -85.05113);
|
|
168
168
|
let [a, o] = i, s = (e - a) * Math.PI / 180, c = n / (2 * Math.PI) * (s + Math.PI), l = (e) => Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 180 / 2)), u = l(85.05113), d = l(-72);
|
|
@@ -245,15 +245,15 @@ var k = {
|
|
|
245
245
|
return [h + f * m, g - p * m];
|
|
246
246
|
},
|
|
247
247
|
globe(e, t, n, r = [0, 0]) {
|
|
248
|
-
return
|
|
248
|
+
return m(e, t, n, r, !1);
|
|
249
249
|
},
|
|
250
250
|
azimuthalEquidistant([e, t], n, r, i = [0, 0]) {
|
|
251
251
|
let a = (e) => e * Math.PI / 180, [o, s] = i, c = a(e - o), l = a(t), u = a(s), d = Math.sin(u) * Math.sin(l) + Math.cos(u) * Math.cos(l) * Math.cos(c), f = Math.acos(Math.max(-1, Math.min(1, d))), p = f === 0 ? 1 : f / Math.sin(f), m = p * Math.cos(l) * Math.sin(c), h = p * (Math.cos(u) * Math.sin(l) - Math.sin(u) * Math.cos(l) * Math.cos(c)), g = Math.min(n, r) / 2 / Math.PI, _ = n / 2, v = r / 2;
|
|
252
252
|
return [_ + m * g, v - h * g];
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
function
|
|
256
|
-
if (e ===
|
|
255
|
+
function E(e, t, n, r, i = [0, 0]) {
|
|
256
|
+
if (e === T.globe) return u(n, r);
|
|
257
257
|
let a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
|
|
258
258
|
for (let l of t) {
|
|
259
259
|
let t = l.geometry, u = t.type === "Polygon" ? [t.coordinates] : t.type === "MultiPolygon" ? t.coordinates : [];
|
|
@@ -274,29 +274,29 @@ function A(e, t, n, r, i = [0, 0]) {
|
|
|
274
274
|
height: Math.ceil(c - o) + 20
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function D(e, t, n) {
|
|
278
278
|
let r = e.find((e) => e.properties.admin === t || e.properties.name === t), i = e.find((e) => e.properties.admin === n || e.properties.name === n);
|
|
279
279
|
return r && i && (r.geometry.type === "Polygon" && (r.geometry = {
|
|
280
280
|
type: "MultiPolygon",
|
|
281
281
|
coordinates: [r.geometry.coordinates]
|
|
282
282
|
}), i.geometry.type === "Polygon" ? r.geometry.coordinates.push(i.geometry.coordinates) : i.geometry.type === "MultiPolygon" && r.geometry.coordinates.push(...i.geometry.coordinates), e = e.filter((e) => !(e.properties.admin === n || e.properties.name === n))), e;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function O(e, t) {
|
|
285
285
|
let n = Array.isArray(t) ? t.map((e) => ({ ...e })) : t.features ? t.features.map((e) => ({ ...e })) : [];
|
|
286
|
-
return e.style.chart.territory.showTaiwanAsPartOfChina && (n =
|
|
286
|
+
return e.style.chart.territory.showTaiwanAsPartOfChina && (n = D(n, "China", "Taiwan")), t.type === "FeatureCollection" ? {
|
|
287
287
|
...t,
|
|
288
288
|
features: n
|
|
289
289
|
} : n;
|
|
290
290
|
}
|
|
291
|
-
var
|
|
292
|
-
projections:
|
|
293
|
-
getProjectedBounds:
|
|
294
|
-
setupTerritories:
|
|
291
|
+
var k = {
|
|
292
|
+
projections: T,
|
|
293
|
+
getProjectedBounds: E,
|
|
294
|
+
setupTerritories: O,
|
|
295
295
|
simplifyGeoJSON: e,
|
|
296
|
-
geoToPath:
|
|
297
|
-
getGlobeMetrics:
|
|
298
|
-
getGlobeBounds:
|
|
299
|
-
isGlobePointVisible:
|
|
296
|
+
geoToPath: w,
|
|
297
|
+
getGlobeMetrics: a,
|
|
298
|
+
getGlobeBounds: u,
|
|
299
|
+
isGlobePointVisible: f
|
|
300
300
|
};
|
|
301
301
|
//#endregion
|
|
302
|
-
export {
|
|
302
|
+
export { k as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./dom-to-png-
|
|
2
|
+
import { t } from "./dom-to-png-BdAFKZQg.js";
|
|
3
3
|
//#region src/img.js
|
|
4
4
|
var n = /* @__PURE__ */ e({ default: () => f }), r = "[data-dom-to-png-ignore-layout]";
|
|
5
5
|
function i() {
|