vue-data-ui 3.22.10 → 3.22.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-Ku6rQ87g.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-CdkCqtag.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-CDTIUIKV.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-BrQ2OlzI.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-CkEX0292.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-C959ZIW9.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-ByZy5gt1.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-5VQGLnmx.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bd8OzTqw.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-BoTvk0i5.js → PackageVersion-Di3tpYst.js} +1 -1
- package/dist/{PenAndPaper-CLaZJl6K.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-B5ksaGa1.js → Shape-BfnXr1nJ.js} +1 -1
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/SlicerPreview-Cw6WMVhG.js +1689 -0
- package/dist/{SparkTooltip-CbYYc-xb.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-Cr3jP7Qd.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CDbLl3TD.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-BUQOnoPR.js → UserOptions-DzAFK9cY.js} +442 -441
- 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-COPbGrdd.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/{exposedLib-CZbtc2a6.js → exposedLib-Ciw6TGtP.js} +1 -1
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-CNdXiUfZ.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-JaoYKi2N.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-CnHx5WfV.js → lib-CFm_J26b.js} +3 -3
- package/dist/{package-BRBLwZUc.js → package-Bmet7oRZ.js} +1 -1
- package/dist/{pdf-CEMzBeuV.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-DJXFRGhU.js → render-common-Bdolvm-Q.js} +2 -2
- 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/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +27 -9
- package/dist/{useAutoSizeLabelsInsideViewbox-BUPt2iaP.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/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{useNestedProp-D8NuRneO.js → useNestedProp-BY6DNN3i.js} +1 -1
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-B-X_Pub0.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 +3 -3
- package/dist/{vue-data-ui-Bx_8d3b_.js → vue-data-ui-DfU5hAaT.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-CfUfbpSE.js → vue-ui-3d-bar--HLw40qY.js} +9 -10
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-DD-4y5Jd.js → vue-ui-age-pyramid-Bd_ubvoh.js} +9 -10
- package/dist/{vue-ui-annotator-BvGE3lzE.js → vue-ui-annotator-q3ZKx6ua.js} +15 -9
- package/dist/{vue-ui-bullet-DYOdbaO2.js → vue-ui-bullet-CM2jgN74.js} +10 -11
- package/dist/{vue-ui-bump-B8fJoxHF.js → vue-ui-bump-DvShTelE.js} +10 -11
- package/dist/{vue-ui-candlestick-BUP1JoNs.js → vue-ui-candlestick-CK9Na9KB.js} +474 -474
- package/dist/{vue-ui-carousel-table-D-Bwhydt.js → vue-ui-carousel-table-BxORSyv1.js} +5 -5
- package/dist/{vue-ui-chestnut-C2VK2NEx.js → vue-ui-chestnut-tW2ZnqwW.js} +11 -11
- package/dist/{vue-ui-chord-AA-QjUQI.js → vue-ui-chord-DqKCW4Pl.js} +11 -12
- package/dist/{vue-ui-circle-pack-CdBFGYOK.js → vue-ui-circle-pack-kmzEbu7G.js} +21 -25
- package/dist/{vue-ui-cursor-Cm_J_5Gk.js → vue-ui-cursor-SvEAxNKD.js} +4 -4
- package/dist/{vue-ui-dag-CgRph4-n.js → vue-ui-dag-DZGUw98x.js} +16 -14
- package/dist/{vue-ui-dashboard-BuPw5QjB.js → vue-ui-dashboard-BzzECKaL.js} +71 -72
- package/dist/{vue-ui-digits-ClrukmcB.js → vue-ui-digits-CKWMJqU_.js} +4 -4
- package/dist/{vue-ui-donut-Bc-EPZvu.js → vue-ui-donut-BWbuCT47.js} +17 -18
- package/dist/{vue-ui-donut-DtQCrMKL.js → vue-ui-donut-DjdH53Zj.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DHkiY-BD.js → vue-ui-donut-evolution-CJNnXg31.js} +357 -362
- package/dist/{vue-ui-dumbbell-BlHEH4Mw.js → vue-ui-dumbbell-BUyfJOxH.js} +13 -13
- package/dist/{vue-ui-flow-PjwAW2tY.js → vue-ui-flow-C39C5dvl.js} +10 -11
- package/dist/{vue-ui-funnel-DojI09FV.js → vue-ui-funnel-_aMNVUkP.js} +9 -10
- package/dist/{vue-ui-galaxy-txYIK_LG.js → vue-ui-galaxy-Dng0GSjQ.js} +12 -13
- package/dist/{vue-ui-gauge-CoL0OzSd.js → vue-ui-gauge-BmZPLW3e.js} +10 -11
- package/dist/{vue-ui-geo-yuL-_sqF.js → vue-ui-geo-BOx-pK_5.js} +15 -14
- package/dist/{vue-ui-gizmo-CbC5zV3K.js → vue-ui-gizmo-BCGwhNna.js} +4 -4
- package/dist/{vue-ui-heatmap-CwqsZIsR.js → vue-ui-heatmap-BORjgllw.js} +12 -13
- package/dist/{vue-ui-history-plot-CuWssH-D.js → vue-ui-history-plot-DY3fqgIY.js} +11 -12
- package/dist/{vue-ui-horizontal-bar-Dyje3GND.js → vue-ui-horizontal-bar-C8f4PisL.js} +17 -17
- package/dist/{vue-ui-kpi-BdYenScF.js → vue-ui-kpi-BdhXSBIJ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BbwE3vBT.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/{vue-ui-molecule-BBh31vmd.js → vue-ui-molecule-PlmDykKX.js} +9 -8
- package/dist/{vue-ui-mood-radar-B_6GFlaR.js → vue-ui-mood-radar-C9LTAt_c.js} +10 -11
- package/dist/{vue-ui-nested-donuts-BWq-At5Y.js → vue-ui-nested-donuts-F5OXPxvU.js} +12 -13
- package/dist/{vue-ui-onion-BwGbSE-6.js → vue-ui-onion-D1-j-pvW.js} +13 -14
- package/dist/{vue-ui-parallel-coordinate-plot-Bh9hNoqf.js → vue-ui-parallel-coordinate-plot-Vb_QjRp5.js} +303 -307
- package/dist/{vue-ui-quadrant-B72Y4Zuw.js → vue-ui-quadrant-DMFawnHm.js} +19 -18
- package/dist/{vue-ui-quick-chart-B3LF2ViM.js → vue-ui-quick-chart-BF5fKxY2.js} +606 -632
- package/dist/{vue-ui-radar-4v_E8oGX.js → vue-ui-radar-D91pCqhn.js} +12 -13
- package/dist/{vue-ui-rating-CzLGCFWK.js → vue-ui-rating-DbxK-ftN.js} +3 -3
- package/dist/{vue-ui-relation-circle-B_8dyIv2.js → vue-ui-relation-circle-DfxvnOs6.js} +14 -21
- package/dist/{vue-ui-ridgeline-BArLhskj.js → vue-ui-ridgeline-BOL0m1mR.js} +13 -14
- package/dist/{vue-ui-rings-Csn5BgLk.js → vue-ui-rings-4RxAaMo4.js} +13 -14
- package/dist/vue-ui-scatter-Bs1wek00.js +2409 -0
- package/dist/{vue-ui-skeleton-KeIPGp9U.js → vue-ui-skeleton-B84nELF_.js} +4 -4
- package/dist/{vue-ui-smiley-C1mYDh4R.js → vue-ui-smiley-Da2jgkb7.js} +3 -3
- package/dist/{vue-ui-spark-trend-EqCqmHmU.js → vue-ui-spark-trend-BR-qkwJ6.js} +6 -7
- package/dist/{vue-ui-sparkbar-BPh45vBP.js → vue-ui-sparkbar-DghCbhj2.js} +51 -54
- package/dist/{vue-ui-sparkgauge-CtouPcyW.js → vue-ui-sparkgauge-DbeTbrxx.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-D4sI0DHN.js → vue-ui-sparkhistogram-B2xSQyOp.js} +7 -8
- package/dist/{vue-ui-sparkline-BDFZ78Fz.js → vue-ui-sparkline-D3xRMcy9.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CbTXIfxm.js → vue-ui-sparkstackbar-D8z8fVFZ.js} +5 -5
- package/dist/vue-ui-stackbar-B63-UgSr.js +2322 -0
- package/dist/{vue-ui-stackline-CzfXl5ah.js → vue-ui-stackline-Dukmj3yT.js} +588 -586
- package/dist/vue-ui-strip-plot-Bws0p7tP.js +1736 -0
- package/dist/{vue-ui-table-BAKkFXki.js → vue-ui-table-dxCS6ztG.js} +12 -11
- package/dist/{vue-ui-table-heatmap-CUMxqHKK.js → vue-ui-table-heatmap-CSI482KG.js} +9 -15
- package/dist/{vue-ui-table-sparkline-BVTm16fd.js → vue-ui-table-sparkline-C-XgNV1l.js} +10 -8
- package/dist/{vue-ui-thermometer-CGeEW1KV.js → vue-ui-thermometer-BUKge0w8.js} +10 -11
- package/dist/{vue-ui-timer-Bz7EnsM1.js → vue-ui-timer-CCd3pznw.js} +7 -8
- package/dist/{vue-ui-tiremarks-IOqtk_Rr.js → vue-ui-tiremarks-CG5X5rgi.js} +9 -10
- package/dist/{vue-ui-treemap-JxNNtb7v.js → vue-ui-treemap-CNVB8Ng6.js} +501 -492
- package/dist/{vue-ui-waffle-D34mcJWi.js → vue-ui-waffle-DH5Rf1WM.js} +13 -14
- package/dist/{vue-ui-wheel-B_qEhyvk.js → vue-ui-wheel-BzEkxqDz.js} +10 -11
- package/dist/{vue-ui-word-cloud-TtObhd91.js → vue-ui-word-cloud-DbfGZ-hb.js} +15 -12
- package/dist/{vue-ui-world-R9o00A6c.js → vue-ui-world-CL6KcPcv.js} +10 -10
- package/dist/{vue-ui-xy-Do34-UbE.js → vue-ui-xy-4Xp7UoLs.js} +9 -9
- package/dist/{vue-ui-xy-CUt6sU1s.js → vue-ui-xy-BAmxfSSw.js} +1269 -1266
- package/dist/{vue-ui-xy-canvas-C6eRRH--.js → vue-ui-xy-canvas-7YSYRdwr.js} +27 -27
- package/package.json +3 -3
- package/dist/Slicer-WsWTQPKt.js +0 -1150
- package/dist/SlicerPreview-3n516NyE.js +0 -1688
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-accordion-Oo3IsX3-.js +0 -81
- package/dist/vue-ui-scatter-BBaOx94M.js +0 -2422
- package/dist/vue-ui-stackbar-nMXIY9x8.js +0 -2339
- package/dist/vue-ui-strip-plot-BCf5nthl.js +0 -1736
|
@@ -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() {
|
|
@@ -811,7 +811,7 @@ function Fe(e) {
|
|
|
811
811
|
return typeof e.apply(null, arguments) == "string";
|
|
812
812
|
}
|
|
813
813
|
function Ie(e) {
|
|
814
|
-
return Array.isArray(e) ? e.length === 0 : e
|
|
814
|
+
return Array.isArray(e) ? e.length === 0 : !e || Object.keys(e).length === 0;
|
|
815
815
|
}
|
|
816
816
|
function Le({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
817
817
|
if (!s) return;
|
|
@@ -1784,7 +1784,7 @@ function Ft(e, t, n = {}) {
|
|
|
1784
1784
|
cancelable: !0,
|
|
1785
1785
|
composed: !0,
|
|
1786
1786
|
...n
|
|
1787
|
-
}, i = new Set([
|
|
1787
|
+
}, i = /* @__PURE__ */ new Set([
|
|
1788
1788
|
"click",
|
|
1789
1789
|
"mousedown",
|
|
1790
1790
|
"mouseup",
|
|
@@ -1795,7 +1795,7 @@ function Ft(e, t, n = {}) {
|
|
|
1795
1795
|
"mouseleave",
|
|
1796
1796
|
"dblclick",
|
|
1797
1797
|
"contextmenu"
|
|
1798
|
-
]), a = new Set([
|
|
1798
|
+
]), a = /* @__PURE__ */ new Set([
|
|
1799
1799
|
"keydown",
|
|
1800
1800
|
"keyup",
|
|
1801
1801
|
"keypress"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./dom-to-png-
|
|
1
|
+
import { t as e } from "./dom-to-png-BdAFKZQg.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 { R as e, j as t, nt as n, tt as r, x as i } from "./lib-
|
|
2
|
-
import { t as a } from "./package-
|
|
1
|
+
import { R as e, j as t, nt as n, tt as r, x as i } from "./lib-CFm_J26b.js";
|
|
2
|
+
import { t as a } from "./package-Bmet7oRZ.js";
|
|
3
3
|
//#region src/svg/utils/index.js
|
|
4
4
|
function o(e, t = 0) {
|
|
5
5
|
let n = Number(e);
|
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-DjdH53Zj.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-4Xp7UoLs.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-4Xp7UoLs.js";
|
|
2
|
+
import { t } from "./vue-ui-donut-DjdH53Zj.js";
|
|
3
3
|
export { t as createStaticVueUiDonut, e as createStaticVueUiXy };
|