vue-data-ui 2.4.57 → 2.4.59
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 +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as Ge, computed as f, ref as
|
|
2
|
-
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as
|
|
1
|
+
import { useCssVars as Ge, computed as f, ref as o, watch as Ve, onMounted as We, onBeforeUnmount as De, openBlock as i, createElementBlock as a, normalizeStyle as C, unref as u, createBlock as F, createCommentVNode as v, createSlots as Xe, withCtx as B, renderSlot as h, normalizeProps as A, guardReactiveProps as W, normalizeClass as D, createVNode as Ye, createElementVNode as qe, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as E } from "vue";
|
|
2
|
+
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-B9RAElpI.js";
|
|
3
3
|
import { t as st, u as it } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as at } from "./Title-
|
|
5
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
6
|
-
import ut from "./vue-ui-skeleton-
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as ot } from "./PackageVersion-
|
|
9
|
-
import { P as ct } from "./PenAndPaper-
|
|
4
|
+
import { _ as at } from "./Title-zZtEcB9F.js";
|
|
5
|
+
import { u as nt, U as rt } from "./usePrinter-CwTAwqtF.js";
|
|
6
|
+
import ut from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
7
|
+
import { u as we } from "./useNestedProp-DuruL3Nt.js";
|
|
8
|
+
import { _ as ot } from "./PackageVersion-C_FFs0BP.js";
|
|
9
|
+
import { P as ct } from "./PenAndPaper-Dx24BtRW.js";
|
|
10
10
|
import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "stroke-width"],
|
|
12
|
+
const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["cx", "cy", "r", "stroke", "stroke-width"], mt = { key: 1 }, kt = ["stroke", "d", "stroke-width"], pt = { style: { "pointer-events": "none" } }, wt = ["cx", "cy", "fill", "r", "stroke"], xt = ["x", "y", "fill", "font-size"], bt = { key: 2 }, $t = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], _t = { style: { "pointer-events": "none" } }, Ct = ["cx", "cy", "fill", "r", "stroke"], Pt = ["x", "y", "fill", "font-size"], Lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ot = ["cx", "cy", "fill", "stroke", "onClick", "r"], zt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, At = {
|
|
16
16
|
__name: "vue-ui-relation-circle",
|
|
17
17
|
props: {
|
|
18
18
|
dataset: {
|
|
@@ -28,37 +28,37 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
31
|
+
setup(xe, { expose: be }) {
|
|
32
|
+
const p = xe;
|
|
33
33
|
Ge((e) => ({
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
"4beec998": Oe.value,
|
|
35
|
+
15467313: Le.value,
|
|
36
|
+
e556a096: ze.value
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_relation_circle: $e } = He(),
|
|
38
|
+
const { vue_ui_relation_circle: $e } = He(), T = f(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Je()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = f({
|
|
39
39
|
get: () => le(),
|
|
40
40
|
set: (e) => e
|
|
41
41
|
}), { userOptionsVisible: N, setUserOptionsVisibility: ee, keepUserOptionState: te } = dt({ config: l.value });
|
|
42
42
|
function le() {
|
|
43
|
-
const e =
|
|
44
|
-
userConfig:
|
|
43
|
+
const e = we({
|
|
44
|
+
userConfig: p.config,
|
|
45
45
|
defaultConfig: $e
|
|
46
46
|
});
|
|
47
47
|
return e.theme ? {
|
|
48
|
-
...
|
|
49
|
-
userConfig: Ke.vue_ui_relation_circle[e.theme] ||
|
|
48
|
+
...we({
|
|
49
|
+
userConfig: Ke.vue_ui_relation_circle[e.theme] || p.config,
|
|
50
50
|
defaultConfig: e
|
|
51
51
|
}),
|
|
52
52
|
customPalette: Qe[e.theme] || me
|
|
53
53
|
} : e;
|
|
54
54
|
}
|
|
55
|
-
Ve(() =>
|
|
55
|
+
Ve(() => p.config, (e) => {
|
|
56
56
|
l.value = le(), N.value = !l.value.showOnChartHover, ce(), Z.value += 1;
|
|
57
57
|
}, { deep: !0 });
|
|
58
58
|
const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: ne } = nt({
|
|
59
59
|
elementId: `relation_circle_${O.value}`,
|
|
60
60
|
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
61
|
-
}), _e = f(() => l.value.userOptions.show && !l.value.style.title.text), re = f(() => Ze(l.value.customPalette)),
|
|
61
|
+
}), _e = f(() => l.value.userOptions.show && !l.value.style.title.text), re = f(() => Ze(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Ce = o(0), R = f(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), r = o({
|
|
62
62
|
height: l.value.style.size,
|
|
63
63
|
width: l.value.style.size
|
|
64
64
|
}), b = f({
|
|
@@ -68,20 +68,20 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
68
68
|
set(e) {
|
|
69
69
|
return e;
|
|
70
70
|
}
|
|
71
|
-
}), Pe = f(() => l.value.style.links.curved), Le = f(() => `${l.value.style.animation.speedMs}ms`), Oe = f(() => b.value * 2), ze = f(() => b.value * 4), I =
|
|
71
|
+
}), Pe = f(() => l.value.style.links.curved), Le = f(() => `${l.value.style.animation.speedMs}ms`), Oe = f(() => b.value * 2), ze = f(() => b.value * 4), I = o(null);
|
|
72
72
|
We(() => {
|
|
73
73
|
ce(), document.getElementById(`relation_circle_${O.value}`).addEventListener("click", de);
|
|
74
74
|
});
|
|
75
75
|
function ce() {
|
|
76
|
-
if (et(
|
|
76
|
+
if (et(p.dataset) ? ke({
|
|
77
77
|
componentName: "VueUiRelationCircle",
|
|
78
78
|
type: "dataset"
|
|
79
|
-
}) :
|
|
79
|
+
}) : p.dataset.forEach((e, s) => {
|
|
80
80
|
tt({
|
|
81
81
|
datasetObject: e,
|
|
82
82
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
83
83
|
}).forEach((t) => {
|
|
84
|
-
|
|
84
|
+
ke({
|
|
85
85
|
componentName: "VueUiRelationCircle",
|
|
86
86
|
type: "datasetSerieAttribute",
|
|
87
87
|
property: t,
|
|
@@ -96,7 +96,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
96
96
|
source: K.value,
|
|
97
97
|
noTitle: Q.value
|
|
98
98
|
});
|
|
99
|
-
$.value = Math.min(s, t),
|
|
99
|
+
$.value = Math.min(s, t), r.value.width = s, r.value.height = t, b.value = $.value * l.value.style.circle.radiusProportion, x.value = [], g.value = [], ve(), ye(), k.value = q({
|
|
100
100
|
relator: $.value,
|
|
101
101
|
adjuster: l.value.style.size,
|
|
102
102
|
source: l.value.style.weightLabels.size,
|
|
@@ -118,21 +118,21 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
118
118
|
});
|
|
119
119
|
I.value = new ResizeObserver(e), I.value.observe(z.value.parentNode);
|
|
120
120
|
} else
|
|
121
|
-
|
|
121
|
+
x.value = [], g.value = [], ve(), ye();
|
|
122
122
|
}
|
|
123
123
|
De(() => {
|
|
124
124
|
document.getElementById(`relation_circle_${O.value}`).removeEventListener("click", de), I.value && I.value.disconnect();
|
|
125
125
|
});
|
|
126
126
|
function de(e) {
|
|
127
127
|
const s = e.target;
|
|
128
|
-
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (
|
|
128
|
+
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (c.value = {}, m.value = []);
|
|
129
129
|
}
|
|
130
130
|
function ve() {
|
|
131
131
|
const e = 6.28319 / R.value.length, s = 360 / R.value.length;
|
|
132
132
|
let t = 0, n = 0;
|
|
133
133
|
R.value.forEach((y, d) => {
|
|
134
|
-
const G = y.weights.reduce((je, Ue) => je + Ue, 0), V = b.value * Math.cos(t) +
|
|
135
|
-
|
|
134
|
+
const G = y.weights.reduce((je, Ue) => je + Ue, 0), V = b.value * Math.cos(t) + r.value.width / 2, Re = b.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
|
|
135
|
+
x.value.push({ x: V, y: Re, ...y, color: y.color ? y.color : re.value[d] ? re.value[d] : me[d], regAngle: n, totalWeight: G }), t += e, n += s;
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
function Ae(e, s) {
|
|
@@ -140,10 +140,10 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
140
140
|
return { x: t, y: n };
|
|
141
141
|
}
|
|
142
142
|
function ye() {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
g.value = [], x.value.forEach((e) => {
|
|
144
|
+
x.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
|
|
145
145
|
const y = t.relations.indexOf(e.id);
|
|
146
|
-
|
|
146
|
+
g.value.push({
|
|
147
147
|
weight: t.weights[y] ? t.weights[y] : 0,
|
|
148
148
|
relationId: `${e.id}_${t.id}`,
|
|
149
149
|
x1: e.x,
|
|
@@ -166,23 +166,23 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
166
166
|
}
|
|
167
167
|
function Ie(e) {
|
|
168
168
|
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, n = { x: e.x1, y: e.y1 }, y = {
|
|
169
|
-
x:
|
|
170
|
-
y:
|
|
169
|
+
x: r.value.width / 2,
|
|
170
|
+
y: r.value.height / 2 + l.value.style.circle.offsetY
|
|
171
171
|
}, d = 0.5, G = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * n.x + 3 * (1 - d) * Math.pow(d, 2) * y.x + Math.pow(d, 3) * t.x, V = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * n.y + 3 * (1 - d) * Math.pow(d, 2) * y.y + Math.pow(d, 3) * t.y;
|
|
172
172
|
return { x: G, y: V };
|
|
173
173
|
}
|
|
174
|
-
const Me = f(() => Math.max(...
|
|
174
|
+
const Me = f(() => Math.max(...g.value.map((e) => e.weight)));
|
|
175
175
|
function Se(e) {
|
|
176
|
-
return Object.hasOwn(
|
|
176
|
+
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function w(e) {
|
|
179
179
|
return e.colorSource;
|
|
180
180
|
}
|
|
181
181
|
function fe(e) {
|
|
182
|
-
return Object.hasOwn(
|
|
182
|
+
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${j(e)}` : "opacity: 0" : "opacity: 1";
|
|
183
183
|
}
|
|
184
184
|
function _(e) {
|
|
185
|
-
return Object.hasOwn(
|
|
185
|
+
return Object.hasOwn(c.value, "x") ? !!(m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}`) : !1;
|
|
186
186
|
}
|
|
187
187
|
function Fe(e) {
|
|
188
188
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
@@ -190,24 +190,24 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
190
190
|
function Be(e) {
|
|
191
191
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
192
192
|
}
|
|
193
|
-
function Te(e) {
|
|
194
|
-
return Object.hasOwn(o.value, "x") ? o.value.id === e.id || g.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
195
|
-
}
|
|
196
193
|
function Ee(e) {
|
|
194
|
+
return Object.hasOwn(c.value, "x") ? c.value.id === e.id || m.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
195
|
+
}
|
|
196
|
+
function Te(e) {
|
|
197
197
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
198
198
|
}
|
|
199
199
|
function he(e) {
|
|
200
|
-
Ce.value = 360 - e.regAngle,
|
|
200
|
+
Ce.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
|
|
201
201
|
}
|
|
202
202
|
function j(e) {
|
|
203
203
|
const s = e.weight / Me.value * l.value.style.links.maxWidth;
|
|
204
204
|
return Math.max(0.3, s);
|
|
205
205
|
}
|
|
206
|
-
const M =
|
|
206
|
+
const M = o(!1);
|
|
207
207
|
function Ne(e) {
|
|
208
208
|
M.value = e, H.value += 1;
|
|
209
209
|
}
|
|
210
|
-
const S =
|
|
210
|
+
const S = o(!1);
|
|
211
211
|
function U() {
|
|
212
212
|
S.value = !S.value;
|
|
213
213
|
}
|
|
@@ -221,8 +221,8 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
221
221
|
class: "vue-ui-relation-circle",
|
|
222
222
|
style: C(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
223
223
|
id: `relation_circle_${O.value}`,
|
|
224
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
225
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
224
|
+
onMouseenter: s[0] || (s[0] = () => u(ee)(!0)),
|
|
225
|
+
onMouseleave: s[1] || (s[1] = () => u(ee)(!1))
|
|
226
226
|
}, [
|
|
227
227
|
l.value.userOptions.buttons.annotator ? (i(), F(ct, {
|
|
228
228
|
key: 0,
|
|
@@ -259,13 +259,13 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
259
259
|
}
|
|
260
260
|
}, null, 8, ["config"]))
|
|
261
261
|
], 512)) : v("", !0),
|
|
262
|
-
l.value.userOptions.show &&
|
|
262
|
+
l.value.userOptions.show && T.value && (u(te) || u(N)) ? (i(), F(rt, {
|
|
263
263
|
ref: "details",
|
|
264
264
|
key: `user_options_${H.value}`,
|
|
265
265
|
backgroundColor: l.value.style.backgroundColor,
|
|
266
266
|
color: l.value.style.color,
|
|
267
|
-
isPrinting:
|
|
268
|
-
isImaging:
|
|
267
|
+
isPrinting: u(se),
|
|
268
|
+
isImaging: u(ie),
|
|
269
269
|
uid: O.value,
|
|
270
270
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
271
271
|
hasImg: l.value.userOptions.buttons.img,
|
|
@@ -278,99 +278,111 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
278
278
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
279
279
|
isAnnotation: S.value,
|
|
280
280
|
onToggleFullscreen: Ne,
|
|
281
|
-
onGeneratePdf:
|
|
282
|
-
onGenerateImage:
|
|
281
|
+
onGeneratePdf: u(ae),
|
|
282
|
+
onGenerateImage: u(ne),
|
|
283
283
|
onToggleAnnotator: U,
|
|
284
284
|
style: C({
|
|
285
|
-
visibility:
|
|
285
|
+
visibility: u(te) ? u(N) ? "visible" : "hidden" : "visible"
|
|
286
286
|
})
|
|
287
287
|
}, Xe({ _: 2 }, [
|
|
288
288
|
e.$slots.optionPdf ? {
|
|
289
289
|
name: "optionPdf",
|
|
290
290
|
fn: B(() => [
|
|
291
|
-
|
|
291
|
+
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
292
292
|
]),
|
|
293
293
|
key: "0"
|
|
294
294
|
} : void 0,
|
|
295
295
|
e.$slots.optionImg ? {
|
|
296
296
|
name: "optionImg",
|
|
297
297
|
fn: B(() => [
|
|
298
|
-
|
|
298
|
+
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
299
299
|
]),
|
|
300
300
|
key: "1"
|
|
301
301
|
} : void 0,
|
|
302
302
|
e.$slots.optionFullscreen ? {
|
|
303
303
|
name: "optionFullscreen",
|
|
304
304
|
fn: B(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
305
|
-
|
|
305
|
+
h(e.$slots, "optionFullscreen", A(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
306
306
|
]),
|
|
307
307
|
key: "2"
|
|
308
308
|
} : void 0,
|
|
309
309
|
e.$slots.optionAnnotator ? {
|
|
310
310
|
name: "optionAnnotator",
|
|
311
311
|
fn: B(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
312
|
-
|
|
312
|
+
h(e.$slots, "optionAnnotator", A(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
313
313
|
]),
|
|
314
314
|
key: "3"
|
|
315
315
|
} : void 0
|
|
316
316
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
317
|
-
|
|
317
|
+
T.value ? (i(), a("svg", {
|
|
318
318
|
key: 4,
|
|
319
|
-
xmlns:
|
|
319
|
+
xmlns: u(lt),
|
|
320
320
|
class: D([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
321
|
-
viewBox: `0 0 ${
|
|
321
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
322
322
|
width: "100%",
|
|
323
323
|
style: "user-select:none; background:transparent"
|
|
324
324
|
}, [
|
|
325
325
|
Ye(ot),
|
|
326
|
+
e.$slots["chart-background"] ? (i(), a("foreignObject", {
|
|
327
|
+
key: 0,
|
|
328
|
+
x: 0,
|
|
329
|
+
y: 0,
|
|
330
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
331
|
+
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
332
|
+
style: {
|
|
333
|
+
pointerEvents: "none"
|
|
334
|
+
}
|
|
335
|
+
}, [
|
|
336
|
+
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
337
|
+
], 8, ht)) : v("", !0),
|
|
326
338
|
qe("circle", {
|
|
327
|
-
cx: (
|
|
328
|
-
cy: (
|
|
339
|
+
cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
|
|
340
|
+
cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
|
|
329
341
|
r: b.value <= 0 ? 1e-4 : b.value,
|
|
330
342
|
stroke: l.value.style.circle.stroke,
|
|
331
343
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
332
344
|
fill: "transparent",
|
|
333
345
|
class: "main-circle"
|
|
334
|
-
}, null, 8,
|
|
335
|
-
Pe.value ? (i(), a("g",
|
|
336
|
-
(i(!0), a(P, null, L(
|
|
346
|
+
}, null, 8, gt),
|
|
347
|
+
Pe.value ? (i(), a("g", mt, [
|
|
348
|
+
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("path", {
|
|
337
349
|
key: `relation_${n}`,
|
|
338
350
|
style: C(fe(t)),
|
|
339
|
-
stroke:
|
|
340
|
-
class: D(["relation", { "vue-ui-relation-circle-selected":
|
|
341
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
351
|
+
stroke: w(t),
|
|
352
|
+
class: D(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }]),
|
|
353
|
+
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
342
354
|
fill: "none",
|
|
343
355
|
"stroke-width": j(t),
|
|
344
356
|
"stroke-linecap": "round"
|
|
345
|
-
}, null, 14,
|
|
346
|
-
(i(!0), a(P, null, L(
|
|
347
|
-
_(t) ?
|
|
357
|
+
}, null, 14, kt))), 128)),
|
|
358
|
+
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", pt, [
|
|
359
|
+
_(t) ? h(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
348
360
|
x: t.midPointBezier.x,
|
|
349
361
|
y: t.midPointBezier.y,
|
|
350
|
-
color:
|
|
362
|
+
color: w(t),
|
|
351
363
|
weight: t.weight,
|
|
352
|
-
fontSize:
|
|
364
|
+
fontSize: k.value
|
|
353
365
|
})), void 0, !0) : v("", !0),
|
|
354
366
|
_(t) && !e.$slots.dataLabel ? (i(), a("circle", {
|
|
355
367
|
key: 1,
|
|
356
368
|
cx: t.midPointBezier.x,
|
|
357
369
|
cy: t.midPointBezier.y,
|
|
358
|
-
fill:
|
|
359
|
-
r:
|
|
370
|
+
fill: w(t),
|
|
371
|
+
r: k.value,
|
|
360
372
|
stroke: l.value.style.backgroundColor,
|
|
361
373
|
"stroke-width": "1"
|
|
362
|
-
}, null, 8,
|
|
374
|
+
}, null, 8, wt)) : v("", !0),
|
|
363
375
|
_(t) && !e.$slots.dataLabel ? (i(), a("text", {
|
|
364
376
|
key: 2,
|
|
365
377
|
x: t.midPointBezier.x,
|
|
366
|
-
y: t.midPointBezier.y +
|
|
367
|
-
fill:
|
|
378
|
+
y: t.midPointBezier.y + k.value / 3,
|
|
379
|
+
fill: u(pe)(w(t)),
|
|
368
380
|
"text-anchor": "middle",
|
|
369
|
-
"font-size":
|
|
370
|
-
},
|
|
381
|
+
"font-size": k.value
|
|
382
|
+
}, E(u(X)(
|
|
371
383
|
l.value.style.weightLabels.formatter,
|
|
372
384
|
t.weight,
|
|
373
|
-
|
|
385
|
+
u(Y)({
|
|
374
386
|
p: l.value.style.weightLabels.prefix,
|
|
375
387
|
v: t.weight,
|
|
376
388
|
s: l.value.style.weightLabels.suffix,
|
|
@@ -379,81 +391,81 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
379
391
|
{ ...t }
|
|
380
392
|
)), 9, xt)) : v("", !0)
|
|
381
393
|
]))), 256))
|
|
382
|
-
])) : (i(), a("g",
|
|
383
|
-
(i(!0), a(P, null, L(
|
|
394
|
+
])) : (i(), a("g", bt, [
|
|
395
|
+
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("line", {
|
|
384
396
|
key: `relation_${n}`,
|
|
385
|
-
stroke:
|
|
397
|
+
stroke: w(t),
|
|
386
398
|
"stroke-width": j(t),
|
|
387
399
|
style: C(fe(t)),
|
|
388
400
|
x1: t.x1,
|
|
389
401
|
x2: t.x2,
|
|
390
402
|
y1: t.y1,
|
|
391
403
|
y2: t.y2,
|
|
392
|
-
class: D({ "vue-ui-relation-circle-selected":
|
|
404
|
+
class: D({ "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }),
|
|
393
405
|
"stroke-linecap": "round"
|
|
394
|
-
}, null, 14,
|
|
395
|
-
(i(!0), a(P, null, L(
|
|
396
|
-
_(t) ?
|
|
406
|
+
}, null, 14, $t))), 128)),
|
|
407
|
+
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", _t, [
|
|
408
|
+
_(t) ? h(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
397
409
|
x: t.midPointLine.x,
|
|
398
410
|
y: t.midPointLine.y,
|
|
399
|
-
color:
|
|
411
|
+
color: w(t),
|
|
400
412
|
weight: t.weight,
|
|
401
|
-
fontSize:
|
|
413
|
+
fontSize: k.value
|
|
402
414
|
})), void 0, !0) : v("", !0),
|
|
403
415
|
_(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), a("circle", {
|
|
404
416
|
key: 1,
|
|
405
417
|
cx: t.midPointLine.x,
|
|
406
418
|
cy: t.midPointLine.y,
|
|
407
|
-
fill:
|
|
408
|
-
r:
|
|
419
|
+
fill: w(t),
|
|
420
|
+
r: k.value,
|
|
409
421
|
stroke: l.value.style.backgroundColor,
|
|
410
422
|
"stroke-width": "1"
|
|
411
|
-
}, null, 8,
|
|
423
|
+
}, null, 8, Ct)) : v("", !0),
|
|
412
424
|
_(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), a("text", {
|
|
413
425
|
key: 2,
|
|
414
426
|
x: t.midPointLine.x,
|
|
415
|
-
y: t.midPointLine.y +
|
|
416
|
-
fill:
|
|
427
|
+
y: t.midPointLine.y + k.value / 3,
|
|
428
|
+
fill: u(pe)(w(t)),
|
|
417
429
|
"text-anchor": "middle",
|
|
418
|
-
"font-size":
|
|
419
|
-
},
|
|
430
|
+
"font-size": k.value
|
|
431
|
+
}, E(u(X)(
|
|
420
432
|
l.value.style.weightLabels.formatter,
|
|
421
433
|
t.weight,
|
|
422
|
-
|
|
434
|
+
u(Y)({
|
|
423
435
|
p: l.value.style.weightLabels.prefix,
|
|
424
436
|
v: t.weight,
|
|
425
437
|
s: l.value.style.weightLabels.suffix,
|
|
426
438
|
r: l.value.style.weightLabels.rounding
|
|
427
439
|
}),
|
|
428
440
|
{ ...t }
|
|
429
|
-
)), 9,
|
|
441
|
+
)), 9, Pt)) : v("", !0)
|
|
430
442
|
]))), 256))
|
|
431
443
|
])),
|
|
432
|
-
(i(!0), a(P, null, L(
|
|
444
|
+
(i(!0), a(P, null, L(x.value, (t, n) => (i(), a("text", {
|
|
433
445
|
key: `plot_text_${n}`,
|
|
434
446
|
"text-anchor": Fe(t),
|
|
435
|
-
transform:
|
|
447
|
+
transform: Te(t),
|
|
436
448
|
x: Be(t),
|
|
437
449
|
y: t.y + 5,
|
|
438
450
|
onClick: (y) => he(t),
|
|
439
451
|
class: "vue-ui-relation-circle-legend",
|
|
440
452
|
"transform-origin": "start",
|
|
441
|
-
"font-weight":
|
|
442
|
-
style: C(`font-family:${l.value.style.fontFamily};${
|
|
453
|
+
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
454
|
+
style: C(`font-family:${l.value.style.fontFamily};${Ee(t)}`),
|
|
443
455
|
"font-size": oe.value,
|
|
444
456
|
fill: l.value.style.labels.color
|
|
445
|
-
},
|
|
457
|
+
}, E(t.label) + " (" + E(u(X)(
|
|
446
458
|
l.value.style.weightLabels.formatter,
|
|
447
459
|
t.totalWeight,
|
|
448
|
-
|
|
460
|
+
u(Y)({
|
|
449
461
|
p: l.value.style.weightLabels.prefix,
|
|
450
462
|
v: t.totalWeight,
|
|
451
463
|
s: l.value.style.weightLabels.suffix,
|
|
452
464
|
r: l.value.style.weightLabels.rounding
|
|
453
465
|
}),
|
|
454
466
|
{ ...t }
|
|
455
|
-
)) + ") ", 13,
|
|
456
|
-
(i(!0), a(P, null, L(
|
|
467
|
+
)) + ") ", 13, Lt))), 128)),
|
|
468
|
+
(i(!0), a(P, null, L(x.value, (t, n) => (i(), a("circle", {
|
|
457
469
|
cx: t.x,
|
|
458
470
|
cy: t.y,
|
|
459
471
|
key: `plot_${n}`,
|
|
@@ -464,11 +476,11 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
464
476
|
"stroke-width": "1",
|
|
465
477
|
onClick: (y) => he(t),
|
|
466
478
|
r: ue.value
|
|
467
|
-
}, null, 12,
|
|
468
|
-
|
|
479
|
+
}, null, 12, Ot))), 128)),
|
|
480
|
+
h(e.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
469
481
|
], 10, ft)) : v("", !0),
|
|
470
|
-
e.$slots.watermark ? (i(), a("div",
|
|
471
|
-
|
|
482
|
+
e.$slots.watermark ? (i(), a("div", zt, [
|
|
483
|
+
h(e.$slots, "watermark", A(W({ isPrinting: u(se) || u(ie) })), void 0, !0)
|
|
472
484
|
])) : v("", !0),
|
|
473
485
|
e.$slots.source ? (i(), a("div", {
|
|
474
486
|
key: 6,
|
|
@@ -476,9 +488,9 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
476
488
|
ref: K,
|
|
477
489
|
dir: "auto"
|
|
478
490
|
}, [
|
|
479
|
-
|
|
491
|
+
h(e.$slots, "source", {}, void 0, !0)
|
|
480
492
|
], 512)) : v("", !0),
|
|
481
|
-
|
|
493
|
+
T.value ? v("", !0) : (i(), F(ut, {
|
|
482
494
|
key: 7,
|
|
483
495
|
config: {
|
|
484
496
|
type: "relationCircle",
|
|
@@ -492,7 +504,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "
|
|
|
492
504
|
}, null, 8, ["config"]))
|
|
493
505
|
], 44, yt));
|
|
494
506
|
}
|
|
495
|
-
},
|
|
507
|
+
}, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-d95c92fd"]]);
|
|
496
508
|
export {
|
|
497
|
-
|
|
509
|
+
Gt as default
|
|
498
510
|
};
|