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