vue-data-ui 3.0.0-next.9 → 3.0.1

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
package/README.md CHANGED
@@ -53,7 +53,7 @@ Available components
53
53
  - [VueUiThermometer](https://vue-data-ui.graphieros.com/docs#vue-ui-thermometer)
54
54
  - [VueUiTiremarks](https://vue-data-ui.graphieros.com/docs#vue-ui-tiremarks)
55
55
  - [VueUiTreemap](https://vue-data-ui.graphieros.com/docs#vue-ui-treemap)
56
- - [VueUiVerticalBar](https://vue-data-ui.graphieros.com/docs#vue-ui-vertical-bar) // Renamed as VueUiHorizontalBar in v3
56
+ - [VueUiHorizontalBar](https://vue-data-ui.graphieros.com/docs#vue-ui-horizontal-bar)
57
57
  - [VueUiWaffle](https://vue-data-ui.graphieros.com/docs#vue-ui-waffle)
58
58
  - [VueUiWheel](https://vue-data-ui.graphieros.com/docs#vue-ui-wheel)
59
59
  - [VueUiWordCloud](https://vue-data-ui.graphieros.com/docs#vue-ui-word-cloud)
@@ -171,19 +171,21 @@ Types are available in the 'vue-data-ui.d.ts' file under the types directory of
171
171
 
172
172
  ## Vue Data UI version2 -> version3 migration
173
173
 
174
- Vue Data UI v3 is easy to migrate to:
175
-
176
- - If a component has new v3 features, it contains the `config.autoSize` attribute, set to `true` by default
177
- - To restore v2 behavior set config.autoSize to `false`
174
+ Vue Data UI v3 does not contain breaking changes.
175
+ However, some charts have their padding configs modified, which can lead to excessive padding with a v2 config.
178
176
 
179
177
  ### Version 3 features
180
178
 
181
- - `config.autoSize` (default: true) set to true, sets up the chart layout automatically, hides or shows some data labels when they can be
182
-
183
179
  - `config.loading` (default: false) toggle loading state manually, to display a beautiful skeleton loader which uses the same chart component and shares layout features derived from your config. This skeleton loader is also triggered automatically if the provided dataset is undefined.
184
180
 
185
181
  - `config.debug` (default: false) set to true to show warning messages during development, turn off for production.
186
182
 
183
+ - smart label resizing and auto-rotating features
184
+
185
+ - more charts support responsive mode
186
+
187
+ - config event callbacks
188
+
187
189
  ## Nuxt
188
190
 
189
191
  [This repo contains a boilerplate implementation of the vue-data-ui package in Nuxt](https://github.com/graphieros/vue-data-ui-nuxt)
@@ -300,7 +302,7 @@ The following charts bear these slots:
300
302
  - VueUiSparkStackbar
301
303
  - VueUiStackbar
302
304
  - VueUiTreemap
303
- - VueUiVerticalBar
305
+ - VueUiHorizontalBar
304
306
  - VueUiWordCloud
305
307
  - VueUiXy \*
306
308
  - VueUiXyCanvas
@@ -472,7 +474,7 @@ From the dataset you pass into the props, this component will produce the most a
472
474
  | `VueUiThermometer` | `VueUiThermometerDataset` | `VueUiThermometerConfig` | `generatePdf`, `generateImage` , `getImage` | `#svg`, `#watermark`, `#chart-background` | ❌ | ✅ |
473
475
  | `VueUiTiremarks` | `VueUiTiremarksDataset` | `VueUiTiremarksConfig` | `generatePdf`, `generateImage` , `getImage` | `#svg`, `#legend`, `#watermark`, `#chart-background` | ❌ | ✅ |
474
476
  | `VueUiTreemap` | `VueUiTreemapDatasetItem[]` | `VueUiTreemapConfig` | `@selectLegend`, `@selectDatapoint`, `getData`, `generatePdf`, `generateCsv`, `generateImage`, `toggleTable`, `toggleTooltip` , `getImage` | `#svg`, `#rect`, `#legend`, `#tooltip-before`, `#tooltip-after`, `#watermark`, `#breadcrumb-label`, `#breadcrumb-arrow` | ✅ | ✅ |
475
- | `VueUiVerticalBar` | `VueUiVerticalBarDatasetItem[]` | `VueUiWheelConfig` | `@selectLegend`, `getData`, `generatePdf`, `generateCsv`, `generateImage`, `toggleTable`, `toggleSort`, `toggleTooltip` , `getImage` | `#svg`, `#legend`, `#tooltip-before`, `#tooltip-after`, `#watermark`, `#chart-background`, `#pattern` | ✅ | ✅ |
477
+ | `VueUiHorizontalBar` | `VueUiHorizontalBarDatasetItem[]` | `VueUiWheelConfig` | `@selectLegend`, `getData`, `generatePdf`, `generateCsv`, `generateImage`, `toggleTable`, `toggleSort`, `toggleTooltip` , `getImage` | `#svg`, `#legend`, `#tooltip-before`, `#tooltip-after`, `#watermark`, `#chart-background`, `#pattern` | ✅ | ✅ |
476
478
  | `VueUiWaffle` | `VueUiWaffleDatasetItem[]` | `VueUiWaffleConfig` | `@selectLegend`, `getData`, `generatePdf`, `generateCsv`, `generateImage`, `toggleTable`, `toggleTooltip` , `getImage` | `#svg`, `#legend`, `#tooltip-before`, `#tooltip-after`, `#watermark`, `#pattern` | ✅ | ✅ |
477
479
  | `VueUiWheel` | `VueUiWheelDataset` | `VueUiWheelConfig` | `generatePdf`, `generateImage` , `getImage` | `#svg`, `#watermark`, `#chart-background` | ❌ | ✅ |
478
480
  | `VueUiWordCloud` | `VueUiWordCloudDatasetItem[] / string` | `VueUiWordCloudConfig` | `getData`, `generatePdf`, `generateImage`, `generateCsv`, `toggleTooltip` , `getImage` | `#svg`, `#reset-action`, `#watermark`, `#tooltip-before`, `#tooltip-after`, `#chart-background` | ✅ | ✅ |
@@ -658,7 +660,7 @@ User options actions available per chart:
658
660
  | VueUiThermometer | optionPdf, optionImg, optionFullscreen, optionAnnotator |
659
661
  | VueUiTiremarks | optionPdf, optionImg, optionFullscreen, optionAnnotator |
660
662
  | VueUiTreemap | optionTooltip, optionPdf, optionImg, optionCsv, optionTable, optionFullscreen, optionAnnotator |
661
- | VueUiVerticalBar | optionTooltip, optionPdf, optionImg, optionCsv, optionTable, optionSort, optionFullscreen, optionAnnotator |
663
+ | VueUiHorizontalBar | optionTooltip, optionPdf, optionImg, optionCsv, optionTable, optionSort, optionFullscreen, optionAnnotator |
662
664
  | VueUiWaffle | optionTooltip, optionPdf, optionImg, optionCsv, optionTable, optionFullscreen, optionAnnotator |
663
665
  | VueUiWheel | optionPdf, optionImg, optionFullscreen, optionAnnotator |
664
666
  | VueUiWordCloud | optionPdf, optionImg, optionCsv, optionTable, optionFullscreen, optionAnnotator |
@@ -706,7 +708,7 @@ It is possible to provide a custom palette in the config prop through config.cus
706
708
  - VueUiTableSparkline
707
709
  - VueUiThermometer
708
710
  - VueUiTreemap
709
- - VueUiVerticalBar
711
+ - VueUiHorizontalBar
710
712
  - VueUiWaffle
711
713
  - VueUiWordCloud
712
714
  - VueUiWorld
@@ -723,25 +725,25 @@ However the folowing charts can be made fully responsive, making them better to
723
725
 
724
726
  | Component | Responsive feature implemented |
725
727
  | --------------------------- | ------------------------------ |
726
- | VueUi3dBar | - |
728
+ | VueUi3dBar | |
727
729
  | VueUiAgePyramid | ✅ |
728
730
  | VueUiAgePyramid | ✅ |
729
- | VueUiBullet | - |
731
+ | VueUiBullet | |
730
732
  | VueUiCarouselTable | - |
731
733
  | VueUiChestnut | - |
732
734
  | VueUiChord | ✅ |
733
- | VueUiCirclePack | - |
735
+ | VueUiCirclePack | ✅ (built-in) |
734
736
  | VueUiDonut | ✅ |
735
- | VueUiDonutEvolution | - |
737
+ | VueUiDonutEvolution | |
736
738
  | VueUiDumbbell | ✅ |
737
- | VueUiFlow | - |
739
+ | VueUiFlow | |
738
740
  | VueUiFunnel | ✅ |
739
- | VueUiGalaxy | - |
741
+ | VueUiGalaxy | |
740
742
  | VueUiGauge | ✅ |
741
- | VueUiHeatmap | - |
743
+ | VueUiHeatmap | |
742
744
  | VueUiHistoryPlot | ✅ |
743
745
  | VueUiMolecule | - |
744
- | VueUiMoodRadar | - |
746
+ | VueUiMoodRadar | |
745
747
  | VueUiNestedDonuts | ✅ |
746
748
  | VueUiOnion | ✅ |
747
749
  | VueUiParallelCoordinatePlot | ✅ |
@@ -752,9 +754,9 @@ However the folowing charts can be made fully responsive, making them better to
752
754
  | VueUiRidgeline | ✅ |
753
755
  | VueUiRings | ✅ |
754
756
  | VueUiScatter | ✅ |
755
- | VueUiSparkHistogram | - |
757
+ | VueUiSparkHistogram | |
756
758
  | VueUiSparkStackbar | - |
757
- | VueUiSparkTrend | - |
759
+ | VueUiSparkTrend | |
758
760
  | VueUiSparkbar | - |
759
761
  | VueUiSparkgauge | - |
760
762
  | VueUiSparkline | ✅ |
@@ -762,11 +764,11 @@ However the folowing charts can be made fully responsive, making them better to
762
764
  | VueUiStripPlot | ✅ |
763
765
  | VueUiTableHeatmap | - |
764
766
  | VueUiTableSparkline | - |
765
- | VueUiThermometer | - |
767
+ | VueUiThermometer | |
766
768
  | VueUiTimer | ✅ |
767
- | VueUiTiremarks | - |
769
+ | VueUiTiremarks | |
768
770
  | VueUiTreemap | ✅ |
769
- | VueUiVerticalBar | ✅ |
771
+ | VueUiHorizontalBar | ✅ |
770
772
  | VueUiWaffle | ✅ |
771
773
  | VueUiWheel | ✅ |
772
774
  | VueUiWordCloud | ✅ |
@@ -792,12 +794,12 @@ The following charts use the LTTB algorithm (Largest-Triangle-Three-Bucket) beyo
792
794
 
793
795
  | Component | Default Threshold | Remark |
794
796
  | --------------- | ----------------- | --------------------------------------------------------- |
795
- | VueUiXy | 500 | |
797
+ | VueUiXy | 1095 | |
796
798
  | VueUiXyCanvas | 10000 | Since this chart uses canvas, threhsold can be set higher |
797
- | VueUiQuadrant | 500 | |
798
- | VueUiScatter | 500 | |
799
- | VueUiSparkline | 500 | |
800
- | VueUiSparkTrend | 500 | |
799
+ | VueUiQuadrant | 1095 | |
800
+ | VueUiScatter | 1095 | |
801
+ | VueUiSparkline | 1095 | |
802
+ | VueUiSparkTrend | 1095 | |
801
803
 
802
804
  The downsample threshold for each component can be set in the config prop passed to components:
803
805
 
@@ -873,7 +875,7 @@ The #pattern slot is available on the following components:
873
875
  - VueUiRidgeline
874
876
  - VueUiRings
875
877
  - VueUiStackbar
876
- - VueUiVerticalBar
878
+ - VueUiHorizontalBar
877
879
  - VueUiWaffle
878
880
  - VueUiWorld
879
881
  - VueUiXy
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as k, openBlock as m, createElementVNode as t, unref as o } from "vue";
2
- import { c as n } from "./index-CgShIRes.js";
2
+ import { c as n } from "./index-Dzc2Gi60.js";
3
3
  const s = { class: "vue-ui-element-arrow" }, f = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], c = ["d", "fill"], h = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], y = ["d", "fill"], v = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap", "stroke-dasharray", "marker-end", "marker-start"], z = {
4
4
  __name: "Arrow",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as O, ref as S, reactive as T, computed as P, onUnmounted as $, createBlock as R, openBlock as v, Teleport as N, createElementBlock as E, createCommentVNode as V, withModifiers as s, normalizeStyle as y, createElementVNode as o, unref as I, renderSlot as M, createVNode as F, normalizeClass as j, nextTick as U } from "vue";
2
- import q from "./BaseIcon-DxUUKVlt.js";
3
- import { X as A } from "./index-CgShIRes.js";
2
+ import q from "./BaseIcon-DEl03NUZ.js";
3
+ import { X as A } from "./index-Dzc2Gi60.js";
4
4
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const J = ["xmlns"], K = { class: "modal-title" }, Q = {
6
6
  __name: "BaseDraggableDialog",
@@ -141,14 +141,14 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
141
141
  "stroke-width": "1",
142
142
  "stroke-linecap": "round",
143
143
  "stroke-linejoin": "round"
144
- }, n[1] || (n[1] = [
144
+ }, [...n[1] || (n[1] = [
145
145
  o("path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
146
146
  o("path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
147
147
  o("path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
148
148
  o("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
149
149
  o("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
150
150
  o("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
151
- ]), 8, J))
151
+ ])], 8, J))
152
152
  ], 32),
153
153
  o("span", K, [
154
154
  M(t.$slots, "title", {}, void 0, !0)
@@ -1,5 +1,5 @@
1
1
  import { computed as e, createElementBlock as n, openBlock as i, normalizeClass as k, unref as L } from "vue";
2
- import { X as l } from "./index-CgShIRes.js";
2
+ import { X as l } from "./index-Dzc2Gi60.js";
3
3
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const M = ["xmlns", "viewBox", "height", "width", "innerHTML"], h = {
5
5
  __name: "BaseIcon",
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as k, watch as I, withDirectives as P, createElementBlock as r, openBlock as n, withKeys as S, createElementVNode as u, createCommentVNode as z, normalizeStyle as a, createVNode as F, Fragment as E, renderList as N, unref as O } from "vue";
2
- import C from "./BaseIcon-DxUUKVlt.js";
3
- import { F as V } from "./index-CgShIRes.js";
2
+ import C from "./BaseIcon-DEl03NUZ.js";
3
+ import { F as V } from "./index-Dzc2Gi60.js";
4
4
  import { v as D } from "./vClickOutside-C6WiFswA.js";
5
5
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const $ = ["onClick"], L = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, T = ["value"], j = {
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as A, unref as e, computed as D, ref as w, onMounted as E, createElementBlock as n, openBlock as a, normalizeClass as k, createElementVNode as t, withKeys as R, normalizeStyle as i, createVNode as C, toDisplayString as I, Fragment as f, renderList as m, renderSlot as N, createCommentVNode as $ } from "vue";
2
- import { _ as K } from "./Shape-Mr1eIp_G.js";
3
- import O from "./BaseIcon-DxUUKVlt.js";
2
+ import { _ as K } from "./Shape-Adi9i_-f.js";
3
+ import O from "./BaseIcon-DEl03NUZ.js";
4
4
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align-items": "center", "justify-content": "flex-end", "padding-right": "3px", gap: "3px" } }, L = { style: { width: "12px", height: "12px" } }, M = {
6
6
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as o, openBlock as a, normalizeStyle as d, renderSlot as l, Fragment as u, renderList as g, normalizeClass as m, createCommentVNode as h, createVNode as k, mergeProps as y, unref as $ } from "vue";
2
- import { a3 as p } from "./index-CgShIRes.js";
3
- import { _ as v } from "./Shape-Mr1eIp_G.js";
2
+ import { a2 as p } from "./index-Dzc2Gi60.js";
3
+ import { _ as v } from "./Shape-Adi9i_-f.js";
4
4
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const S = ["id"], x = ["onClick", "height", "width"], z = {
6
6
  __name: "Legend",
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as we, onMounted as ke, nextTick as be, onBeforeUnmount as Ce, watch as oe, createElementBlock as x, openBlock as y, Fragment as q, createCommentVNode as Y, normalizeStyle as b, normalizeClass as D, createElementVNode as C, withDirectives as ae, createVNode as M, toDisplayString as re, unref as se, vModelText as ue, withModifiers as ie, renderList as ce } from "vue";
2
- import { l as $e, f as Se, X as Ae } from "./index-CgShIRes.js";
3
- import R from "./BaseIcon-DxUUKVlt.js";
4
- import { C as Ee } from "./ColorPicker-Bh1dfgXt.js";
2
+ import { l as $e, i as Se, X as Ae } from "./index-Dzc2Gi60.js";
3
+ import R from "./BaseIcon-DEl03NUZ.js";
4
+ import { C as Ee } from "./ColorPicker-CrivFZqC.js";
5
5
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Te = {
7
7
  class: /* @__PURE__ */ D({
@@ -1,8 +1,8 @@
1
- import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as n } from "vue";
2
- const r = "3.0.0-next.9", a = { "aria-hidden": "true" }, p = {
1
+ import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
2
+ const n = "3.0.1", a = { "aria-hidden": "true" }, p = {
3
3
  __name: "PackageVersion",
4
4
  setup(s) {
5
- return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(n(r)), 1));
5
+ return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
6
6
  }
7
7
  };
8
8
  export {
@@ -1,11 +1,11 @@
1
- import { ref as c, computed as ge, watch as X, nextTick as le, onMounted as pe, onBeforeUnmount as me, createElementBlock as Y, createCommentVNode as q, openBlock as z, normalizeStyle as x, createElementVNode as k, withDirectives as ae, createVNode as R, normalizeClass as G, toDisplayString as Ae, unref as he, vModelText as oe } from "vue";
2
- import T from "./BaseIcon-DxUUKVlt.js";
3
- import { C as we } from "./ColorPicker-Bh1dfgXt.js";
4
- import { l as be, f as xe } from "./index-CgShIRes.js";
1
+ import { ref as c, computed as ge, watch as X, nextTick as le, onMounted as pe, onBeforeUnmount as me, createElementBlock as Y, createCommentVNode as q, openBlock as z, normalizeStyle as x, createElementVNode as C, withDirectives as ae, createVNode as $, normalizeClass as G, toDisplayString as Ae, unref as he, vModelText as oe } from "vue";
2
+ import T from "./BaseIcon-DEl03NUZ.js";
3
+ import { C as we } from "./ColorPicker-CrivFZqC.js";
4
+ import { l as be, i as xe } from "./index-Dzc2Gi60.js";
5
5
  const ye = {
6
6
  class: "vue-ui-pen-and-paper-action",
7
7
  style: { padding: "0 !important" }
8
- }, Ce = ["disabled"], Be = {
8
+ }, ke = ["disabled"], Be = {
9
9
  __name: "PenAndPaper",
10
10
  props: {
11
11
  svgRef: {
@@ -31,7 +31,7 @@ const ye = {
31
31
  },
32
32
  emits: ["close"],
33
33
  setup(d, { emit: se }) {
34
- const s = d, ue = se, b = c([]), E = c([]), S = c(s.color), $ = c(2), M = c(!1), P = c(""), o = c(null), A = c(null), F = c(null), h = c("draw"), Q = c(!1), f = c(null), H = c({ x: 0, y: 0 }), N = c([""]), D = c({ row: 0, col: 0 }), L = c(16), W = c("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
34
+ const s = d, ue = se, b = c([]), E = c([]), S = c(s.color), R = c(2), M = c(!1), P = c(""), o = c(null), A = c(null), F = c(null), h = c("draw"), Q = c(!1), f = c(null), H = c({ x: 0, y: 0 }), N = c([""]), D = c({ row: 0, col: 0 }), L = c(16), W = c("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
35
35
  function O(l) {
36
36
  if (!o.value || h.value !== "text" || Q.value) return;
37
37
  const { x: e, y: n } = V(l);
@@ -94,9 +94,9 @@ const ye = {
94
94
  i.setAttribute("x", n), i.setAttribute("y", t), i.setAttribute("font-size", r), i.setAttribute("font-family", "sans-serif"), i.textContent = g || "", o.value.appendChild(i);
95
95
  const p = i.getBBox();
96
96
  o.value.removeChild(i);
97
- let m = t + a * r * 1.2, C = n + p.width;
97
+ let m = t + a * r * 1.2, k = n + p.width;
98
98
  const w = document.createElementNS("http://www.w3.org/2000/svg", "rect");
99
- w.setAttribute("x", C), w.setAttribute("y", m), w.setAttribute("width", 2), w.setAttribute("height", r), w.setAttribute("fill", S.value), w.setAttribute("class", "vue-data-ui-svg-caret"), o.value.appendChild(w);
99
+ w.setAttribute("x", k), w.setAttribute("y", m), w.setAttribute("width", 2), w.setAttribute("height", r), w.setAttribute("fill", S.value), w.setAttribute("class", "vue-data-ui-svg-caret"), o.value.appendChild(w);
100
100
  }
101
101
  function _(l) {
102
102
  if (f.value && !f.value.contains(l.target)) {
@@ -142,8 +142,8 @@ const ye = {
142
142
  return l;
143
143
  const t = ie(n), a = [`M ${t[0]} ${t[1]}`];
144
144
  for (let v = 2; v < t.length - 2; v += 2) {
145
- const g = t[v - 2], i = t[v - 1], p = t[v], m = t[v + 1], C = (g + p) / 2, w = (i + m) / 2;
146
- a.push(`Q ${g} ${i} ${C} ${w}`);
145
+ const g = t[v - 2], i = t[v - 1], p = t[v], m = t[v + 1], k = (g + p) / 2, w = (i + m) / 2;
146
+ a.push(`Q ${g} ${i} ${k} ${w}`);
147
147
  }
148
148
  const u = t[t.length - 2], r = t[t.length - 1];
149
149
  return a.push(`L ${u} ${r}`), a.join(" ");
@@ -174,8 +174,8 @@ const ye = {
174
174
  const p = g - a, m = i - u;
175
175
  p === 0 ? n += `v${m}` : m === 0 ? n += `h${p}` : n += `l${p} ${m}`, a = g, u = i;
176
176
  } else if (t === "Q") {
177
- const p = g, m = i, C = parseFloat(e[++r]), w = parseFloat(e[++r]);
178
- p === a && m === u ? n += `t${C - a} ${w - u}` : n += `q${p - a} ${m - u} ${C - a} ${w - u}`, a = C, u = w;
177
+ const p = g, m = i, k = parseFloat(e[++r]), w = parseFloat(e[++r]);
178
+ p === a && m === u ? n += `t${k - a} ${w - u}` : n += `q${p - a} ${m - u} ${k - a} ${w - u}`, a = k, u = w;
179
179
  }
180
180
  }
181
181
  }
@@ -185,7 +185,7 @@ const ye = {
185
185
  if (h.value !== "draw" || !s.active || !o.value) return;
186
186
  M.value = !0;
187
187
  const { x: e, y: n } = V(l);
188
- F.value = { x: e, y: n }, P.value = `M ${e} ${n}`, A.value = document.createElementNS("http://www.w3.org/2000/svg", "path"), A.value.setAttribute("stroke", S.value), A.value.setAttribute("stroke-width", $.value * s.scale), A.value.setAttribute("fill", "none"), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("stroke-linejoin", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(A.value);
188
+ F.value = { x: e, y: n }, P.value = `M ${e} ${n}`, A.value = document.createElementNS("http://www.w3.org/2000/svg", "path"), A.value.setAttribute("stroke", S.value), A.value.setAttribute("stroke-width", R.value * s.scale), A.value.setAttribute("fill", "none"), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("stroke-linejoin", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(A.value);
189
189
  }
190
190
  function K(l) {
191
191
  if (!M.value || !o.value || !A.value) return;
@@ -197,7 +197,7 @@ const ye = {
197
197
  const { x: e, y: n } = V(l);
198
198
  if (F.value && F.value.x === e && F.value.y === n) {
199
199
  const t = document.createElementNS("http://www.w3.org/2000/svg", "circle");
200
- t.setAttribute("cx", e), t.setAttribute("cy", n), t.setAttribute("r", $.value * s.scale / 2), t.setAttribute("fill", S.value), t.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(t), b.value.push(t);
200
+ t.setAttribute("cx", e), t.setAttribute("cy", n), t.setAttribute("r", R.value * s.scale / 2), t.setAttribute("fill", S.value), t.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(t), b.value.push(t);
201
201
  } else {
202
202
  const t = A.value;
203
203
  t.setAttribute("d", ve(re(P.value))), b.value.push(t);
@@ -241,14 +241,14 @@ const ye = {
241
241
  s.svgRef && (o.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), o.value.setAttribute("class", "vue-data-ui-doodles"), o.value.style.cursor = W.value, s.svgRef.appendChild(o.value), U());
242
242
  });
243
243
  }), me(() => {
244
- o.value && s.svgRef && (s.svgRef.removeChild(o.value), U());
244
+ o.value && s.svgRef && (o.value.remove(), U());
245
245
  }), (l, e) => d.active ? (z(), Y("div", {
246
246
  key: 0,
247
247
  "data-dom-to-png-ignore": "",
248
248
  class: "vue-ui-pen-and-paper-actions",
249
249
  style: x({ backgroundColor: d.backgroundColor })
250
250
  }, [
251
- k("button", {
251
+ C("button", {
252
252
  class: "vue-ui-pen-and-paper-action",
253
253
  onClick: e[0] || (e[0] = (n) => ue("close")),
254
254
  style: x({
@@ -256,20 +256,20 @@ const ye = {
256
256
  border: `1px solid ${y.value}`
257
257
  })
258
258
  }, [
259
- R(T, {
259
+ $(T, {
260
260
  name: "close",
261
261
  stroke: d.color
262
262
  }, null, 8, ["stroke"])
263
263
  ], 4),
264
- k("button", ye, [
265
- R(we, {
264
+ C("button", ye, [
265
+ $(we, {
266
266
  value: S.value,
267
267
  "onUpdate:value": e[1] || (e[1] = (n) => S.value = n),
268
268
  backgroundColor: d.backgroundColor,
269
269
  buttonBorderColor: y.value
270
270
  }, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
271
271
  ]),
272
- k("button", {
272
+ C("button", {
273
273
  class: G(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": h.value === "text" }]),
274
274
  onClick: e[2] || (e[2] = (n) => h.value = h.value === "text" ? "draw" : "text"),
275
275
  style: x({
@@ -277,11 +277,11 @@ const ye = {
277
277
  border: `1px solid ${y.value}`
278
278
  })
279
279
  }, [
280
- R(T, {
280
+ $(T, {
281
281
  name: h.value === "draw" ? "annotator" : "text",
282
282
  stroke: d.color
283
283
  }, null, 8, ["name", "stroke"]),
284
- k("div", {
284
+ C("div", {
285
285
  style: x({
286
286
  position: "absolute",
287
287
  bottom: "-20px",
@@ -292,12 +292,12 @@ const ye = {
292
292
  fontVariantNumeric: "tabular-nums"
293
293
  })
294
294
  }, Ae(he(xe)({
295
- v: h.value === "draw" ? $.value : L.value,
295
+ v: h.value === "draw" ? R.value : L.value,
296
296
  s: "px",
297
297
  r: 1
298
298
  })), 5)
299
299
  ], 6),
300
- k("button", {
300
+ C("button", {
301
301
  class: G(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
302
302
  disabled: !b.value.length,
303
303
  onClick: ce,
@@ -307,12 +307,12 @@ const ye = {
307
307
  marginTop: "20px"
308
308
  })
309
309
  }, [
310
- R(T, {
310
+ $(T, {
311
311
  name: "restart",
312
312
  stroke: d.color
313
313
  }, null, 8, ["stroke"])
314
- ], 14, Ce),
315
- k("button", {
314
+ ], 14, ke),
315
+ C("button", {
316
316
  class: G(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !E.value.length }]),
317
317
  onClick: de,
318
318
  style: x({
@@ -320,13 +320,13 @@ const ye = {
320
320
  border: `1px solid ${y.value}`
321
321
  })
322
322
  }, [
323
- R(T, {
323
+ $(T, {
324
324
  name: "restart",
325
325
  stroke: d.color,
326
326
  style: { transform: "scaleX(-1)" }
327
327
  }, null, 8, ["stroke"])
328
328
  ], 6),
329
- k("button", {
329
+ C("button", {
330
330
  class: G(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
331
331
  onClick: fe,
332
332
  style: x({
@@ -334,7 +334,7 @@ const ye = {
334
334
  border: `1px solid ${y.value}`
335
335
  })
336
336
  }, [
337
- R(T, {
337
+ $(T, {
338
338
  name: "trash",
339
339
  stroke: d.color
340
340
  }, null, 8, ["stroke"])
@@ -347,10 +347,10 @@ const ye = {
347
347
  min: 0.5,
348
348
  max: 12,
349
349
  step: 0.1,
350
- "onUpdate:modelValue": e[3] || (e[3] = (n) => $.value = n),
350
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => R.value = n),
351
351
  style: x({ accentColor: d.color })
352
352
  }, null, 4)), [
353
- [oe, $.value]
353
+ [oe, R.value]
354
354
  ]) : q("", !0),
355
355
  h.value === "text" ? ae((z(), Y("input", {
356
356
  key: 1,
@@ -1,5 +1,5 @@
1
- import { toRef as m, resolveComponent as R, createElementBlock as s, openBlock as o, Fragment as u, renderList as k, createCommentVNode as a, createBlock as $, createElementVNode as U, withModifiers as w, renderSlot as h, mergeProps as f, withCtx as x } from "vue";
2
- const F = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], M = ["x", "y", "height", "width", "onClick", "onMouseover"], P = {
1
+ import { toRef as R, resolveComponent as U, createElementBlock as s, openBlock as o, Fragment as u, renderList as k, createCommentVNode as a, createBlock as w, createElementVNode as F, withModifiers as M, renderSlot as h, mergeProps as f, withCtx as x } from "vue";
2
+ const H = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], S = ["x", "y", "height", "width", "onClick", "onMouseover"], B = {
3
3
  __name: "RecursiveCircles",
4
4
  props: {
5
5
  color: {
@@ -36,16 +36,18 @@ const F = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMous
36
36
  function n(r) {
37
37
  v("hover", r);
38
38
  }
39
- return m(C, "dataset").value.forEach((r) => {
39
+ return R(C, "dataset").value.forEach((r) => {
40
40
  r.nodes && r.nodes.length > 0 && r.nodes.forEach((l) => {
41
41
  l.ancestor = r;
42
42
  });
43
43
  }), (r, l) => {
44
- const g = R("RecursiveCircles", !0);
45
- return o(!0), s(u, null, k(t.dataset, (e) => (o(), s(u, null, [
44
+ const g = U("RecursiveCircles", !0);
45
+ return o(!0), s(u, null, k(t.dataset, (e, m) => (o(), s(u, null, [
46
46
  e.polygonPath && e.polygonPath.coordinates ? (o(), s(u, { key: 0 }, [
47
- (o(!0), s(u, null, k(e.polygonPath.coordinates, (i, S) => (o(), s(u, null, [
48
- U("circle", {
47
+ (o(!0), s(u, null, k(e.polygonPath.coordinates, (i, $) => (o(), s(u, {
48
+ key: `node_${m}_${$}`
49
+ }, [
50
+ F("circle", {
49
51
  cx: i.x,
50
52
  cy: i.y,
51
53
  r: e.circleRadius,
@@ -56,7 +58,7 @@ const F = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMous
56
58
  onClick: (c) => d(e),
57
59
  onMouseover: (c) => n(e),
58
60
  onMouseleave: l[0] || (l[0] = (c) => n(null))
59
- }, null, 40, F),
61
+ }, null, 40, H),
60
62
  r.$slots.node ? (o(), s("foreignObject", {
61
63
  key: 0,
62
64
  x: i.x - e.circleRadius,
@@ -64,14 +66,14 @@ const F = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMous
64
66
  height: e.circleRadius * 2,
65
67
  width: e.circleRadius * 2,
66
68
  style: { overflow: "visible" },
67
- onClick: w((c) => d(e), ["stop"]),
69
+ onClick: M((c) => d(e), ["stop"]),
68
70
  onMouseover: (c) => n(e),
69
71
  onMouseleave: l[1] || (l[1] = (c) => n(null))
70
72
  }, [
71
73
  h(r.$slots, "node", f({ ref_for: !0 }, { node: e }))
72
- ], 40, M)) : a("", !0)
73
- ], 64))), 256)),
74
- e.nodes && e.nodes.length > 0 ? (o(), $(g, {
74
+ ], 40, S)) : a("", !0)
75
+ ], 64))), 128)),
76
+ e.nodes && e.nodes.length > 0 ? (o(), w(g, {
75
77
  key: 0,
76
78
  dataset: e.nodes,
77
79
  color: t.color,
@@ -92,5 +94,5 @@ const F = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMous
92
94
  }
93
95
  };
94
96
  export {
95
- P as default
97
+ B as default
96
98
  };
@@ -0,0 +1,50 @@
1
+ import { toRef as y, resolveComponent as h, createElementBlock as l, openBlock as t, Fragment as n, renderList as c, createCommentVNode as i, createBlock as f, toDisplayString as p } from "vue";
2
+ const v = ["x", "y", "fill", "font-size"], _ = {
3
+ __name: "RecursiveLabels",
4
+ props: {
5
+ color: {
6
+ type: String,
7
+ default: "#000000"
8
+ },
9
+ dataset: {
10
+ type: Array,
11
+ default: () => []
12
+ },
13
+ hoveredUid: {
14
+ type: String,
15
+ default: null
16
+ }
17
+ },
18
+ emits: ["zoom", "hover"],
19
+ setup(o, { emit: g }) {
20
+ return y(o, "dataset").value.forEach((r) => {
21
+ r.nodes && r.nodes.length > 0 && r.nodes.forEach((a) => {
22
+ a.ancestor = r;
23
+ });
24
+ }), (r, a) => {
25
+ const u = h("RecursiveLabels", !0);
26
+ return t(!0), l(n, null, c(o.dataset, (e, d) => (t(), l(n, null, [
27
+ e.polygonPath && e.polygonPath.coordinates ? (t(), l(n, { key: 0 }, [
28
+ (t(!0), l(n, null, c(e.polygonPath.coordinates, (s, m) => (t(), l("text", {
29
+ key: `node_${d}_${m}`,
30
+ x: s.x,
31
+ y: s.y + e.circleRadius * 2,
32
+ fill: o.color,
33
+ "font-size": e.circleRadius,
34
+ "text-anchor": "middle",
35
+ style: { opacity: "0.8", "pointer-events": "none" }
36
+ }, p(e.name), 9, v))), 128)),
37
+ e.nodes && e.nodes.length > 0 ? (t(), f(u, {
38
+ key: 0,
39
+ dataset: e.nodes,
40
+ color: o.color,
41
+ hoveredUid: o.hoveredUid
42
+ }, null, 8, ["dataset", "color", "hoveredUid"])) : i("", !0)
43
+ ], 64)) : i("", !0)
44
+ ], 64))), 256);
45
+ };
46
+ }
47
+ };
48
+ export {
49
+ _ as default
50
+ };