vue-data-ui 3.20.0 → 3.20.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.
- package/package.json +120 -120
- package/dist/A11yDataTable-BCbtxMU6.js +0 -45
- package/dist/Arrow-D6j6ocXm.js +0 -116
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
- package/dist/BaseIcon-DfLoHNUj.js +0 -502
- package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
- package/dist/BaseScanner-Dr2a1Msy.js +0 -27
- package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
- package/dist/ColorPicker-Bjwxnvfh.js +0 -255
- package/dist/DataTable-B--IN22e.js +0 -150
- package/dist/Legend-Cz2uQ5gs.js +0 -114
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
- package/dist/PackageVersion-xcyrdRmY.js +0 -11
- package/dist/PenAndPaper-DqrClVfb.js +0 -461
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BPCJfphn.js +0 -141
- package/dist/Slicer-SHBj0VaV.js +0 -1144
- package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
- package/dist/SparkTooltip-CfE6yCad.js +0 -93
- package/dist/Title-NWp4qB4K.js +0 -87
- package/dist/Tooltip-BENq327o.js +0 -312
- package/dist/UserOptions-C1NgoGu6.js +0 -1411
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/canvas-lib-BOP_HS11.js +0 -79
- package/dist/components/arrow.js +0 -2
- package/dist/components/vue-ui-3d-bar.js +0 -2
- package/dist/components/vue-ui-accordion.js +0 -2
- package/dist/components/vue-ui-age-pyramid.js +0 -2
- package/dist/components/vue-ui-annotator.js +0 -2
- package/dist/components/vue-ui-bullet.js +0 -2
- package/dist/components/vue-ui-bump.js +0 -2
- package/dist/components/vue-ui-candlestick.js +0 -2
- package/dist/components/vue-ui-carousel-table.js +0 -2
- package/dist/components/vue-ui-chestnut.js +0 -2
- package/dist/components/vue-ui-chord.js +0 -2
- package/dist/components/vue-ui-circle-pack.js +0 -2
- package/dist/components/vue-ui-cursor.js +0 -2
- package/dist/components/vue-ui-dag.js +0 -2
- package/dist/components/vue-ui-dashboard.js +0 -2
- package/dist/components/vue-ui-digits.js +0 -2
- package/dist/components/vue-ui-donut-evolution.js +0 -2
- package/dist/components/vue-ui-donut.js +0 -2
- package/dist/components/vue-ui-dumbbell.js +0 -2
- package/dist/components/vue-ui-flow.js +0 -2
- package/dist/components/vue-ui-funnel.js +0 -2
- package/dist/components/vue-ui-galaxy.js +0 -2
- package/dist/components/vue-ui-gauge.js +0 -2
- package/dist/components/vue-ui-geo.js +0 -2
- package/dist/components/vue-ui-gizmo.js +0 -2
- package/dist/components/vue-ui-heatmap.js +0 -2
- package/dist/components/vue-ui-history-plot.js +0 -2
- package/dist/components/vue-ui-horizontal-bar.js +0 -2
- package/dist/components/vue-ui-icon.js +0 -2
- package/dist/components/vue-ui-kpi.js +0 -2
- package/dist/components/vue-ui-mini-loader.js +0 -2
- package/dist/components/vue-ui-molecule.js +0 -2
- package/dist/components/vue-ui-mood-radar.js +0 -2
- package/dist/components/vue-ui-nested-donuts.js +0 -2
- package/dist/components/vue-ui-onion.js +0 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
- package/dist/components/vue-ui-pattern-seed.js +0 -2
- package/dist/components/vue-ui-pattern.js +0 -2
- package/dist/components/vue-ui-quadrant.js +0 -2
- package/dist/components/vue-ui-quick-chart.js +0 -2
- package/dist/components/vue-ui-radar.js +0 -2
- package/dist/components/vue-ui-rating.js +0 -2
- package/dist/components/vue-ui-relation-circle.js +0 -2
- package/dist/components/vue-ui-ridgeline.js +0 -2
- package/dist/components/vue-ui-rings.js +0 -2
- package/dist/components/vue-ui-scatter.js +0 -2
- package/dist/components/vue-ui-skeleton.js +0 -2
- package/dist/components/vue-ui-smiley.js +0 -2
- package/dist/components/vue-ui-spark-trend.js +0 -2
- package/dist/components/vue-ui-sparkbar.js +0 -2
- package/dist/components/vue-ui-sparkgauge.js +0 -2
- package/dist/components/vue-ui-sparkhistogram.js +0 -2
- package/dist/components/vue-ui-sparkline.js +0 -2
- package/dist/components/vue-ui-sparkstackbar.js +0 -2
- package/dist/components/vue-ui-stackbar.js +0 -2
- package/dist/components/vue-ui-stackline.js +0 -2
- package/dist/components/vue-ui-strip-plot.js +0 -2
- package/dist/components/vue-ui-table-heatmap.js +0 -2
- package/dist/components/vue-ui-table-sparkline.js +0 -2
- package/dist/components/vue-ui-table.js +0 -2
- package/dist/components/vue-ui-thermometer.js +0 -2
- package/dist/components/vue-ui-timer.js +0 -2
- package/dist/components/vue-ui-tiremarks.js +0 -2
- package/dist/components/vue-ui-treemap.js +0 -2
- package/dist/components/vue-ui-vertical-bar.js +0 -2
- package/dist/components/vue-ui-waffle.js +0 -2
- package/dist/components/vue-ui-wheel.js +0 -2
- package/dist/components/vue-ui-word-cloud.js +0 -2
- package/dist/components/vue-ui-world.js +0 -2
- package/dist/components/vue-ui-xy-canvas.js +0 -2
- package/dist/components/vue-ui-xy.js +0 -2
- package/dist/dom-to-png-BYtB4BF3.js +0 -237
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/geoProjections-Czak6Jn1.js +0 -145
- package/dist/img-1cKsci8e.js +0 -74
- package/dist/labelUtils-CUctkYoA.js +0 -19
- package/dist/lib-DUeYQsS0.js +0 -1882
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-D0eZ99cP.js +0 -90
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/style.css +0 -2
- package/dist/types/arrow.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -551
- package/dist/types/vue-data-ui.d.ts +0 -17190
- package/dist/types/vue-ui-3d-bar.d.ts +0 -93
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
- package/dist/types/vue-ui-annotator.d.ts +0 -34
- package/dist/types/vue-ui-bullet.d.ts +0 -85
- package/dist/types/vue-ui-bump.d.ts +0 -92
- package/dist/types/vue-ui-candlestick.d.ts +0 -106
- package/dist/types/vue-ui-carousel-table.d.ts +0 -59
- package/dist/types/vue-ui-chestnut.d.ts +0 -98
- package/dist/types/vue-ui-chord.d.ts +0 -110
- package/dist/types/vue-ui-circle-pack.d.ts +0 -126
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -125
- package/dist/types/vue-ui-dashboard.d.ts +0 -68
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
- package/dist/types/vue-ui-donut.d.ts +0 -123
- package/dist/types/vue-ui-dumbbell.d.ts +0 -94
- package/dist/types/vue-ui-flow.d.ts +0 -106
- package/dist/types/vue-ui-funnel.d.ts +0 -79
- package/dist/types/vue-ui-galaxy.d.ts +0 -114
- package/dist/types/vue-ui-gauge.d.ts +0 -89
- package/dist/types/vue-ui-geo.d.ts +0 -94
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -101
- package/dist/types/vue-ui-history-plot.d.ts +0 -114
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
- package/dist/types/vue-ui-icon.d.ts +0 -15
- package/dist/types/vue-ui-kpi.d.ts +0 -25
- package/dist/types/vue-ui-mini-loader.d.ts +0 -15
- package/dist/types/vue-ui-molecule.d.ts +0 -112
- package/dist/types/vue-ui-mood-radar.d.ts +0 -92
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
- package/dist/types/vue-ui-onion.d.ts +0 -106
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
- package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
- package/dist/types/vue-ui-pattern.d.ts +0 -15
- package/dist/types/vue-ui-quadrant.d.ts +0 -125
- package/dist/types/vue-ui-quick-chart.d.ts +0 -108
- package/dist/types/vue-ui-radar.d.ts +0 -116
- package/dist/types/vue-ui-rating.d.ts +0 -42
- package/dist/types/vue-ui-relation-circle.d.ts +0 -92
- package/dist/types/vue-ui-ridgeline.d.ts +0 -106
- package/dist/types/vue-ui-rings.d.ts +0 -98
- package/dist/types/vue-ui-scatter.d.ts +0 -97
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -28
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -49
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
- package/dist/types/vue-ui-sparkline.d.ts +0 -59
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
- package/dist/types/vue-ui-stackbar.d.ts +0 -118
- package/dist/types/vue-ui-stackline.d.ts +0 -114
- package/dist/types/vue-ui-strip-plot.d.ts +0 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
- package/dist/types/vue-ui-table.d.ts +0 -38
- package/dist/types/vue-ui-thermometer.d.ts +0 -70
- package/dist/types/vue-ui-timer.d.ts +0 -49
- package/dist/types/vue-ui-tiremarks.d.ts +0 -70
- package/dist/types/vue-ui-treemap.d.ts +0 -104
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -101
- package/dist/types/vue-ui-wheel.d.ts +0 -70
- package/dist/types/vue-ui-word-cloud.d.ts +0 -97
- package/dist/types/vue-ui-world.d.ts +0 -98
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
- package/dist/types/vue-ui-xy.d.ts +0 -146
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useConfig-DAyQk86L.js +0 -7479
- package/dist/useFitSvgText-CT3nmlaS.js +0 -63
- package/dist/useNestedProp-CNcoy38D.js +0 -10
- package/dist/useObjectBindings-BI7hP-BC.js +0 -189
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-C1Gqt_Sp.js +0 -49
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useSvgExport-SVIsDot8.js +0 -755
- package/dist/useTableResponsive-B24Uwt2E.js +0 -24
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-BmBRv27Y.js +0 -272
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-qpQv-4uP.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
- package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
- package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
- package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
- package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
- package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
- package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
- package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
- package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
- package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
- package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
- package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
- package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
- package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
- package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
- package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
- package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
- package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
- package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
- package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
- package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
- package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
- package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
- package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
- package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
- package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
- package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
- package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
- package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
- package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
- package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
- package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
- package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
- package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
- package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
- package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
- package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
- package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
- package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
- package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
- package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
- package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
- package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
- package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
- package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
- package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
- package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
- package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
- package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
- package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
- package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
- package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
- package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
- package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
- package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
- package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
- package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
- package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
- package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
- package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
- package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
- package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
|
@@ -1,920 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { B as t, Bt as n, C as r, Ct as i, Et as a, G as o, H as ee, Mt as s, Rt as te, X as c, i as ne, ot as re, t as ie, u as ae, v as oe, wt as l, x as se, xt as ce, y as le, zt as ue } from "./lib-DUeYQsS0.js";
|
|
3
|
-
import { t as de } from "./useConfig-DAyQk86L.js";
|
|
4
|
-
import { t as fe } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
-
import { n as pe, t as me } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
-
import { t as he } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ge } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
-
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ve } from "./img-1cKsci8e.js";
|
|
10
|
-
import { n as ye } from "./Title-NWp4qB4K.js";
|
|
11
|
-
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { c as xe } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
-
import { t as Se } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as we } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as Te } from "./useAutoSizeLabelsInsideViewbox-BIVntRZp.js";
|
|
17
|
-
import { t as Ee } from "./vue_ui_gauge-Cf1RZc9q.js";
|
|
18
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createVNode as Oe, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as ke, normalizeClass as Ae, normalizeProps as y, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as b, ref as x, renderList as S, renderSlot as C, shallowRef as Pe, toDisplayString as w, toRefs as Fe, unref as T, watch as Ie, withCtx as E } from "vue";
|
|
19
|
-
//#region src/components/vue-ui-gauge.vue
|
|
20
|
-
var Le = /* @__PURE__ */ e({ default: () => yt }), Re = ["id"], ze = { key: 0 }, Be = ["xmlns", "viewBox"], Ve = ["width", "height"], He = ["id"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["id"], qe = ["stdDeviation"], Je = { key: 1 }, Ye = [
|
|
21
|
-
"d",
|
|
22
|
-
"fill",
|
|
23
|
-
"stroke"
|
|
24
|
-
], Xe = [
|
|
25
|
-
"d",
|
|
26
|
-
"fill",
|
|
27
|
-
"stroke"
|
|
28
|
-
], Ze = ["d", "fill"], Qe = ["id", "d"], $e = [
|
|
29
|
-
"fill",
|
|
30
|
-
"font-size",
|
|
31
|
-
"font-weight"
|
|
32
|
-
], et = ["href", "startOffset"], tt = [
|
|
33
|
-
"text-anchor",
|
|
34
|
-
"fill",
|
|
35
|
-
"font-size",
|
|
36
|
-
"font-weight",
|
|
37
|
-
"innerHTML"
|
|
38
|
-
], nt = ["d", "filter"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = { key: 8 }, ct = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"text-anchor",
|
|
42
|
-
"font-size",
|
|
43
|
-
"font-weight",
|
|
44
|
-
"fill"
|
|
45
|
-
], lt = [
|
|
46
|
-
"x",
|
|
47
|
-
"y",
|
|
48
|
-
"font-size",
|
|
49
|
-
"font-weight",
|
|
50
|
-
"fill"
|
|
51
|
-
], ut = { key: 0 }, dt = [
|
|
52
|
-
"x1",
|
|
53
|
-
"y1",
|
|
54
|
-
"x2",
|
|
55
|
-
"y2",
|
|
56
|
-
"stroke",
|
|
57
|
-
"stroke-width"
|
|
58
|
-
], ft = [
|
|
59
|
-
"x1",
|
|
60
|
-
"y1",
|
|
61
|
-
"x2",
|
|
62
|
-
"y2",
|
|
63
|
-
"stroke",
|
|
64
|
-
"stroke-width"
|
|
65
|
-
], pt = [
|
|
66
|
-
"x1",
|
|
67
|
-
"y1",
|
|
68
|
-
"x2",
|
|
69
|
-
"y2",
|
|
70
|
-
"stroke-width",
|
|
71
|
-
"filter"
|
|
72
|
-
], mt = { key: 1 }, ht = [
|
|
73
|
-
"d",
|
|
74
|
-
"fill",
|
|
75
|
-
"stroke",
|
|
76
|
-
"stroke-width"
|
|
77
|
-
], gt = [
|
|
78
|
-
"cx",
|
|
79
|
-
"cy",
|
|
80
|
-
"fill",
|
|
81
|
-
"r",
|
|
82
|
-
"stroke-width",
|
|
83
|
-
"stroke"
|
|
84
|
-
], _t = [
|
|
85
|
-
"x",
|
|
86
|
-
"y",
|
|
87
|
-
"font-size",
|
|
88
|
-
"fill"
|
|
89
|
-
], vt = {
|
|
90
|
-
key: 4,
|
|
91
|
-
class: "vue-data-ui-watermark"
|
|
92
|
-
}, yt = /* @__PURE__ */ be({
|
|
93
|
-
__name: "vue-ui-gauge",
|
|
94
|
-
props: {
|
|
95
|
-
config: {
|
|
96
|
-
type: Object,
|
|
97
|
-
default() {
|
|
98
|
-
return {};
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
dataset: {
|
|
102
|
-
type: Object,
|
|
103
|
-
default() {
|
|
104
|
-
return {};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
emits: ["copyAlt"],
|
|
109
|
-
setup(e, { expose: be, emit: Le }) {
|
|
110
|
-
let yt = g(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), bt = g(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), xt = g(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), { vue_ui_gauge: St } = de(), { isThemeValid: Ct, warnInvalidTheme: wt } = _e(), D = e, Tt = Le, Et = d(() => !!D.dataset && Object.keys(D.dataset).length > 0 && D.dataset.series && D.dataset.series.length), O = x(ee()), Dt = x(null), Ot = x(0), k = x(null), kt = x(null), At = x(null), jt = x(null), Mt = x(null), Nt = x(0), A = x(!1), j = x(!1), M = x(zt()), Pt = d(() => M.value.userOptions.useCursorPointer), Ft = d(() => n({
|
|
111
|
-
defaultConfig: {
|
|
112
|
-
userOptions: { show: !1 },
|
|
113
|
-
style: { chart: {
|
|
114
|
-
backgroundColor: "#99999930",
|
|
115
|
-
animation: { use: !1 },
|
|
116
|
-
layout: {
|
|
117
|
-
markers: { show: !1 },
|
|
118
|
-
segmentSeparators: { stroke: "#6A6A6A" },
|
|
119
|
-
segmentNames: { show: !1 },
|
|
120
|
-
indicatorArc: { fill: "#6A6A6A50" },
|
|
121
|
-
pointer: {
|
|
122
|
-
stroke: "#6A6A6A",
|
|
123
|
-
useRatingColor: !0,
|
|
124
|
-
circle: {
|
|
125
|
-
stroke: "#6A6A6A",
|
|
126
|
-
color: "#6A6A6A"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
legend: { show: !1 }
|
|
131
|
-
} }
|
|
132
|
-
},
|
|
133
|
-
userConfig: M.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: It, FINAL_DATASET: N, manualLoading: P } = pe({
|
|
135
|
-
...Fe(D),
|
|
136
|
-
FINAL_CONFIG: M,
|
|
137
|
-
prepareConfig: zt,
|
|
138
|
-
callback: () => {
|
|
139
|
-
Promise.resolve().then(async () => {
|
|
140
|
-
await ke();
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
144
|
-
value: 0,
|
|
145
|
-
series: [{
|
|
146
|
-
from: -1,
|
|
147
|
-
to: 0,
|
|
148
|
-
name: "_",
|
|
149
|
-
color: "#A1A1A1"
|
|
150
|
-
}, {
|
|
151
|
-
from: 0,
|
|
152
|
-
to: 1,
|
|
153
|
-
name: "__",
|
|
154
|
-
color: "#CACACA"
|
|
155
|
-
}]
|
|
156
|
-
},
|
|
157
|
-
skeletonConfig: n({
|
|
158
|
-
defaultConfig: M.value,
|
|
159
|
-
userConfig: Ft.value
|
|
160
|
-
})
|
|
161
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility: Lt, keepUserOptionState: Rt } = Ce({ config: M.value }), { svgRef: I } = we({ config: M.value.style.chart.title });
|
|
162
|
-
Ie(() => D.config, (e) => {
|
|
163
|
-
It.value || (M.value = zt()), F.value = !M.value.userOptions.showOnChartHover, Yt(), Nt.value += 1;
|
|
164
|
-
}, { deep: !0 }), Ie(() => D.dataset, (e) => {
|
|
165
|
-
Yt(), e && Object.keys(e).length > 0 && (P.value = M.value?.loading ?? !1);
|
|
166
|
-
}, {
|
|
167
|
-
deep: !0,
|
|
168
|
-
immediate: !1
|
|
169
|
-
});
|
|
170
|
-
function zt() {
|
|
171
|
-
let e = ge({
|
|
172
|
-
userConfig: D.config,
|
|
173
|
-
defaultConfig: St
|
|
174
|
-
}), t = e.theme;
|
|
175
|
-
if (!t) return e;
|
|
176
|
-
if (!Ct.value(e)) return wt(e), e;
|
|
177
|
-
let n = ge({
|
|
178
|
-
userConfig: Ee[t] || D.config,
|
|
179
|
-
defaultConfig: e
|
|
180
|
-
}), r = ge({
|
|
181
|
-
userConfig: D.config,
|
|
182
|
-
defaultConfig: n
|
|
183
|
-
});
|
|
184
|
-
return {
|
|
185
|
-
...r,
|
|
186
|
-
customPalette: r.customPalette.length ? r.customPalette : te[t] || a
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
let { isPrinting: Bt, isImaging: Vt, generatePdf: Ht, generateImage: Ut } = fe({
|
|
190
|
-
elementId: `vue-ui-gauge_${O.value}`,
|
|
191
|
-
fileName: M.value.style.chart.title.text || "vue-ui-gauge",
|
|
192
|
-
options: M.value.userOptions.print
|
|
193
|
-
}), Wt = d(() => M.value.userOptions.show && !M.value.style.chart.title.text), Gt = d(() => se(M.value.customPalette)), L = d(() => {
|
|
194
|
-
if (i(N.value.series || {})) return {
|
|
195
|
-
value: 0,
|
|
196
|
-
series: [{
|
|
197
|
-
from: 0,
|
|
198
|
-
to: 0
|
|
199
|
-
}]
|
|
200
|
-
};
|
|
201
|
-
let e = [];
|
|
202
|
-
(N.value.series || []).forEach((t) => {
|
|
203
|
-
e.push(t.from || 1e-7), e.push(t.to || 1e-7);
|
|
204
|
-
});
|
|
205
|
-
let t = Math.max(...e);
|
|
206
|
-
return {
|
|
207
|
-
...N.value,
|
|
208
|
-
series: (N.value.series || []).map((e, n) => ({
|
|
209
|
-
...e,
|
|
210
|
-
color: le(e.color) || Gt.value[n] || a[n],
|
|
211
|
-
value: ((e.to || 0) - (e.from || 0)) / t * 100
|
|
212
|
-
}))
|
|
213
|
-
};
|
|
214
|
-
}), R = x(512), z = x({
|
|
215
|
-
height: 358.4,
|
|
216
|
-
width: R.value,
|
|
217
|
-
top: 0,
|
|
218
|
-
bottom: 358.4,
|
|
219
|
-
centerX: 179.2,
|
|
220
|
-
centerY: R.value / 2,
|
|
221
|
-
labelFontSize: 18,
|
|
222
|
-
legendFontSize: M.value.style.chart.legend.fontSize,
|
|
223
|
-
pointerRadius: M.value.style.chart.layout.pointer.circle.radius,
|
|
224
|
-
trackSize: M.value.style.chart.layout.track.size,
|
|
225
|
-
pointerSize: M.value.style.chart.layout.pointer.size,
|
|
226
|
-
pointerStrokeWidth: M.value.style.chart.layout.pointer.strokeWidth,
|
|
227
|
-
markerOffset: M.value.style.chart.layout.markers.offsetY + 3,
|
|
228
|
-
segmentFontSize: M.value.style.chart.layout.segmentNames.fontSize
|
|
229
|
-
}), B = x(0), V = x(0), H = x(M.value.style.chart.animation.use ? Math.min(...N.value.series.map((e) => e.from)) : N.value.value);
|
|
230
|
-
Ie(() => N.value.value, () => {
|
|
231
|
-
Xt(N.value.value);
|
|
232
|
-
});
|
|
233
|
-
let U = d(() => {
|
|
234
|
-
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI;
|
|
235
|
-
return {
|
|
236
|
-
x1: e,
|
|
237
|
-
y1: t,
|
|
238
|
-
x2: e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n),
|
|
239
|
-
y2: t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n)
|
|
240
|
-
};
|
|
241
|
-
}), Kt = d(() => {
|
|
242
|
-
let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI, r = e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n), a = z.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
|
|
243
|
-
return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${te} Z`;
|
|
244
|
-
}), qt = d(() => {
|
|
245
|
-
for (let e = 0; e < L.value.series.length; e += 1) {
|
|
246
|
-
let { color: t, from: n, to: r } = L.value.series[e];
|
|
247
|
-
if (H.value >= n && H.value <= r) return t;
|
|
248
|
-
}
|
|
249
|
-
return "#2D353C";
|
|
250
|
-
}), W = Pe(null), G = Pe(null), K = d({
|
|
251
|
-
get: () => z.value.segmentFontSize,
|
|
252
|
-
set: (e) => e
|
|
253
|
-
}), { autoSizeLabels: Jt } = Te({
|
|
254
|
-
svgRef: I,
|
|
255
|
-
fontSize: z.value.segmentFontSize,
|
|
256
|
-
minFontSize: M.value.style.chart.layout.segmentNames.minFontSize,
|
|
257
|
-
sizeRef: K,
|
|
258
|
-
labelClass: ".vue-ui-gauge-label-flat"
|
|
259
|
-
}), q = d(() => !!M.value.debug);
|
|
260
|
-
function Yt() {
|
|
261
|
-
let e = !1;
|
|
262
|
-
if (i(D.dataset) ? (c({
|
|
263
|
-
componentName: "VueUiGauge",
|
|
264
|
-
type: "dataset",
|
|
265
|
-
debug: q.value
|
|
266
|
-
}), P.value = !0, e = !0) : (re({
|
|
267
|
-
datasetObject: D.dataset,
|
|
268
|
-
requiredAttributes: ["value", "series"]
|
|
269
|
-
}).forEach((t) => {
|
|
270
|
-
c({
|
|
271
|
-
componentName: "VueUiGauge",
|
|
272
|
-
type: "datasetAttribute",
|
|
273
|
-
property: t,
|
|
274
|
-
debug: q.value
|
|
275
|
-
}), P.value = !0, e = !0;
|
|
276
|
-
}), Object.hasOwn(D.dataset, "series") && (D.dataset.series.length ? D.dataset.series.forEach((t, n) => {
|
|
277
|
-
re({
|
|
278
|
-
datasetObject: t,
|
|
279
|
-
requiredAttributes: ["from", "to"]
|
|
280
|
-
}).forEach((t) => {
|
|
281
|
-
c({
|
|
282
|
-
componentName: "VueUiGauge",
|
|
283
|
-
type: "datasetSerieAttribute",
|
|
284
|
-
property: t,
|
|
285
|
-
index: n,
|
|
286
|
-
debug: q.value
|
|
287
|
-
}), P.value = !0, e = !0;
|
|
288
|
-
});
|
|
289
|
-
}) : (c({
|
|
290
|
-
componentName: "VueUiGauge",
|
|
291
|
-
type: "datasetAttributeEmpty",
|
|
292
|
-
property: "series",
|
|
293
|
-
debug: q.value
|
|
294
|
-
}), P.value = !0, e = !0))), P.value = e, Xt(N.value.value || 0), M.value.responsive) {
|
|
295
|
-
let e = xe(() => {
|
|
296
|
-
let { width: e, height: t } = Se({
|
|
297
|
-
chart: k.value,
|
|
298
|
-
title: M.value.style.chart.title.text ? kt.value : null,
|
|
299
|
-
legend: At.value,
|
|
300
|
-
source: jt.value,
|
|
301
|
-
noTitle: Mt.value
|
|
302
|
-
});
|
|
303
|
-
t -= 12, requestAnimationFrame(() => {
|
|
304
|
-
z.value.width = e, z.value.height = t, z.value.centerX = e / 2, z.value.centerY = R.value / 2 / 358.4 * t, z.value.bottom = t, z.value.labelFontSize = 18 / R.value * Math.min(t, e) < 10 ? 10 : 18 / R.value * Math.min(t, e), z.value.legendFontSize = M.value.style.chart.legend.fontSize / R.value * Math.min(t, e) < 14 ? 14 : M.value.style.chart.legend.fontSize / R.value * Math.min(t, e), z.value.pointerRadius = M.value.style.chart.layout.pointer.circle.radius / R.value * Math.min(t, e), z.value.trackSize = M.value.style.chart.layout.track.size / R.value * Math.min(t, e), z.value.pointerStrokeWidth = ue({
|
|
305
|
-
relator: Math.min(e, t),
|
|
306
|
-
adjuster: R.value,
|
|
307
|
-
source: M.value.style.chart.layout.pointer.strokeWidth,
|
|
308
|
-
threshold: 2,
|
|
309
|
-
fallback: 2
|
|
310
|
-
}), z.value.markerOffset = ue({
|
|
311
|
-
relator: Math.max(e, t),
|
|
312
|
-
adjuster: R.value,
|
|
313
|
-
source: M.value.style.chart.layout.markers.offsetY + 3,
|
|
314
|
-
threshold: 2,
|
|
315
|
-
fallback: 2
|
|
316
|
-
}), z.value.segmentFontSize = ue({
|
|
317
|
-
relator: Math.min(e, t),
|
|
318
|
-
adjuster: R.value,
|
|
319
|
-
source: M.value.style.chart.layout.segmentNames.fontSize,
|
|
320
|
-
threshold: 8,
|
|
321
|
-
fallback: 8
|
|
322
|
-
});
|
|
323
|
-
}), Jt();
|
|
324
|
-
});
|
|
325
|
-
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = k.value.parentNode, W.value.observe(G.value);
|
|
326
|
-
}
|
|
327
|
-
Jt();
|
|
328
|
-
}
|
|
329
|
-
Ne(() => {
|
|
330
|
-
Yt();
|
|
331
|
-
}), Me(() => {
|
|
332
|
-
W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
|
|
333
|
-
});
|
|
334
|
-
function Xt(e) {
|
|
335
|
-
let t = [];
|
|
336
|
-
(L.value.series || []).forEach((e) => {
|
|
337
|
-
t.push(e.from || 0), t.push(e.to || 0);
|
|
338
|
-
}), B.value = Math.max(...t), V.value = Math.min(...t);
|
|
339
|
-
let n = M.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
|
|
340
|
-
function i() {
|
|
341
|
-
H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), H.value !== e && requestAnimationFrame(i);
|
|
342
|
-
}
|
|
343
|
-
i();
|
|
344
|
-
}
|
|
345
|
-
let J = d(() => {
|
|
346
|
-
let e = M.value.responsive ? Math.min(z.value.width, z.value.height) : z.value.width, t = 2.5 / M.value.style.chart.layout.radiusRatio;
|
|
347
|
-
return {
|
|
348
|
-
arcs: e / t,
|
|
349
|
-
gradients: e / (t * 1.1),
|
|
350
|
-
base: M.value.responsive ? z.value.height / 1.618 : z.value.height * .7,
|
|
351
|
-
ratingBase: M.value.responsive ? z.value.height / 2 + z.value.height / 4 : z.value.height * .9,
|
|
352
|
-
pointerSize: M.value.responsive ? Math.min(z.value.width, z.value.height) / 3 : z.value.width / 3.2
|
|
353
|
-
};
|
|
354
|
-
}), Y = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), Zt = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), X = d(() => Y.value.map((e) => J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = d(() => {
|
|
355
|
-
let { x: e, y: t } = l({
|
|
356
|
-
initX: Y.value[0].firstSeparator.x,
|
|
357
|
-
initY: Y.value[0].firstSeparator.y,
|
|
358
|
-
centerX: U.value.x1,
|
|
359
|
-
centerY: U.value.y1,
|
|
360
|
-
offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
|
|
361
|
-
}), { x: n, y: r } = l({
|
|
362
|
-
initX: Y.value[0].startX,
|
|
363
|
-
initY: Y.value[0].startY,
|
|
364
|
-
centerX: U.value.x1,
|
|
365
|
-
centerY: U.value.y1,
|
|
366
|
-
offset: M.value.style.chart.layout.segmentSeparators.offsetOut
|
|
367
|
-
});
|
|
368
|
-
return {
|
|
369
|
-
x1: e,
|
|
370
|
-
y1: t,
|
|
371
|
-
x2: n,
|
|
372
|
-
y2: r
|
|
373
|
-
};
|
|
374
|
-
}), $t = d(() => Y.value.map((e) => {
|
|
375
|
-
let { x: t, y: n } = l({
|
|
376
|
-
initX: e.separator.x,
|
|
377
|
-
initY: e.separator.y,
|
|
378
|
-
centerX: U.value.x1,
|
|
379
|
-
centerY: U.value.y1,
|
|
380
|
-
offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
|
|
381
|
-
}), { x: r, y: i } = l({
|
|
382
|
-
initX: e.endX,
|
|
383
|
-
initY: e.endY,
|
|
384
|
-
centerX: U.value.x1,
|
|
385
|
-
centerY: U.value.y1,
|
|
386
|
-
offset: M.value.style.chart.layout.segmentSeparators.offsetOut
|
|
387
|
-
});
|
|
388
|
-
return {
|
|
389
|
-
x1: t,
|
|
390
|
-
y1: n,
|
|
391
|
-
x2: r,
|
|
392
|
-
y2: i
|
|
393
|
-
};
|
|
394
|
-
}));
|
|
395
|
-
function en(e) {
|
|
396
|
-
if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
|
|
397
|
-
let t = 0;
|
|
398
|
-
return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
|
|
399
|
-
}
|
|
400
|
-
let tn = d(() => en(Y.value.map((e) => e.proportion * 100))), nn = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * z.value.trackSize)), rn = d(() => {
|
|
401
|
-
let e = V.value >= 0 ? -V.value : Math.abs(V.value);
|
|
402
|
-
return r({
|
|
403
|
-
radius: M.value.style.chart.layout.indicatorArc.radius * z.value.trackSize,
|
|
404
|
-
centerX: z.value.width / 2,
|
|
405
|
-
centerY: J.value.base,
|
|
406
|
-
percentage: oe((H.value + e) / (B.value + e))
|
|
407
|
-
});
|
|
408
|
-
}), Z = x(!1);
|
|
409
|
-
function an(e) {
|
|
410
|
-
Z.value = e, Ot.value += 1;
|
|
411
|
-
}
|
|
412
|
-
let Q = x(!1);
|
|
413
|
-
function $() {
|
|
414
|
-
Q.value = !Q.value;
|
|
415
|
-
}
|
|
416
|
-
async function on({ scale: e = 2 } = {}) {
|
|
417
|
-
if (!k.value) return;
|
|
418
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
419
|
-
domElement: k.value,
|
|
420
|
-
base64: !0,
|
|
421
|
-
img: !0,
|
|
422
|
-
scale: e
|
|
423
|
-
});
|
|
424
|
-
return {
|
|
425
|
-
imageUri: i,
|
|
426
|
-
base64: a,
|
|
427
|
-
title: M.value.style.chart.title.text,
|
|
428
|
-
width: t,
|
|
429
|
-
height: n,
|
|
430
|
-
aspectRatio: r
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
let sn = d(() => M.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = he({
|
|
434
|
-
svg: I,
|
|
435
|
-
title: d(() => M.value.style.chart.title),
|
|
436
|
-
backgroundColor: sn
|
|
437
|
-
});
|
|
438
|
-
async function un({ isCb: e }) {
|
|
439
|
-
j.value = !0, await ke();
|
|
440
|
-
try {
|
|
441
|
-
if (e) {
|
|
442
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ln();
|
|
443
|
-
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
444
|
-
blob: e,
|
|
445
|
-
url: t,
|
|
446
|
-
text: n,
|
|
447
|
-
dataUrl: r
|
|
448
|
-
}));
|
|
449
|
-
} else await Promise.resolve(cn());
|
|
450
|
-
} finally {
|
|
451
|
-
j.value = !1;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function dn(e) {
|
|
455
|
-
if (e?.stage === "start") {
|
|
456
|
-
A.value = !0;
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
if (e?.stage === "end") {
|
|
460
|
-
A.value = !1;
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
Ut();
|
|
464
|
-
}
|
|
465
|
-
async function fn() {
|
|
466
|
-
if (Tt("copyAlt", {
|
|
467
|
-
config: M.value,
|
|
468
|
-
dataset: L.value
|
|
469
|
-
}), !M.value.userOptions.callbacks.altCopy) {
|
|
470
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
474
|
-
config: M.value,
|
|
475
|
-
dataset: L.value
|
|
476
|
-
}));
|
|
477
|
-
}
|
|
478
|
-
return be({
|
|
479
|
-
getImage: on,
|
|
480
|
-
generatePdf: Ht,
|
|
481
|
-
generateImage: Ut,
|
|
482
|
-
generateSvg: un,
|
|
483
|
-
toggleAnnotator: $,
|
|
484
|
-
toggleFullscreen: an,
|
|
485
|
-
copyAlt: fn
|
|
486
|
-
}), (e, n) => (b(), m("div", {
|
|
487
|
-
class: Ae(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
488
|
-
ref_key: "gaugeChart",
|
|
489
|
-
ref: k,
|
|
490
|
-
id: `vue-ui-gauge_${O.value}`,
|
|
491
|
-
style: je(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
492
|
-
onMouseenter: n[0] ||= () => T(Lt)(!0),
|
|
493
|
-
onMouseleave: n[1] ||= () => T(Lt)(!1)
|
|
494
|
-
}, [
|
|
495
|
-
M.value.userOptions.buttons.annotator ? (b(), f(T(yt), {
|
|
496
|
-
key: 0,
|
|
497
|
-
svgRef: T(I),
|
|
498
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
499
|
-
color: M.value.style.chart.color,
|
|
500
|
-
active: Q.value,
|
|
501
|
-
isCursorPointer: Pt.value,
|
|
502
|
-
onClose: $
|
|
503
|
-
}, {
|
|
504
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
505
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
506
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
507
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
508
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
509
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
510
|
-
_: 3
|
|
511
|
-
}, 8, [
|
|
512
|
-
"svgRef",
|
|
513
|
-
"backgroundColor",
|
|
514
|
-
"color",
|
|
515
|
-
"active",
|
|
516
|
-
"isCursorPointer"
|
|
517
|
-
])) : p("", !0),
|
|
518
|
-
Wt.value ? (b(), m("div", {
|
|
519
|
-
key: 1,
|
|
520
|
-
ref_key: "noTitle",
|
|
521
|
-
ref: Mt,
|
|
522
|
-
class: "vue-data-ui-no-title-space",
|
|
523
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
524
|
-
}, null, 512)) : p("", !0),
|
|
525
|
-
M.value.style.chart.title.text ? (b(), m("div", {
|
|
526
|
-
key: 2,
|
|
527
|
-
ref_key: "chartTitle",
|
|
528
|
-
ref: kt,
|
|
529
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
530
|
-
}, [(b(), f(ye, {
|
|
531
|
-
key: `title_${Nt.value}`,
|
|
532
|
-
config: {
|
|
533
|
-
title: {
|
|
534
|
-
cy: "gauge-div-title",
|
|
535
|
-
...M.value.style.chart.title
|
|
536
|
-
},
|
|
537
|
-
subtitle: {
|
|
538
|
-
cy: "gauge-div-subtitle",
|
|
539
|
-
...M.value.style.chart.title.subtitle
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}, {
|
|
543
|
-
default: E(() => [M.value.translations.base && T(N).base ? (b(), m("span", ze, w(M.value.translations.base) + ": " + w(T(N).base), 1)) : p("", !0)]),
|
|
544
|
-
_: 1
|
|
545
|
-
}, 8, ["config"]))], 512)) : p("", !0),
|
|
546
|
-
M.value.userOptions.show && Et.value && (T(Rt) || T(F)) ? (b(), f(T(bt), {
|
|
547
|
-
ref_key: "details",
|
|
548
|
-
ref: Dt,
|
|
549
|
-
key: `user_options_${Ot.value}`,
|
|
550
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
551
|
-
color: M.value.style.chart.color,
|
|
552
|
-
isImaging: T(Vt),
|
|
553
|
-
isPrinting: T(Bt),
|
|
554
|
-
uid: O.value,
|
|
555
|
-
hasXls: !1,
|
|
556
|
-
hasPdf: M.value.userOptions.buttons.pdf,
|
|
557
|
-
hasImg: M.value.userOptions.buttons.img,
|
|
558
|
-
hasSvg: M.value.userOptions.buttons.svg,
|
|
559
|
-
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
560
|
-
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
561
|
-
isFullscreen: Z.value,
|
|
562
|
-
titles: { ...M.value.userOptions.buttonTitles },
|
|
563
|
-
chartElement: k.value,
|
|
564
|
-
callbacks: M.value.userOptions.callbacks,
|
|
565
|
-
printScale: M.value.userOptions.print.scale,
|
|
566
|
-
position: M.value.userOptions.position,
|
|
567
|
-
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
568
|
-
isAnnotation: Q.value,
|
|
569
|
-
isCursorPointer: Pt.value,
|
|
570
|
-
onToggleFullscreen: an,
|
|
571
|
-
onGeneratePdf: T(Ht),
|
|
572
|
-
onGenerateImage: dn,
|
|
573
|
-
onGenerateSvg: un,
|
|
574
|
-
onToggleAnnotator: $,
|
|
575
|
-
onCopyAlt: fn,
|
|
576
|
-
style: je({ visibility: T(Rt) ? T(F) ? "visible" : "hidden" : "visible" })
|
|
577
|
-
}, De({ _: 2 }, [
|
|
578
|
-
e.$slots.menuIcon ? {
|
|
579
|
-
name: "menuIcon",
|
|
580
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
|
|
581
|
-
isOpen: t,
|
|
582
|
-
color: n
|
|
583
|
-
})), void 0, !0)]),
|
|
584
|
-
key: "0"
|
|
585
|
-
} : void 0,
|
|
586
|
-
e.$slots.optionPdf ? {
|
|
587
|
-
name: "optionPdf",
|
|
588
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
589
|
-
key: "1"
|
|
590
|
-
} : void 0,
|
|
591
|
-
e.$slots.optionImg ? {
|
|
592
|
-
name: "optionImg",
|
|
593
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
594
|
-
key: "2"
|
|
595
|
-
} : void 0,
|
|
596
|
-
e.$slots.optionSvg ? {
|
|
597
|
-
name: "optionSvg",
|
|
598
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
599
|
-
key: "3"
|
|
600
|
-
} : void 0,
|
|
601
|
-
e.$slots.optionFullscreen ? {
|
|
602
|
-
name: "optionFullscreen",
|
|
603
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
|
|
604
|
-
toggleFullscreen: t,
|
|
605
|
-
isFullscreen: n
|
|
606
|
-
})), void 0, !0)]),
|
|
607
|
-
key: "4"
|
|
608
|
-
} : void 0,
|
|
609
|
-
e.$slots.optionAnnotator ? {
|
|
610
|
-
name: "optionAnnotator",
|
|
611
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
|
|
612
|
-
toggleAnnotator: t,
|
|
613
|
-
isAnnotator: n
|
|
614
|
-
})), void 0, !0)]),
|
|
615
|
-
key: "5"
|
|
616
|
-
} : void 0,
|
|
617
|
-
e.$slots.optionAltCopy ? {
|
|
618
|
-
name: "optionAltCopy",
|
|
619
|
-
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
620
|
-
key: "6"
|
|
621
|
-
} : void 0,
|
|
622
|
-
e.$slots["custom-menu-before"] ? {
|
|
623
|
-
name: "custom-menu-before",
|
|
624
|
-
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
625
|
-
key: "7"
|
|
626
|
-
} : void 0,
|
|
627
|
-
e.$slots["custom-menu-after"] ? {
|
|
628
|
-
name: "custom-menu-after",
|
|
629
|
-
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
630
|
-
key: "8"
|
|
631
|
-
} : void 0
|
|
632
|
-
]), 1032, [
|
|
633
|
-
"backgroundColor",
|
|
634
|
-
"color",
|
|
635
|
-
"isImaging",
|
|
636
|
-
"isPrinting",
|
|
637
|
-
"uid",
|
|
638
|
-
"hasPdf",
|
|
639
|
-
"hasImg",
|
|
640
|
-
"hasSvg",
|
|
641
|
-
"hasFullscreen",
|
|
642
|
-
"hasAltCopy",
|
|
643
|
-
"isFullscreen",
|
|
644
|
-
"titles",
|
|
645
|
-
"chartElement",
|
|
646
|
-
"callbacks",
|
|
647
|
-
"printScale",
|
|
648
|
-
"position",
|
|
649
|
-
"hasAnnotator",
|
|
650
|
-
"isAnnotation",
|
|
651
|
-
"isCursorPointer",
|
|
652
|
-
"onGeneratePdf",
|
|
653
|
-
"style"
|
|
654
|
-
])) : p("", !0),
|
|
655
|
-
(b(), m("svg", {
|
|
656
|
-
ref_key: "svgRef",
|
|
657
|
-
ref: I,
|
|
658
|
-
xmlns: T(ie),
|
|
659
|
-
class: Ae({
|
|
660
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
661
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
662
|
-
}),
|
|
663
|
-
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
664
|
-
style: je(`max-width:100%;overflow:hidden !important;background:transparent;color:${M.value.style.chart.color}`)
|
|
665
|
-
}, [
|
|
666
|
-
Oe(T(xt)),
|
|
667
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
668
|
-
key: 0,
|
|
669
|
-
x: 0,
|
|
670
|
-
y: 0,
|
|
671
|
-
width: z.value.width <= 0 ? 10 : z.value.width,
|
|
672
|
-
height: z.value.height <= 0 ? 10 : z.value.height,
|
|
673
|
-
style: { pointerEvents: "none" }
|
|
674
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : p("", !0),
|
|
675
|
-
h("defs", null, [h("radialGradient", {
|
|
676
|
-
id: `gradient_${O.value}`,
|
|
677
|
-
cx: "50%",
|
|
678
|
-
cy: "50%",
|
|
679
|
-
r: "50%",
|
|
680
|
-
fx: "50%",
|
|
681
|
-
fy: "50%"
|
|
682
|
-
}, [
|
|
683
|
-
h("stop", {
|
|
684
|
-
offset: "0%",
|
|
685
|
-
"stop-color": T(s)("#FFFFFF", 1)
|
|
686
|
-
}, null, 8, Ue),
|
|
687
|
-
h("stop", {
|
|
688
|
-
offset: "80%",
|
|
689
|
-
"stop-color": T(s)("#FFFFFF", M.value.style.chart.layout.track.gradientIntensity)
|
|
690
|
-
}, null, 8, We),
|
|
691
|
-
h("stop", {
|
|
692
|
-
offset: "100%",
|
|
693
|
-
"stop-color": T(s)("#FFFFFF", 1)
|
|
694
|
-
}, null, 8, Ge)
|
|
695
|
-
], 8, He)]),
|
|
696
|
-
h("defs", null, [h("filter", {
|
|
697
|
-
id: `blur_${O.value}`,
|
|
698
|
-
x: "-50%",
|
|
699
|
-
y: "-50%",
|
|
700
|
-
width: "200%",
|
|
701
|
-
height: "200%"
|
|
702
|
-
}, [h("feGaussianBlur", {
|
|
703
|
-
in: "SourceGraphic",
|
|
704
|
-
stdDeviation: 100 / M.value.style.chart.layout.track.gradientIntensity
|
|
705
|
-
}, null, 8, qe)], 8, Ke)]),
|
|
706
|
-
e.$slots.pattern ? (b(), m("g", Je, [(b(!0), m(u, null, S(Y.value, (t, n) => (b(), m("defs", null, [C(e.$slots, "pattern", v({ ref_for: !0 }, {
|
|
707
|
-
seriesIndex: n,
|
|
708
|
-
patternId: `pattern_${O.value}_${n}`
|
|
709
|
-
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
710
|
-
(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("path", {
|
|
711
|
-
key: `arc_${t}`,
|
|
712
|
-
d: e.arcSlice,
|
|
713
|
-
fill: e.color,
|
|
714
|
-
stroke: M.value.style.chart.backgroundColor,
|
|
715
|
-
"stroke-linecap": "round"
|
|
716
|
-
}, null, 8, Ye))), 128)),
|
|
717
|
-
e.$slots.pattern ? (b(!0), m(u, { key: 2 }, S(Y.value, (e, t) => (b(), m("path", {
|
|
718
|
-
key: `arc_${t}`,
|
|
719
|
-
d: e.arcSlice,
|
|
720
|
-
fill: `url(#pattern_${O.value}_${t})`,
|
|
721
|
-
stroke: M.value.style.chart.backgroundColor,
|
|
722
|
-
"stroke-linecap": "round"
|
|
723
|
-
}, null, 8, Xe))), 128)) : p("", !0),
|
|
724
|
-
M.value.style.chart.layout.indicatorArc.show ? (b(), m("path", {
|
|
725
|
-
key: 3,
|
|
726
|
-
d: rn.value,
|
|
727
|
-
fill: M.value.style.chart.layout.indicatorArc.fill
|
|
728
|
-
}, null, 8, Ze)) : p("", !0),
|
|
729
|
-
M.value.style.chart.layout.segmentNames.show && M.value.style.chart.layout.segmentNames.curved ? (b(), m(u, { key: 4 }, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("path", {
|
|
730
|
-
id: `curve_${O.value}_${t}`,
|
|
731
|
-
d: `M ${U.value.x1},${U.value.y1} m -${X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 ${2 * X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 -${2 * X.value[t]},0`,
|
|
732
|
-
fill: "transparent"
|
|
733
|
-
}, null, 8, Qe))), 256)), (b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("text", {
|
|
734
|
-
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
735
|
-
"font-size": K.value,
|
|
736
|
-
"font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
737
|
-
"text-anchor": "middle"
|
|
738
|
-
}, [h("textPath", {
|
|
739
|
-
href: `#curve_${O.value}_${t}`,
|
|
740
|
-
startOffset: tn.value[t]
|
|
741
|
-
}, w(e.name || ""), 9, et)], 8, $e))), 256))], 64)) : p("", !0),
|
|
742
|
-
M.value.style.chart.layout.segmentNames.show && !M.value.style.chart.layout.segmentNames.curved ? (b(!0), m(u, { key: 5 }, S(Zt.value, (e, n) => (b(), m("text", {
|
|
743
|
-
class: "vue-ui-gauge-label-flat",
|
|
744
|
-
"text-anchor": T(ae)(e, !1, 12).anchor,
|
|
745
|
-
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
746
|
-
"font-size": K.value,
|
|
747
|
-
"font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
748
|
-
innerHTML: T(t)({
|
|
749
|
-
content: String(e.name ?? ""),
|
|
750
|
-
fontSize: K.value,
|
|
751
|
-
fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
|
|
752
|
-
x: e.center.endX,
|
|
753
|
-
y: e.center.endY
|
|
754
|
-
})
|
|
755
|
-
}, null, 8, tt))), 256)) : p("", !0),
|
|
756
|
-
M.value.style.chart.layout.track.useGradient ? (b(!0), m(u, { key: 6 }, S(nn.value, (e, t) => (b(), m("path", {
|
|
757
|
-
key: `arc_${t}`,
|
|
758
|
-
d: e.arcSlice,
|
|
759
|
-
fill: "#FFFFFF",
|
|
760
|
-
stroke: "none",
|
|
761
|
-
"stroke-linecap": "round",
|
|
762
|
-
filter: `url(#blur_${O.value})`
|
|
763
|
-
}, null, 8, nt))), 128)) : p("", !0),
|
|
764
|
-
M.value.style.chart.layout.segmentSeparators.show ? (b(), m(u, { key: 7 }, [
|
|
765
|
-
h("line", v(Qt.value, {
|
|
766
|
-
stroke: M.value.style.chart.backgroundColor,
|
|
767
|
-
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
768
|
-
"stroke-linecap": "round"
|
|
769
|
-
}), null, 16, rt),
|
|
770
|
-
h("line", v(Qt.value, {
|
|
771
|
-
stroke: M.value.style.chart.layout.segmentSeparators.stroke,
|
|
772
|
-
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
773
|
-
"stroke-linecap": "round"
|
|
774
|
-
}), null, 16, it),
|
|
775
|
-
(b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
|
|
776
|
-
stroke: M.value.style.chart.backgroundColor,
|
|
777
|
-
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
778
|
-
"stroke-linecap": "round"
|
|
779
|
-
}), null, 16, at))), 256)),
|
|
780
|
-
(b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
|
|
781
|
-
stroke: M.value.style.chart.layout.segmentSeparators.stroke,
|
|
782
|
-
"stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
783
|
-
"stroke-linecap": "round"
|
|
784
|
-
}), null, 16, ot))), 256))
|
|
785
|
-
], 64)) : p("", !0),
|
|
786
|
-
M.value.style.chart.layout.markers.show ? (b(), m("g", st, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("text", {
|
|
787
|
-
x: T(l)({
|
|
788
|
-
centerX: U.value.x1,
|
|
789
|
-
centerY: J.value.base,
|
|
790
|
-
initX: e.center.startX,
|
|
791
|
-
initY: e.center.startY,
|
|
792
|
-
offset: z.value.markerOffset
|
|
793
|
-
}).x,
|
|
794
|
-
y: T(l)({
|
|
795
|
-
centerX: U.value.x1,
|
|
796
|
-
centerY: J.value.base,
|
|
797
|
-
initX: e.center.startX,
|
|
798
|
-
initY: e.center.startY,
|
|
799
|
-
offset: z.value.markerOffset
|
|
800
|
-
}).y,
|
|
801
|
-
"text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
|
|
802
|
-
"font-size": z.value.labelFontSize * M.value.style.chart.layout.markers.fontSizeRatio,
|
|
803
|
-
"font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
804
|
-
fill: M.value.style.chart.layout.markers.color
|
|
805
|
-
}, w(T(ne)(M.value.style.chart.layout.markers.formatter, e.from, T(o)({
|
|
806
|
-
p: M.value.style.chart.layout.markers.prefix,
|
|
807
|
-
v: e.from,
|
|
808
|
-
s: M.value.style.chart.layout.markers.suffix,
|
|
809
|
-
r: M.value.style.chart.layout.markers.roundingValue
|
|
810
|
-
}))), 9, ct))), 256))])) : p("", !0),
|
|
811
|
-
M.value.style.chart.layout.markers.show ? (b(), m("text", {
|
|
812
|
-
key: 9,
|
|
813
|
-
x: T(l)({
|
|
814
|
-
centerX: z.value.width / 2,
|
|
815
|
-
centerY: J.value.base,
|
|
816
|
-
initX: Y.value.at(-1).endX,
|
|
817
|
-
initY: Y.value.at(-1).endY,
|
|
818
|
-
offset: z.value.markerOffset
|
|
819
|
-
}).x,
|
|
820
|
-
y: T(l)({
|
|
821
|
-
centerX: z.value.width / 2,
|
|
822
|
-
centerY: J.value.base,
|
|
823
|
-
initX: Y.value.at(-1).endX,
|
|
824
|
-
initY: Y.value.at(-1).endY,
|
|
825
|
-
offset: z.value.markerOffset
|
|
826
|
-
}).y,
|
|
827
|
-
"text-anchor": "start",
|
|
828
|
-
"font-size": z.value.labelFontSize * M.value.style.chart.layout.markers.fontSizeRatio,
|
|
829
|
-
"font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
830
|
-
fill: M.value.style.chart.layout.markers.color
|
|
831
|
-
}, w(T(ne)(M.value.style.chart.layout.markers.formatter, B.value, T(o)({
|
|
832
|
-
p: M.value.style.chart.layout.markers.prefix,
|
|
833
|
-
v: B.value,
|
|
834
|
-
s: M.value.style.chart.layout.markers.suffix,
|
|
835
|
-
r: M.value.style.chart.layout.markers.roundingValue
|
|
836
|
-
}))), 9, lt)) : p("", !0),
|
|
837
|
-
M.value.style.chart.layout.pointer.show ? (b(), m(u, { key: 10 }, [M.value.style.chart.layout.pointer.type === "rounded" ? (b(), m("g", ut, [
|
|
838
|
-
isNaN(U.value.x2) ? p("", !0) : (b(), m("line", {
|
|
839
|
-
key: 0,
|
|
840
|
-
x1: U.value.x1,
|
|
841
|
-
y1: U.value.y1,
|
|
842
|
-
x2: U.value.x2,
|
|
843
|
-
y2: U.value.y2,
|
|
844
|
-
stroke: M.value.style.chart.layout.pointer.stroke,
|
|
845
|
-
"stroke-width": z.value.pointerStrokeWidth,
|
|
846
|
-
"stroke-linecap": "round"
|
|
847
|
-
}, null, 8, dt)),
|
|
848
|
-
isNaN(U.value.x2) ? p("", !0) : (b(), m("line", {
|
|
849
|
-
key: 1,
|
|
850
|
-
x1: U.value.x1,
|
|
851
|
-
y1: U.value.y1,
|
|
852
|
-
x2: U.value.x2,
|
|
853
|
-
y2: U.value.y2,
|
|
854
|
-
stroke: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
|
|
855
|
-
"stroke-linecap": "round",
|
|
856
|
-
"stroke-width": z.value.pointerStrokeWidth * .7
|
|
857
|
-
}, null, 8, ft)),
|
|
858
|
-
!isNaN(U.value.x2) && M.value.style.chart.layout.track.useGradient ? (b(), m("line", {
|
|
859
|
-
key: 2,
|
|
860
|
-
x1: U.value.x1,
|
|
861
|
-
y1: U.value.y1,
|
|
862
|
-
x2: U.value.x2,
|
|
863
|
-
y2: U.value.y2,
|
|
864
|
-
stroke: "white",
|
|
865
|
-
"stroke-linecap": "round",
|
|
866
|
-
"stroke-width": z.value.pointerStrokeWidth * .3,
|
|
867
|
-
filter: `url(#blur_${O.value})`
|
|
868
|
-
}, null, 8, pt)) : p("", !0)
|
|
869
|
-
])) : (b(), m("g", mt, [Kt.value ? (b(), m("path", {
|
|
870
|
-
key: 0,
|
|
871
|
-
d: Kt.value,
|
|
872
|
-
fill: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
|
|
873
|
-
stroke: M.value.style.chart.layout.pointer.stroke,
|
|
874
|
-
"stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
875
|
-
"stroke-linejoin": "round"
|
|
876
|
-
}, null, 8, ht)) : p("", !0)])), h("circle", {
|
|
877
|
-
cx: z.value.width / 2,
|
|
878
|
-
cy: J.value.base,
|
|
879
|
-
fill: M.value.style.chart.layout.pointer.circle.color,
|
|
880
|
-
r: z.value.pointerRadius <= 0 ? 1e-4 : z.value.pointerRadius,
|
|
881
|
-
"stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
882
|
-
stroke: M.value.style.chart.layout.pointer.circle.stroke
|
|
883
|
-
}, null, 8, gt)], 64)) : p("", !0),
|
|
884
|
-
M.value.style.chart.legend.show ? (b(), m("text", {
|
|
885
|
-
key: 11,
|
|
886
|
-
x: z.value.width / 2,
|
|
887
|
-
y: J.value.ratingBase,
|
|
888
|
-
"text-anchor": "middle",
|
|
889
|
-
"font-size": z.value.legendFontSize,
|
|
890
|
-
"font-weight": "bold",
|
|
891
|
-
fill: M.value.style.chart.legend.useRatingColor ? qt.value : M.value.style.chart.legend.color
|
|
892
|
-
}, w(T(ne)(M.value.style.chart.legend.formatter, H.value, T(o)({
|
|
893
|
-
p: M.value.style.chart.legend.prefix + (M.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
|
|
894
|
-
v: H.value,
|
|
895
|
-
s: M.value.style.chart.legend.suffix,
|
|
896
|
-
r: M.value.style.chart.legend.roundingValue
|
|
897
|
-
}))), 9, _t)) : p("", !0),
|
|
898
|
-
C(e.$slots, "svg", { svg: {
|
|
899
|
-
...z.value,
|
|
900
|
-
isPrintingImg: T(Bt) || T(Vt) || A.value,
|
|
901
|
-
isPrintingSvg: j.value
|
|
902
|
-
} }, void 0, !0)
|
|
903
|
-
], 14, Be)),
|
|
904
|
-
e.$slots.watermark ? (b(), m("div", vt, [C(e.$slots, "watermark", y(_({ isPrinting: T(Bt) || T(Vt) || A.value || j.value })), void 0, !0)])) : p("", !0),
|
|
905
|
-
h("div", {
|
|
906
|
-
ref_key: "chartLegend",
|
|
907
|
-
ref: At
|
|
908
|
-
}, [C(e.$slots, "legend", { legend: L.value }, void 0, !0)], 512),
|
|
909
|
-
e.$slots.source ? (b(), m("div", {
|
|
910
|
-
key: 5,
|
|
911
|
-
ref_key: "source",
|
|
912
|
-
ref: jt,
|
|
913
|
-
dir: "auto"
|
|
914
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
915
|
-
C(e.$slots, "skeleton", {}, () => [T(It) ? (b(), f(me, { key: 0 })) : p("", !0)], !0)
|
|
916
|
-
], 46, Re));
|
|
917
|
-
}
|
|
918
|
-
}, [["__scopeId", "data-v-a2cc058b"]]);
|
|
919
|
-
//#endregion
|
|
920
|
-
export { Le as n, yt as t };
|