vue-data-ui 3.0.0-next.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- 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
|
-
- [
|
|
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
|
|
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
|
-
-
|
|
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
|
-
| `
|
|
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
|
-
|
|
|
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
|
-
-
|
|
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
|
-
|
|
|
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 |
|
|
797
|
+
| VueUiXy | 1095 | |
|
|
796
798
|
| VueUiXyCanvas | 10000 | Since this chart uses canvas, threhsold can be set higher |
|
|
797
|
-
| VueUiQuadrant |
|
|
798
|
-
| VueUiScatter |
|
|
799
|
-
| VueUiSparkline |
|
|
800
|
-
| VueUiSparkTrend |
|
|
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
|
-
-
|
|
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-
|
|
2
|
+
import { c as n } from "./index-BtNwOUja.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-
|
|
3
|
-
import { X as A } from "./index-
|
|
2
|
+
import q from "./BaseIcon-CXtL10fo.js";
|
|
3
|
+
import { X as A } from "./index-BtNwOUja.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-
|
|
2
|
+
import { X as l } from "./index-BtNwOUja.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-
|
|
3
|
-
import { F as V } from "./index-
|
|
2
|
+
import C from "./BaseIcon-CXtL10fo.js";
|
|
3
|
+
import { F as V } from "./index-BtNwOUja.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-
|
|
3
|
-
import O from "./BaseIcon-
|
|
2
|
+
import { _ as K } from "./Shape-BRzOzubn.js";
|
|
3
|
+
import O from "./BaseIcon-CXtL10fo.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 {
|
|
3
|
-
import { _ as v } from "./Shape-
|
|
2
|
+
import { a2 as p } from "./index-BtNwOUja.js";
|
|
3
|
+
import { _ as v } from "./Shape-BRzOzubn.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,
|
|
3
|
-
import R from "./BaseIcon-
|
|
4
|
-
import { C as Ee } from "./ColorPicker-
|
|
2
|
+
import { l as $e, i as Se, X as Ae } from "./index-BtNwOUja.js";
|
|
3
|
+
import R from "./BaseIcon-CXtL10fo.js";
|
|
4
|
+
import { C as Ee } from "./ColorPicker-H91bBsqM.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
|
|
2
|
-
const
|
|
1
|
+
import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
|
|
2
|
+
const n = "3.0.0", 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
|
|
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
|
|
2
|
-
import T from "./BaseIcon-
|
|
3
|
-
import { C as we } from "./ColorPicker-
|
|
4
|
-
import { l as be,
|
|
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-CXtL10fo.js";
|
|
3
|
+
import { C as we } from "./ColorPicker-H91bBsqM.js";
|
|
4
|
+
import { l as be, i as xe } from "./index-BtNwOUja.js";
|
|
5
5
|
const ye = {
|
|
6
6
|
class: "vue-ui-pen-and-paper-action",
|
|
7
7
|
style: { padding: "0 !important" }
|
|
8
|
-
},
|
|
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),
|
|
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,
|
|
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",
|
|
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],
|
|
146
|
-
a.push(`Q ${g} ${i} ${
|
|
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,
|
|
178
|
-
p === a && m === u ? n += `t${
|
|
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",
|
|
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",
|
|
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 && (
|
|
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
|
-
|
|
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
|
-
|
|
259
|
+
$(T, {
|
|
260
260
|
name: "close",
|
|
261
261
|
stroke: d.color
|
|
262
262
|
}, null, 8, ["stroke"])
|
|
263
263
|
], 4),
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
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
|
-
|
|
280
|
+
$(T, {
|
|
281
281
|
name: h.value === "draw" ? "annotator" : "text",
|
|
282
282
|
stroke: d.color
|
|
283
283
|
}, null, 8, ["name", "stroke"]),
|
|
284
|
-
|
|
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" ?
|
|
295
|
+
v: h.value === "draw" ? R.value : L.value,
|
|
296
296
|
s: "px",
|
|
297
297
|
r: 1
|
|
298
298
|
})), 5)
|
|
299
299
|
], 6),
|
|
300
|
-
|
|
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
|
-
|
|
310
|
+
$(T, {
|
|
311
311
|
name: "restart",
|
|
312
312
|
stroke: d.color
|
|
313
313
|
}, null, 8, ["stroke"])
|
|
314
|
-
], 14,
|
|
315
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) =>
|
|
350
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => R.value = n),
|
|
351
351
|
style: x({ accentColor: d.color })
|
|
352
352
|
}, null, 4)), [
|
|
353
|
-
[oe,
|
|
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
|
|
2
|
-
const
|
|
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
|
|
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 =
|
|
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,
|
|
48
|
-
|
|
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,
|
|
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:
|
|
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,
|
|
73
|
-
], 64))),
|
|
74
|
-
e.nodes && e.nodes.length > 0 ? (o(),
|
|
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
|
-
|
|
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
|
+
};
|