vue-data-ui 3.22.7 → 3.22.9

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 (206) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
  3. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
  11. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
  12. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
  13. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  14. package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
  15. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
  16. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  17. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  18. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  19. package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
  90. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  91. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  92. package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
  93. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  94. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  95. package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
  96. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  97. package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/utils.d.ts +18 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  104. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  105. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  106. package/dist/utils.js +24 -24
  107. package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
  108. package/dist/vue-data-ui.js +77 -77
  109. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  110. package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
  111. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
  112. package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
  113. package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
  114. package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
  115. package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
  116. package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
  117. package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
  118. package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
  120. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
  121. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
  122. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
  123. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
  124. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
  125. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
  126. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
  127. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
  128. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
  129. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  130. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
  131. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  132. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
  133. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  134. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
  135. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
  136. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
  137. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  139. package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
  140. package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
  141. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
  142. package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
  143. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
  144. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
  145. package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
  146. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
  147. package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
  148. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
  149. package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
  150. package/dist/vue-ui-rings-J990vNbX.js +1252 -0
  151. package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
  152. package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
  153. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
  154. package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
  155. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  156. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
  157. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  158. package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
  159. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
  160. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
  161. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  162. package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
  165. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
  166. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  167. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
  168. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
  169. package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
  170. package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
  171. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
  172. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
  173. package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
  174. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
  175. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
  176. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
  177. package/package.json +1 -1
  178. package/dist/BaseIcon-_-BX7be3.js +0 -502
  179. package/dist/exposedLib-Be0ifkti.js +0 -19
  180. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  182. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  183. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  184. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  185. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  186. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  187. package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
  188. package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
  189. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  190. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  191. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  192. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  193. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  194. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
  198. package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
  199. package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
  200. package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
  201. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  202. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  203. package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
  204. package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
  205. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  206. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -1,8 +1,8 @@
1
- import { $ as e, A as t, B as n, D as r, E as i, Gt as a, H as o, It as s, L as c, Lt as l, N as u, P as d, R as f, Rt as p, Ut as m, W as h, a as g, b as _, c as v, g as y, h as b, ht as x, i as S, j as ee, jt as C, q as w, s as te, t as T, z as E } from "./lib-EAmk-PgA.js";
1
+ import { B as e, D as t, F as n, G as r, J as i, Kt as a, Lt as o, M as s, Mt as c, O as l, P as u, R as d, Rt as f, U as p, V as m, Wt as h, a as g, b as _, c as v, et as y, g as b, gt as x, h as S, i as C, j as w, s as ee, t as te, z as T, zt as E } from "./lib-JqW18y5I.js";
2
2
  import { t as D } from "./useTimeLabels-BmBRv27Y.js";
3
3
  import { t as O } from "./useConfig-DYM3f6EI.js";
4
4
  import { t as ne } from "./vue_ui_xy-BA3-_LCx.js";
5
- import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-DMai0gHB.js";
5
+ import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-D18VrP0h.js";
6
6
  //#region src/svg/vue-ui-xy/create.js
7
7
  var { vue_ui_xy: z } = O();
8
8
  function re({ config: e = {}, dataset: t = [] } = {}) {
@@ -23,7 +23,7 @@ function re({ config: e = {}, dataset: t = [] } = {}) {
23
23
  let i = r.theme;
24
24
  if (!i) return {
25
25
  ...r,
26
- customPalette: r.customPalette?.length ? r.customPalette : C
26
+ customPalette: r.customPalette?.length ? r.customPalette : c
27
27
  };
28
28
  let o = a({
29
29
  userConfig: n,
@@ -34,7 +34,7 @@ function re({ config: e = {}, dataset: t = [] } = {}) {
34
34
  });
35
35
  return {
36
36
  ...o,
37
- customPalette: o.customPalette?.length ? o.customPalette : m[i] || C
37
+ customPalette: o.customPalette?.length ? o.customPalette : h[i] || c
38
38
  };
39
39
  }
40
40
  function B(e) {
@@ -54,7 +54,7 @@ function oe({ dataset: e, config: t }) {
54
54
  ticks: [0, 1]
55
55
  };
56
56
  let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n);
57
- return b(a === o ? a - 1 : a, a === o ? o + 1 : o, Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6);
57
+ return S(a === o ? a - 1 : a, a === o ? o + 1 : o, Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6);
58
58
  }
59
59
  function se({ xValue: e, xScale: t, drawingArea: n, config: r }) {
60
60
  let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
@@ -64,41 +64,41 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
64
64
  let s = re({
65
65
  config: t,
66
66
  dataset: e
67
- }), c = {
67
+ }), l = {
68
68
  top: s.chart.padding.top,
69
69
  left: s.chart.padding.left,
70
70
  right: n - s.chart.padding.right,
71
71
  bottom: r - s.chart.padding.bottom
72
72
  };
73
- c.width = c.right - c.left, c.height = c.bottom - c.top;
74
- let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = b(Math.min(0, ...l), Math.max(1, ...l), 6), d = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), f = d ? oe({
73
+ l.width = l.right - l.left, l.height = l.bottom - l.top;
74
+ let u = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), d = S(Math.min(0, ...u), Math.max(1, ...u), 6), f = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), p = f ? oe({
75
75
  dataset: e,
76
76
  config: s
77
- }) : null, p = Math.max(0, ...e.map((e) => e.series?.length || 0)), m = (e) => p <= 1 ? c.left + c.width / 2 : c.left + e / (p - 1) * c.width, h = (e, t) => d ? B(e) ? se({
77
+ }) : null, m = Math.max(0, ...e.map((e) => e.series?.length || 0)), h = (e) => m <= 1 ? l.left + l.width / 2 : l.left + e / (m - 1) * l.width, g = (e, t) => f ? B(e) ? se({
78
78
  xValue: e.x,
79
- xScale: f,
80
- drawingArea: c,
79
+ xScale: p,
80
+ drawingArea: l,
81
81
  config: s
82
- }) : null : m(t), g = (e) => {
83
- let t = (Number(e) - u.min) / (u.max - u.min || 1);
84
- return c.bottom - t * c.height;
85
- }, v = Array.isArray(s.customPalette) ? s.customPalette : [], y = v.length ? v : C;
82
+ }) : null : h(t), v = (e) => {
83
+ let t = (Number(e) - d.min) / (d.max - d.min || 1);
84
+ return l.bottom - t * l.height;
85
+ }, y = Array.isArray(s.customPalette) ? s.customPalette : [], b = y.length ? y : c;
86
86
  return {
87
87
  width: n,
88
88
  height: r,
89
89
  selectedXIndex: i,
90
90
  dataset: e,
91
91
  config: s,
92
- drawingArea: c,
93
- scale: u,
94
- xScale: f,
95
- isContinuous: d,
92
+ drawingArea: l,
93
+ scale: d,
94
+ xScale: p,
95
+ isContinuous: f,
96
96
  series: e.map((e, t) => {
97
- let n = (e.color ? _(e.color) : "") || y[t % y.length], r = (e.series || []).map((e, t) => {
97
+ let n = (e.color ? _(e.color) : "") || b[t % b.length], r = (e.series || []).map((e, t) => {
98
98
  let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
99
99
  return {
100
- x: h(e, t),
101
- y: n === null || !Number.isFinite(Number(n)) ? null : g(n),
100
+ x: g(e, t),
101
+ y: n === null || !Number.isFinite(Number(n)) ? null : v(n),
102
102
  value: n,
103
103
  index: t,
104
104
  rawX: B(e) ? Number(e.x) : null,
@@ -183,7 +183,7 @@ function U(e) {
183
183
  let { drawingArea: t, scale: n } = e, r = (0 - n.min) / (n.max - n.min || 1);
184
184
  return t.bottom - r * t.height;
185
185
  }
186
- var ve = h();
186
+ var ve = r();
187
187
  function W(e) {
188
188
  return ve;
189
189
  }
@@ -208,7 +208,7 @@ function Ce(e, t, n) {
208
208
  }
209
209
  function we(e, t, n) {
210
210
  let { config: r } = e;
211
- return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : l(t.color, k(I(r, "line.area.opacity", 30), 30));
211
+ return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : f(t.color, k(I(r, "line.area.opacity", 30), 30));
212
212
  }
213
213
  function K(e, t, n, r) {
214
214
  return I(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
@@ -227,11 +227,11 @@ function Te(e, t) {
227
227
  }),
228
228
  A("stop", {
229
229
  offset: "62%",
230
- "stop-color": p(_(t.color), .02)
230
+ "stop-color": E(_(t.color), .02)
231
231
  }),
232
232
  A("stop", {
233
233
  offset: "100%",
234
- "stop-color": p(_(t.color), .05)
234
+ "stop-color": E(_(t.color), .05)
235
235
  })
236
236
  ].join(""))), r.push(L("linearGradient", {
237
237
  id: G(e, n, "neg"),
@@ -240,11 +240,11 @@ function Te(e, t) {
240
240
  }, [
241
241
  A("stop", {
242
242
  offset: "0%",
243
- "stop-color": p(_(t.color), .05)
243
+ "stop-color": E(_(t.color), .05)
244
244
  }),
245
245
  A("stop", {
246
246
  offset: "38%",
247
- "stop-color": p(_(t.color), .02)
247
+ "stop-color": E(_(t.color), .02)
248
248
  }),
249
249
  A("stop", {
250
250
  offset: "100%",
@@ -261,7 +261,7 @@ function Te(e, t) {
261
261
  fy: "50%"
262
262
  }, [A("stop", {
263
263
  offset: "0%",
264
- "stop-color": p(_(t.color), .05)
264
+ "stop-color": E(_(t.color), .05)
265
265
  }), A("stop", {
266
266
  offset: "100%",
267
267
  "stop-color": _(t.color)
@@ -269,7 +269,7 @@ function Te(e, t) {
269
269
  id: be(e, i),
270
270
  gradientTransform: "rotate(90)"
271
271
  }, t.temperatureColors.map((e, n) => A("stop", {
272
- offset: s(n, t.temperatureColors.length),
272
+ offset: o(n, t.temperatureColors.length),
273
273
  "stop-color": _(e)
274
274
  })).join("")));
275
275
  }), t.filter((e) => e.type === "plot").forEach((t, i) => {
@@ -282,7 +282,7 @@ function Te(e, t) {
282
282
  fy: "50%"
283
283
  }, [A("stop", {
284
284
  offset: "0%",
285
- "stop-color": p(_(t.color), .05)
285
+ "stop-color": E(_(t.color), .05)
286
286
  }), A("stop", {
287
287
  offset: "100%",
288
288
  "stop-color": _(t.color)
@@ -308,13 +308,13 @@ function J(e) {
308
308
  return I(e, "chart.grid.labels.yAxis.position", "left") === "right";
309
309
  }
310
310
  function De(e, t) {
311
- let n = w({
311
+ let n = i({
312
312
  p: I(t, "chart.labels.prefix", ""),
313
313
  v: e,
314
314
  s: I(t, "chart.labels.suffix", ""),
315
315
  r: I(t, "chart.grid.labels.yAxis.rounding", 0)
316
316
  });
317
- return S(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
317
+ return C(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
318
318
  }
319
319
  function Y(e) {
320
320
  return !!I(e, "chart.grid.labels.yAxis.stacked", !1);
@@ -323,7 +323,7 @@ function X(e) {
323
323
  return e != null && Number.isFinite(Number(e));
324
324
  }
325
325
  function Oe(e, t, n, r) {
326
- return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? b(t, n, r) : y(t, n, r);
326
+ return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? S(t, n, r) : b(t, n, r);
327
327
  }
328
328
  function ke(e, t) {
329
329
  let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = I(e, "chart.grid.labels.yAxis.scaleMin", null), i = I(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
@@ -361,15 +361,15 @@ function je(e, t) {
361
361
  ...e,
362
362
  width: i,
363
363
  height: a
364
- }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, _ = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, v = k(I(n, "chart.padding.top", 12), 12), y = k(I(n, "chart.padding.right", 12), 12), b = k(I(n, "chart.padding.bottom", 12), 12), x = k(I(n, "chart.padding.left", 12), 12), S = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), ee = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, w = s.right, te = i - C - w - 6 - x - y, T = {
364
+ }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, _ = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, v = k(I(n, "chart.padding.top", 12), 12), y = k(I(n, "chart.padding.right", 12), 12), b = k(I(n, "chart.padding.bottom", 12), 12), x = k(I(n, "chart.padding.left", 12), 12), S = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), C = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), w = s.left, ee = s.right, te = i - w - ee - 6 - x - y, T = {
365
365
  top: v + _ + d,
366
- right: C + (J(n) ? 0 : ee) + x + te,
366
+ right: w + (J(n) ? 0 : C) + x + te,
367
367
  bottom: a - h - b - S - f,
368
- left: C + (J(n) ? 0 : ee) + x,
368
+ left: w + (J(n) ? 0 : C) + x,
369
369
  width: Math.max(1, te),
370
370
  height: 1,
371
- scaleLabelX: C,
372
- rightScaleLabelX: w,
371
+ scaleLabelX: w,
372
+ rightScaleLabelX: ee,
373
373
  scaleLabelsOffset: s.scaleLabelsOffset,
374
374
  yAxisLabelWidth: s.yAxisLabelWidth,
375
375
  individualOffsetX: 36
@@ -708,13 +708,13 @@ function We(e, t) {
708
708
  return n.left + n.width * o;
709
709
  }
710
710
  function Ge(e, t, n) {
711
- let { config: r } = e, i = w({
711
+ let { config: r } = e, a = i({
712
712
  v: t,
713
713
  p: I(r, "chart.labels.prefix", ""),
714
714
  s: I(r, "chart.labels.suffix", ""),
715
715
  r: I(r, "chart.grid.labels.xAxis.rounding", 0)
716
716
  });
717
- return S(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
717
+ return C(I(r, "chart.grid.labels.xAxis.formatter", null), t, a, {
718
718
  datapoint: t,
719
719
  seriesIndex: null
720
720
  });
@@ -752,7 +752,7 @@ async function Je(e, t) {
752
752
  start: 0,
753
753
  end: i
754
754
  }), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(k(r.modulo, 1), Math.max(1, new Set(s).size));
755
- return te(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
755
+ return ee(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
756
756
  }
757
757
  async function Ye(e, t) {
758
758
  return Z(e) ? Ke(e) : await Je(e, t);
@@ -767,31 +767,31 @@ async function Qe(e, t) {
767
767
  let { config: n, drawingArea: r } = e;
768
768
  if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
769
769
  I(n, "chart.grid.labels.xAxisLabels", {});
770
- let i = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle";
771
- return L("g", { "data-layer": "x-axis-labels" }, l.map((t, n) => {
772
- let l = typeof t == "string" ? t : t?.text;
773
- if (!l) return "";
774
- let d = `translate(${Xe(e, t, n, c)}, ${r.bottom + i * 1.5}), rotate(${s})`;
775
- return String(l).includes("\n") ? L("text", {
770
+ let i = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), o = Ze(e), s = Math.max(1, t[0].plots.length), c = await Ye(e, t), l = o > 0 ? "start" : o < 0 ? "end" : "middle";
771
+ return L("g", { "data-layer": "x-axis-labels" }, c.map((t, n) => {
772
+ let c = typeof t == "string" ? t : t?.text;
773
+ if (!c) return "";
774
+ let u = `translate(${Xe(e, t, n, s)}, ${r.bottom + i * 1.5}), rotate(${o})`;
775
+ return String(c).includes("\n") ? L("text", {
776
776
  class: "vue-data-ui-time-label",
777
777
  "data-cy": "time-label",
778
- "text-anchor": u,
778
+ "text-anchor": l,
779
779
  "font-size": i,
780
780
  fill: a,
781
- transform: d
782
- }, o({
783
- content: String(l),
781
+ transform: u
782
+ }, p({
783
+ content: String(c),
784
784
  fontSize: i,
785
785
  fill: a,
786
786
  x: 0,
787
787
  y: 0
788
- })) : R(l, {
788
+ })) : R(c, {
789
789
  class: "vue-data-ui-time-label",
790
790
  "data-cy": "time-label",
791
- "text-anchor": u,
791
+ "text-anchor": l,
792
792
  "font-size": i,
793
793
  fill: a,
794
- transform: d
794
+ transform: u
795
795
  });
796
796
  }).join(""));
797
797
  }
@@ -895,7 +895,7 @@ function it(e, t) {
895
895
  y2: "100%"
896
896
  }, [A("stop", {
897
897
  offset: "0%",
898
- "stop-color": l(p(_(t.color), .03), r),
898
+ "stop-color": f(E(_(t.color), .03), r),
899
899
  "stop-opacity": 1
900
900
  }), A("stop", {
901
901
  offset: "100%",
@@ -905,29 +905,29 @@ function it(e, t) {
905
905
  return i ? L("defs", {}, i) : "";
906
906
  }
907
907
  function at(e, n) {
908
- let { config: a } = e, o = !!I(a, "line.cutNullValues", !1), s = [];
909
- return n.filter((e) => e.type === "line" && e.useArea).forEach((n, a) => {
910
- let l = M(n.plots), u = l.filter((e) => e && e.value !== null);
911
- if (u.length < 2) return;
912
- let d = Number.isFinite(Number(n.__zeroY)) ? Number(n.__zeroY) : U(e), f = we(e, n, a);
908
+ let { config: r } = e, i = !!I(r, "line.cutNullValues", !1), a = [];
909
+ return n.filter((e) => e.type === "line" && e.useArea).forEach((n, r) => {
910
+ let o = M(n.plots), s = o.filter((e) => e && e.value !== null);
911
+ if (s.length < 2) return;
912
+ let c = Number.isFinite(Number(n.__zeroY)) ? Number(n.__zeroY) : U(e), u = we(e, n, r);
913
913
  if (n.smooth && !n.useStepper) {
914
- t(o ? l : u, d, o).forEach((e) => {
915
- e && s.push(A("path", {
914
+ w(i ? o : s, c, i).forEach((e) => {
915
+ e && a.push(A("path", {
916
916
  d: e,
917
- fill: f,
917
+ fill: u,
918
918
  "data-cy": "datapoint-line-area-smooth"
919
919
  }));
920
920
  });
921
921
  return;
922
922
  }
923
- (n.useStepper ? c(o ? l : u, d) : o ? r(l, d) : i(u, d)).split(";").filter(Boolean).forEach((e) => {
924
- s.push(A("path", {
923
+ (n.useStepper ? d(i ? o : s, c) : i ? l(o, c) : t(s, c)).split(";").filter(Boolean).forEach((e) => {
924
+ a.push(A("path", {
925
925
  d: `M${e}Z`,
926
- fill: f,
926
+ fill: u,
927
927
  "data-cy": "datapoint-line-area-straight"
928
928
  }));
929
929
  });
930
- }), L("g", { "data-layer": "line-areas" }, s.join(""));
930
+ }), L("g", { "data-layer": "line-areas" }, a.join(""));
931
931
  }
932
932
  function ot(e, t) {
933
933
  let n = k(t.slotStartIndex ?? t.startAbs, 0);
@@ -945,23 +945,23 @@ function st(e, t, n, r, i) {
945
945
  "stroke-dasharray": i ? o * 2 : 0
946
946
  });
947
947
  }
948
- function ct(e, t) {
949
- let { config: r } = e, i = t.filter((e) => e.type === "line"), a = !!I(r, "line.cutNullValues", !1), o = [];
950
- return i.forEach((t, i) => {
951
- let s = a ? M(t.plots) : M(t.plots).filter((e) => e.value !== null), l = s.filter((e) => e.value !== null);
952
- if (!(l.length < 2)) {
953
- if (M(t.dashIndices).length > 0 && !t.useStepper) {
954
- let a = ot(t, e);
955
- (t.smooth || I(r, "line.smooth", !1) ? d(s, a) : n(s, a)).forEach((n) => {
956
- n?.path && o.push(st(e, t, i, n.path, !!n.dashed));
948
+ function ct(t, r) {
949
+ let { config: i } = t, a = r.filter((e) => e.type === "line"), o = !!I(i, "line.cutNullValues", !1), c = [];
950
+ return a.forEach((r, a) => {
951
+ let l = o ? M(r.plots) : M(r.plots).filter((e) => e.value !== null), f = l.filter((e) => e.value !== null);
952
+ if (!(f.length < 2)) {
953
+ if (M(r.dashIndices).length > 0 && !r.useStepper) {
954
+ let e = ot(r, t);
955
+ (r.smooth || I(i, "line.smooth", !1) ? n(l, e) : m(l, e)).forEach((e) => {
956
+ e?.path && c.push(st(t, r, a, e.path, !!e.dashed));
957
957
  });
958
958
  return;
959
959
  }
960
- (t.useStepper ? c(s).split(";").filter(Boolean) : [t.smooth || I(r, "line.smooth", !1) ? a ? u(s) : ee(l) : a ? E(s) : f(l, !1, !0)]).forEach((n) => {
961
- n && o.push(st(e, t, i, n, !!t.dashed));
960
+ (r.useStepper ? d(l).split(";").filter(Boolean) : [r.smooth || I(i, "line.smooth", !1) ? o ? u(l) : s(f) : o ? e(l) : T(f, !1, !0)]).forEach((e) => {
961
+ e && c.push(st(t, r, a, e, !!r.dashed));
962
962
  });
963
963
  }
964
- }), L("g", { "data-layer": "lines" }, o.join(""));
964
+ }), L("g", { "data-layer": "lines" }, c.join(""));
965
965
  }
966
966
  function lt(e, t, n) {
967
967
  let { config: r } = e;
@@ -1095,21 +1095,21 @@ function yt(e, t, n, r, i) {
1095
1095
  return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !I(e.config, "dataLabels.show", !0) || !I(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1096
1096
  }
1097
1097
  function bt(e, t, n, r) {
1098
- let { config: i } = e, a = k(I(i, `${r}.labels.fontSize`, I(i, "chart.labels.fontSize", 12)), 12), s = I(i, `${r}.labels.color`, I(i, "chart.color", "#2A2A2A")), c = w({
1099
- p: t.prefix || I(i, "chart.labels.prefix", ""),
1098
+ let { config: a } = e, o = k(I(a, `${r}.labels.fontSize`, I(a, "chart.labels.fontSize", 12)), 12), s = I(a, `${r}.labels.color`, I(a, "chart.color", "#2A2A2A")), c = i({
1099
+ p: t.prefix || I(a, "chart.labels.prefix", ""),
1100
1100
  v: n.value,
1101
- s: t.suffix || I(i, "chart.labels.suffix", ""),
1102
- r: I(i, `${r}.labels.rounding`, 0)
1101
+ s: t.suffix || I(a, "chart.labels.suffix", ""),
1102
+ r: I(a, `${r}.labels.rounding`, 0)
1103
1103
  });
1104
- return o({
1105
- content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${w({
1104
+ return p({
1105
+ content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${i({
1106
1106
  v: n.x,
1107
- r: I(i, "chart.grid.labels.xAxis.rounding", 0)
1108
- })}\ny: ${c}` : S(I(i, `${r}.labels.formatter`, null), n.value, c, {
1107
+ r: I(a, "chart.grid.labels.xAxis.rounding", 0)
1108
+ })}\ny: ${c}` : C(I(a, `${r}.labels.formatter`, null), n.value, c, {
1109
1109
  datapoint: n,
1110
1110
  serie: t
1111
1111
  }),
1112
- fontSize: a,
1112
+ fontSize: o,
1113
1113
  fill: s,
1114
1114
  x: 0,
1115
1115
  y: 0
@@ -1166,28 +1166,28 @@ function Ot(e, t, n) {
1166
1166
  function kt(e, t) {
1167
1167
  return Dt(e, t);
1168
1168
  }
1169
- function At(t, n, r, i, a, o) {
1170
- let { drawingArea: s } = t, c = n.caption ?? {};
1171
- if (!c.text) return "";
1172
- let l = kt(t, o) * a, u = c.width === "auto" ? l : k(c.width, l), d = Ot(t, i, o) - (c.width === "auto" ? 0 : u / 2 - l / 2), f = s.top + k(c.offsetY, 0);
1169
+ function At(e, t, n, r, i, a) {
1170
+ let { drawingArea: o } = e, s = t.caption ?? {};
1171
+ if (!s.text) return "";
1172
+ let c = kt(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = Ot(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
1173
1173
  return L("foreignObject", {
1174
- "data-key": `highlight_area_caption_${r}`,
1175
- x: d,
1176
- y: f,
1177
- width: u,
1174
+ "data-key": `highlight_area_caption_${n}`,
1175
+ x: u,
1176
+ y: d,
1177
+ width: l,
1178
1178
  height: 1,
1179
1179
  overflow: "visible"
1180
1180
  }, L("div", {
1181
1181
  xmlns: "http://www.w3.org/1999/xhtml",
1182
1182
  "data-cy": "highlight-area-caption",
1183
1183
  style: [
1184
- `padding:${k(c.padding, 0)}px`,
1185
- `text-align:${c.textAlign || "center"}`,
1186
- `font-size:${k(c.fontSize, 12)}px`,
1187
- `color:${c.color || "#2A2A2A"}`,
1188
- `font-weight:${c.bold ? "bold" : "normal"}`
1184
+ `padding:${k(s.padding, 0)}px`,
1185
+ `text-align:${s.textAlign || "center"}`,
1186
+ `font-size:${k(s.fontSize, 12)}px`,
1187
+ `color:${s.color || "#2A2A2A"}`,
1188
+ `font-weight:${s.bold ? "bold" : "normal"}`
1189
1189
  ].join(";")
1190
- }, e(c.text)));
1190
+ }, y(s.text)));
1191
1191
  }
1192
1192
  function jt(e, t) {
1193
1193
  let { config: n, drawingArea: r } = e, i = M(I(n, "chart.highlightArea", []));
@@ -1195,24 +1195,24 @@ function jt(e, t) {
1195
1195
  let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Tt(e), s = Et(e, t), c = [];
1196
1196
  return i.forEach((t, n) => {
1197
1197
  if (!t?.show) return;
1198
- let i = k(t.from, 0), u = Math.min(k(t.to, i), a - 1);
1199
- if (u < i) return;
1200
- for (let d = i; d <= u; d += 1) {
1201
- if (d < o || d > s - 1) continue;
1202
- let i = d - o;
1198
+ let i = k(t.from, 0), l = Math.min(k(t.to, i), a - 1);
1199
+ if (l < i) return;
1200
+ for (let u = i; u <= l; u += 1) {
1201
+ if (u < o || u > s - 1) continue;
1202
+ let i = u - o;
1203
1203
  c.push(A("rect", {
1204
1204
  "data-cy": "highlight-area",
1205
- "data-key": `highlight_area_${n}_${d}`,
1205
+ "data-key": `highlight_area_${n}_${u}`,
1206
1206
  x: Ot(e, i, a),
1207
1207
  y: r.top,
1208
1208
  width: kt(e, a),
1209
1209
  height: Math.max(1, r.height),
1210
- fill: l(t.color, k(t.opacity, 20)),
1210
+ fill: f(t.color, k(t.opacity, 20)),
1211
1211
  "pointer-events": "none"
1212
1212
  }));
1213
1213
  }
1214
- let d = Math.max(i, o);
1215
- d <= Math.min(u, s - 1) && c.push(At(e, t, n, d - o, u - i + 1, a));
1214
+ let u = Math.max(i, o);
1215
+ u <= Math.min(l, s - 1) && c.push(At(e, t, n, u - o, l - i + 1, a));
1216
1216
  }), c.length ? L("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
1217
1217
  }
1218
1218
  function Mt(e, t) {
@@ -1244,7 +1244,7 @@ function Ft(e) {
1244
1244
  if (!r.length) return "";
1245
1245
  let i = [];
1246
1246
  return r.forEach((t, r) => {
1247
- let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, u = a.yTop, d = a.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1247
+ let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u, p = Mt(e, l), m = Mt(e, u), h = Number.isFinite(p), g = Number.isFinite(m);
1248
1248
  if (!h && !g) return;
1249
1249
  let _ = [];
1250
1250
  if (h && _.push(A("line", {
@@ -1267,12 +1267,12 @@ function Ft(e) {
1267
1267
  "stroke-dasharray": s.strokeDasharray,
1268
1268
  "stroke-linecap": "round",
1269
1269
  "data-cy": "xy-annotation-y-bottom-line"
1270
- })), f && h && g && _.push(A("rect", {
1270
+ })), d && h && g && _.push(A("rect", {
1271
1271
  x: n.left,
1272
1272
  y: Math.min(p, m),
1273
1273
  width: n.width,
1274
1274
  height: Math.abs(p - m),
1275
- fill: l(c.fill, k(c.opacity, 20)),
1275
+ fill: f(c.fill, k(c.opacity, 20)),
1276
1276
  "data-cy": "xy-annotation-y-area",
1277
1277
  "pointer-events": "none"
1278
1278
  })), o.text) {
@@ -1326,7 +1326,7 @@ async function Lt(e) {
1326
1326
  }, i), o = a.series;
1327
1327
  return `
1328
1328
  <svg
1329
- xmlns="${T}"
1329
+ xmlns="${te}"
1330
1330
  width="100%"
1331
1331
  viewBox="0 0 ${n} ${r}"
1332
1332
  role="img"