vue-data-ui 2.6.40 → 2.6.42
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/dist/{Arrow-DczKng-K.cjs → Arrow-C6-3JiKs.cjs} +1 -1
- package/dist/{Arrow-CKYmYJHq.js → Arrow-i50QW7Eq.js} +1 -1
- package/dist/{BaseIcon-rw8rKNKS.js → BaseIcon-BYl8WVrn.js} +1 -1
- package/dist/{BaseIcon-Db1HIrAt.cjs → BaseIcon-CGjwy6WD.cjs} +1 -1
- package/dist/{ColorPicker-oA_W-jVk.cjs → ColorPicker-Cpi--TbY.cjs} +1 -1
- package/dist/{ColorPicker-DyZK3Mhl.js → ColorPicker-rv2BDrXO.js} +3 -3
- package/dist/{DataTable-DvwmNjb-.js → DataTable-B_PZ5EQ5.js} +2 -2
- package/dist/{DataTable-Be-eTBzq.cjs → DataTable-Dp7g_Ei4.cjs} +1 -1
- package/dist/{Legend-Be8mrJpb.js → Legend-BB51QBPV.js} +2 -2
- package/dist/{Legend-j3YoAtEf.cjs → Legend-BB6S3gBp.cjs} +1 -1
- package/dist/{PackageVersion-D9Lm1C1X.js → PackageVersion-Cz-oD7U6.js} +1 -1
- package/dist/{PackageVersion-D_gJvbGU.cjs → PackageVersion-Dj3KQ8Ax.cjs} +1 -1
- package/dist/{PenAndPaper-DR58HO_U.js → PenAndPaper-DOTH2X_u.js} +3 -3
- package/dist/{PenAndPaper-DWG9pfri.cjs → PenAndPaper-OCjAJH70.cjs} +1 -1
- package/dist/{Shape-BuwIrUMv.js → Shape-CGBgd_EH.js} +1 -1
- package/dist/{Shape-BF6K6die.cjs → Shape-DCTTj5cs.cjs} +1 -1
- package/dist/{Slicer-bY7XVDi5.cjs → Slicer-BHKFOTCG.cjs} +1 -1
- package/dist/{Slicer-CUm2ijlc.js → Slicer-Dhto2Wym.js} +2 -2
- package/dist/{Title-BP4K_GLE.cjs → Title-BkwZ_rBI.cjs} +1 -1
- package/dist/{Title-D_MGglyN.js → Title-y0r2c8bY.js} +1 -1
- package/dist/{Tooltip-HRgkF8HD.js → Tooltip-CbWEnMUw.js} +1 -1
- package/dist/{Tooltip-KXn1rQhr.cjs → Tooltip-DhhX9jKQ.cjs} +1 -1
- package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
- package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
- package/dist/img-BIeSHu0f.js +15 -0
- package/dist/img-D6uvziU0.cjs +1 -0
- package/dist/index-Crz6y51C.cjs +9 -0
- package/dist/{index-BaaDnc4F.js → index-DWsIpwzs.js} +426 -384
- package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
- package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
- package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
- package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
- package/dist/pdf-BpXLKlRx.cjs +1 -0
- package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +16 -0
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useNestedProp-0jJvFRhK.cjs → useNestedProp-B8CE091o.cjs} +1 -1
- package/dist/{useNestedProp-D8vQcOps.js → useNestedProp-Bole8bsm.js} +1 -1
- package/dist/{usePrinter-y4-4tCWT.js → usePrinter-B8LELMkA.js} +125 -122
- package/dist/{usePrinter-C1Rlqzcj.cjs → usePrinter-Cqxw0sR7.cjs} +1 -1
- package/dist/{vue-data-ui-XwZHx4pB.js → vue-data-ui-BHNNKB7k.js} +61 -61
- package/dist/{vue-data-ui-CF4CU0e2.cjs → vue-data-ui-Dizs9qYs.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +8 -8
- package/dist/{vue-ui-3d-bar-BOMvMoht.cjs → vue-ui-3d-bar-D-jstByg.cjs} +8 -8
- package/dist/{vue-ui-3d-bar-BYV4-yM3.js → vue-ui-3d-bar-D1DTuPTJ.js} +55 -54
- package/dist/{vue-ui-accordion-C5C3XQ8f.cjs → vue-ui-accordion-10T9IdE-.cjs} +1 -1
- package/dist/{vue-ui-accordion-CF9kQTXq.js → vue-ui-accordion-WrimcQK1.js} +3 -3
- package/dist/vue-ui-age-pyramid-0uO95dEL.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-8KtaPkny.js → vue-ui-age-pyramid-vSOQxYMZ.js} +13 -12
- package/dist/{vue-ui-annotator-Dq1h3MZY.cjs → vue-ui-annotator-CzqmXArP.cjs} +1 -1
- package/dist/{vue-ui-annotator-KiLEzFIU.js → vue-ui-annotator-DuX2lvw8.js} +3 -3
- package/dist/vue-ui-bullet-hJsuFbdK.cjs +34 -0
- package/dist/{vue-ui-bullet-DBEuIuyH.js → vue-ui-bullet-ni1A0wmE.js} +11 -10
- package/dist/{vue-ui-candlestick-C13zgiOI.js → vue-ui-candlestick-CtFOtkuX.js} +14 -13
- package/dist/{vue-ui-candlestick-VazI0lag.cjs → vue-ui-candlestick-JSYKg3QU.cjs} +2 -2
- package/dist/vue-ui-carousel-table-BJsBlOAu.cjs +1 -0
- package/dist/{vue-ui-carousel-table-CoA9OyeC.js → vue-ui-carousel-table-Bc8SG-3_.js} +7 -6
- package/dist/{vue-ui-chestnut-V0eah1wF.cjs → vue-ui-chestnut-EPeVQvs_.cjs} +2 -2
- package/dist/{vue-ui-chestnut-kAdb7Jpi.js → vue-ui-chestnut-VR_UxBpO.js} +37 -36
- package/dist/{vue-ui-circle-pack-B0CreTV1.js → vue-ui-circle-pack-ECXVp4H4.js} +14 -13
- package/dist/vue-ui-circle-pack-NstojV4G.cjs +1 -0
- package/dist/{vue-ui-cursor-sHfZ-rR3.js → vue-ui-cursor-DRP_eOrg.js} +2 -2
- package/dist/{vue-ui-cursor-oLpASwAy.cjs → vue-ui-cursor-IZ28NWCv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CB7KJEOi.cjs → vue-ui-dashboard-BVoasjGP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D2ZQBDuk.js → vue-ui-dashboard-Bg4eu3bx.js} +3 -3
- package/dist/{vue-ui-digits-CiV3V0ry.js → vue-ui-digits-B2qzXXO6.js} +2 -2
- package/dist/{vue-ui-digits-e7EBKTDv.cjs → vue-ui-digits-BKR62-KQ.cjs} +1 -1
- package/dist/{vue-ui-donut-CrjqZ1ji.js → vue-ui-donut-BWbLJHC5.js} +15 -14
- package/dist/vue-ui-donut-Bnc5n4vE.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-D_F3H8Oa.js → vue-ui-donut-evolution-Cpmdg9Na.js} +45 -44
- package/dist/vue-ui-donut-evolution-DyQPblkZ.cjs +1 -0
- package/dist/vue-ui-dumbbell-BjGLUyTB.cjs +9 -0
- package/dist/{vue-ui-dumbbell-POvEBmaZ.js → vue-ui-dumbbell-kOEJnUNy.js} +43 -42
- package/dist/vue-ui-flow-BxqHFumu.cjs +1 -0
- package/dist/{vue-ui-flow-BIfoibps.js → vue-ui-flow-DVvxwHKl.js} +53 -52
- package/dist/vue-ui-funnel-CPGQJsTE.cjs +1 -0
- package/dist/{vue-ui-funnel-DfF9uQGX.js → vue-ui-funnel-Dh9Zio3k.js} +13 -12
- package/dist/{vue-ui-galaxy-D6sV6X5K.js → vue-ui-galaxy-DBrUSx1b.js} +31 -30
- package/dist/vue-ui-galaxy-S4L3B76T.cjs +1 -0
- package/dist/vue-ui-gauge-Cs-ypQfN.cjs +1 -0
- package/dist/{vue-ui-gauge-CvbPkLM2.js → vue-ui-gauge-tZvlIU-S.js} +36 -35
- package/dist/{vue-ui-gizmo-DMsTB4ES.cjs → vue-ui-gizmo-CCSsG2_b.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DUi7lRRe.js → vue-ui-gizmo-Dci5soUk.js} +3 -3
- package/dist/vue-ui-heatmap-DJ7wdUPo.cjs +1 -0
- package/dist/{vue-ui-heatmap-Dg8XejgT.js → vue-ui-heatmap-DOcrZCVa.js} +73 -72
- package/dist/vue-ui-history-plot-Cdbru79N.cjs +1 -0
- package/dist/{vue-ui-history-plot-BSd5bL15.js → vue-ui-history-plot-qtdp25Sg.js} +33 -32
- package/dist/{vue-ui-kpi-BAMbt0nE.js → vue-ui-kpi-DTXy_HfT.js} +3 -3
- package/dist/{vue-ui-kpi-m4GUxnZu.cjs → vue-ui-kpi-vLsne_Vi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DiBQaEPy.js → vue-ui-mini-loader-B1MEbk8x.js} +2 -2
- package/dist/{vue-ui-mini-loader-BqVkQxqo.cjs → vue-ui-mini-loader-CuWWrNo9.cjs} +1 -1
- package/dist/vue-ui-molecule-BwO_9sCz.js +830 -0
- package/dist/vue-ui-molecule-huq_1VnO.cjs +1 -0
- package/dist/vue-ui-mood-radar-B4k3k2q7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-INGk_0vz.js → vue-ui-mood-radar-CLiiGRyR.js} +14 -13
- package/dist/{vue-ui-nested-donuts-BABAXqTX.js → vue-ui-nested-donuts-CxAFaOns.js} +14 -13
- package/dist/{vue-ui-nested-donuts-COy2x2EF.cjs → vue-ui-nested-donuts-t_TWJrWV.cjs} +2 -2
- package/dist/{vue-ui-onion-B1NZLFqG.cjs → vue-ui-onion-DIQLewG_.cjs} +2 -2
- package/dist/{vue-ui-onion-CJkmj1Nh.js → vue-ui-onion-gweww1Nd.js} +14 -13
- package/dist/{vue-ui-parallel-coordinate-plot-CtpGIUKU.cjs → vue-ui-parallel-coordinate-plot-B48BZpEc.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DTUIv9ah.js → vue-ui-parallel-coordinate-plot-Dos2dhCW.js} +35 -34
- package/dist/vue-ui-quadrant-BYDJYypD.cjs +1 -0
- package/dist/{vue-ui-quadrant-CxNnHjD9.js → vue-ui-quadrant-fXKeOjn-.js} +43 -42
- package/dist/{vue-ui-quick-chart-BaHq9DyU.cjs → vue-ui-quick-chart-BVVVrJyc.cjs} +2 -2
- package/dist/{vue-ui-quick-chart-CJnwyWdJ.js → vue-ui-quick-chart-BojZdQHp.js} +12 -11
- package/dist/vue-ui-radar-C5mA8lGM.cjs +1 -0
- package/dist/{vue-ui-radar-CsvmcspN.js → vue-ui-radar-D4mB15zr.js} +15 -14
- package/dist/{vue-ui-rating-D7kDYc6s.js → vue-ui-rating-BG_CF73W.js} +10 -10
- package/dist/{vue-ui-rating-C-ef3ayK.cjs → vue-ui-rating-P9KkC2lE.cjs} +1 -1
- package/dist/vue-ui-relation-circle-CfNGeO3G.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CY8ZIPpL.js → vue-ui-relation-circle-xYqp0Vj9.js} +13 -12
- package/dist/{vue-ui-rings-DEuJ9t0h.cjs → vue-ui-rings-Ba7xV0bh.cjs} +2 -2
- package/dist/{vue-ui-rings-Cxf9NoYT.js → vue-ui-rings-CTw5Guq9.js} +15 -14
- package/dist/{vue-ui-scatter-CiO-B7Jh.js → vue-ui-scatter-CMhOzUfw.js} +45 -44
- package/dist/vue-ui-scatter-UeHQSMn_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BMuBV3BB.js → vue-ui-screenshot-DkB1LMw4.js} +2 -2
- package/dist/{vue-ui-screenshot--OYVY1cw.cjs → vue-ui-screenshot-Dqiqn0Tt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CM4wEsYA.cjs → vue-ui-skeleton-BZsFiqo5.cjs} +1 -1
- package/dist/{vue-ui-skeleton-6RiQNJSb.js → vue-ui-skeleton-DDZb9FFJ.js} +57 -57
- package/dist/{vue-ui-smiley-CUDVroKW.js → vue-ui-smiley-BgS5Przf.js} +2 -2
- package/dist/{vue-ui-smiley-DMzfsrun.cjs → vue-ui-smiley-CUmfLZx6.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-fnRrg8Jj.js → vue-ui-spark-trend-NRIFklnc.js} +5 -5
- package/dist/{vue-ui-spark-trend-CTI98gTQ.cjs → vue-ui-spark-trend-w10yXsJZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-HhcSqSxf.cjs → vue-ui-sparkbar-aigBoTy2.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-msGI6wfO.js → vue-ui-sparkbar-ejr7X72c.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C3obUsLf.js → vue-ui-sparkgauge-BOf5aBj9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DRpIVDwy.cjs → vue-ui-sparkgauge-CkefH_Q3.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DOVSl-l-.js → vue-ui-sparkhistogram-C64SJzGD.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-OtRll6_F.cjs → vue-ui-sparkhistogram-Dtn7OLFq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Dyd6TPTP.cjs → vue-ui-sparkline-BKGLvlLw.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DkX9L35W.js → vue-ui-sparkline-POZCJkr9.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-Cfn7LKpJ.cjs → vue-ui-sparkstackbar-BxeVbtHZ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Cq7MW3Jk.js → vue-ui-sparkstackbar-C7v5flng.js} +5 -5
- package/dist/{vue-ui-stackbar-BNy2XBmJ.js → vue-ui-stackbar-DUvKoTiT.js} +16 -15
- package/dist/{vue-ui-stackbar-DDbZ-_sO.cjs → vue-ui-stackbar-OS-G2tRA.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-Cq9CqXxr.js → vue-ui-strip-plot-DvQPyqtk.js} +14 -13
- package/dist/vue-ui-strip-plot-IcTvmihM.cjs +1 -0
- package/dist/{vue-ui-table-js0Gdfqi.cjs → vue-ui-table-Bo5KWUa-.cjs} +2 -2
- package/dist/{vue-ui-table-BowZcUb5.js → vue-ui-table-C8zG8WTp.js} +1 -1
- package/dist/vue-ui-table-heatmap-DvRBb7Za.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-BmObY7ZK.js → vue-ui-table-heatmap-N2a-kKWJ.js} +9 -8
- package/dist/{vue-ui-table-sparkline-BKDgWukC.js → vue-ui-table-sparkline-DOYmxyiy.js} +9 -8
- package/dist/vue-ui-table-sparkline-DVhyXHjb.cjs +1 -0
- package/dist/vue-ui-thermometer-CshBwaty.cjs +1 -0
- package/dist/{vue-ui-thermometer-BOF4YYvE.js → vue-ui-thermometer-DsFTU7hy.js} +26 -25
- package/dist/{vue-ui-timer-D6WS06mW.js → vue-ui-timer-BazkEbRz.js} +5 -5
- package/dist/{vue-ui-timer-BVoMdC97.cjs → vue-ui-timer-b4eSKrHr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BD81LT9b.js → vue-ui-tiremarks-LjeTpuwu.js} +20 -19
- package/dist/vue-ui-tiremarks-tCyisBN-.cjs +1 -0
- package/dist/{vue-ui-treemap-CKETyAhh.js → vue-ui-treemap-CkPWe6se.js} +14 -13
- package/dist/vue-ui-treemap-o4rsDy3h.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-nq74gMNu.cjs → vue-ui-vertical-bar-D3vjiqvq.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-D4RH4OTK.js → vue-ui-vertical-bar-ViFIMQc9.js} +16 -15
- package/dist/vue-ui-waffle-4Wpu2k9B.cjs +1 -0
- package/dist/{vue-ui-waffle-BHP27c7Q.js → vue-ui-waffle-D8uQiqvC.js} +15 -14
- package/dist/{vue-ui-wheel-BpEPqKp-.js → vue-ui-wheel-DgJ52HhJ.js} +10 -9
- package/dist/vue-ui-wheel-Wkp_TkAj.cjs +1 -0
- package/dist/{vue-ui-word-cloud-JH_eHxVf.js → vue-ui-word-cloud-BmX0SdIe.js} +39 -38
- package/dist/vue-ui-word-cloud-CtR6FmsK.cjs +1 -0
- package/dist/vue-ui-xy-B68466-C.cjs +3 -0
- package/dist/{vue-ui-xy-BGOtOn8w.js → vue-ui-xy-CnNugA_v.js} +52 -50
- package/dist/{vue-ui-xy-canvas-DLZANhlq.cjs → vue-ui-xy-canvas-D7IJkVz1.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DVzzeUmj.js → vue-ui-xy-canvas-DRbFpLFp.js} +134 -133
- package/package.json +2 -2
- package/dist/img-BPGizWpM.cjs +0 -1
- package/dist/img-itj0Vdmx.js +0 -15
- package/dist/index-CBRI5uwl.cjs +0 -9
- package/dist/pdf-DSkQT5iH.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Cm10v1iS.cjs +0 -1
- package/dist/vue-ui-bullet-yeUQYuwe.cjs +0 -34
- package/dist/vue-ui-carousel-table-Dkqumt0q.cjs +0 -1
- package/dist/vue-ui-circle-pack-CnYgigzx.cjs +0 -1
- package/dist/vue-ui-donut-DL51Fl9m.cjs +0 -1
- package/dist/vue-ui-donut-evolution-mCx3HfHW.cjs +0 -1
- package/dist/vue-ui-dumbbell-BIDzrdGX.cjs +0 -9
- package/dist/vue-ui-flow-D8CWkD2E.cjs +0 -1
- package/dist/vue-ui-funnel-DNQKb-CW.cjs +0 -1
- package/dist/vue-ui-galaxy-CXAhWSW2.cjs +0 -1
- package/dist/vue-ui-gauge-CODDDBdK.cjs +0 -1
- package/dist/vue-ui-heatmap-DDo0YoPA.cjs +0 -1
- package/dist/vue-ui-history-plot-Wb0vm3oN.cjs +0 -1
- package/dist/vue-ui-molecule-SgHDaN5w.cjs +0 -1
- package/dist/vue-ui-molecule-kryFDlxX.js +0 -826
- package/dist/vue-ui-mood-radar-p2yhGTuV.cjs +0 -1
- package/dist/vue-ui-quadrant-ZmF2s1_3.cjs +0 -1
- package/dist/vue-ui-radar-BgeUqzpX.cjs +0 -1
- package/dist/vue-ui-relation-circle-DRkjUqb1.cjs +0 -1
- package/dist/vue-ui-scatter-BlBNhmJ4.cjs +0 -1
- package/dist/vue-ui-strip-plot-t6_CVzQF.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BAczw65J.cjs +0 -1
- package/dist/vue-ui-table-sparkline-HE8HXlhe.cjs +0 -1
- package/dist/vue-ui-thermometer-2RqSKVQ8.cjs +0 -1
- package/dist/vue-ui-tiremarks-CiZUYcuP.cjs +0 -1
- package/dist/vue-ui-treemap-BQeFDdrJ.cjs +0 -1
- package/dist/vue-ui-waffle-atvdP-Pb.cjs +0 -1
- package/dist/vue-ui-wheel-Diad5HyF.cjs +0 -1
- package/dist/vue-ui-word-cloud-B_ykSDTr.cjs +0 -1
- package/dist/vue-ui-xy-Csz1n4M-.cjs +0 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as
|
|
2
|
-
import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee,
|
|
1
|
+
import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, Fragment as P, renderList as X, toDisplayString as C, createTextVNode as rt, nextTick as it } from "vue";
|
|
2
|
+
import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, V as pt, _ as ft, T as gt, X as mt, s as ge, W as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-DWsIpwzs.js";
|
|
3
3
|
import { t as $t, u as Mt } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
-
import { _ as Ct } from "./Title-
|
|
5
|
-
import { u as At, U as zt } from "./usePrinter-
|
|
6
|
-
import { _ as St } from "./Tooltip-
|
|
7
|
-
import { L as Tt } from "./Legend-
|
|
8
|
-
import { _ as Ue } from "./Shape-
|
|
9
|
-
import { D as Lt } from "./DataTable-
|
|
10
|
-
import Bt from "./vue-ui-skeleton-
|
|
11
|
-
import Ot from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ge } from "./useNestedProp-
|
|
13
|
-
import { _ as Nt } from "./PackageVersion-
|
|
14
|
-
import { P as Pt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ct } from "./Title-y0r2c8bY.js";
|
|
5
|
+
import { u as At, U as zt } from "./usePrinter-B8LELMkA.js";
|
|
6
|
+
import { _ as St } from "./Tooltip-CbWEnMUw.js";
|
|
7
|
+
import { L as Tt } from "./Legend-BB51QBPV.js";
|
|
8
|
+
import { _ as Ue } from "./Shape-CGBgd_EH.js";
|
|
9
|
+
import { D as Lt } from "./DataTable-B_PZ5EQ5.js";
|
|
10
|
+
import Bt from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
11
|
+
import Ot from "./vue-ui-accordion-WrimcQK1.js";
|
|
12
|
+
import { u as Ge } from "./useNestedProp-Bole8bsm.js";
|
|
13
|
+
import { _ as Nt } from "./PackageVersion-Cz-oD7U6.js";
|
|
14
|
+
import { P as Pt } from "./PenAndPaper-DOTH2X_u.js";
|
|
15
15
|
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { u as Ft } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 2 }, Ut = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Gt = { key: 0 }, qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ht = { key: 1 },
|
|
18
|
+
const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 2 }, Ut = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Gt = { key: 0 }, qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ht = { key: 1 }, Jt = { key: 3 }, Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ol = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], sl = { key: 0 }, ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = ["d", "stroke", "stroke-width"], nl = ["d", "stroke", "stroke-width"], vl = {
|
|
19
19
|
key: 4,
|
|
20
20
|
style: { "pointer-events": "none !important" }
|
|
21
21
|
}, yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], hl = ["x", "y", "font-size", "fill", "font-weight"], pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], gl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ml = { key: 5 }, xl = ["x", "y", "font-size", "fill"], bl = ["x", "y", "font-size", "fill"], kl = ["id", "transform", "font-size", "font-weight", "fill"], wl = { key: 6 }, _l = ["x", "y", "font-size", "fill"], $l = ["x", "y", "font-size", "fill"], Ml = ["font-size", "font-weight", "fill", "x", "y"], Cl = ["id"], Al = ["x", "y", "width", "height"], zl = { key: 7 }, Sl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Tl = ["x", "y", "fill", "font-size", "font-weight"], Ll = {
|
|
@@ -46,14 +46,14 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
setup(qe, { expose: He }) {
|
|
49
|
-
const { vue_ui_scatter:
|
|
49
|
+
const { vue_ui_scatter: Je } = nt(), F = qe, ee = x(() => !!F.dataset && F.dataset.length), z = h(vt()), Ke = h(null), ue = h(!1), re = h(""), me = h(0), Z = h(null), xe = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), $e = h(0), Me = h(0), e = x({
|
|
50
50
|
get: () => Se(),
|
|
51
51
|
set: (t) => t
|
|
52
52
|
}), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Wt({ config: e.value }), { svgRef: ze } = Ft({ config: e.value.style.title });
|
|
53
53
|
function Se() {
|
|
54
54
|
const t = Ge({
|
|
55
55
|
userConfig: F.config,
|
|
56
|
-
defaultConfig:
|
|
56
|
+
defaultConfig: Je
|
|
57
57
|
});
|
|
58
58
|
return t.theme ? {
|
|
59
59
|
...Ge({
|
|
@@ -77,7 +77,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
77
77
|
}), e.value.responsive) {
|
|
78
78
|
const t = $t(() => {
|
|
79
79
|
const { width: u, height: l } = Mt({
|
|
80
|
-
chart:
|
|
80
|
+
chart: Z.value,
|
|
81
81
|
title: e.value.style.title.text ? xe.value : null,
|
|
82
82
|
legend: e.value.style.legend.show ? be.value : null,
|
|
83
83
|
source: ke.value,
|
|
@@ -87,7 +87,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
87
87
|
b.value.width = u, b.value.height = l;
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
|
-
te.value = new ResizeObserver(t), te.value.observe(
|
|
90
|
+
te.value = new ResizeObserver(t), te.value.observe(Z.value.parentNode);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
st(() => {
|
|
@@ -95,8 +95,9 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
95
95
|
});
|
|
96
96
|
const { isPrinting: Le, isImaging: Be, generatePdf: Oe, generateImage: Ne } = At({
|
|
97
97
|
elementId: `vue-ui-scatter_${z.value}`,
|
|
98
|
-
fileName: e.value.style.title.text || "vue-ui-scatter"
|
|
99
|
-
|
|
98
|
+
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
99
|
+
options: e.value.userOptions.print
|
|
100
|
+
}), Qe = x(() => e.value.userOptions.show && !e.value.style.title.text), Pe = x(() => ht(e.value.customPalette)), B = h({
|
|
100
101
|
showTable: e.value.table.show,
|
|
101
102
|
showTooltip: e.value.style.tooltip.show
|
|
102
103
|
}), b = h({
|
|
@@ -125,11 +126,11 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
125
126
|
Ee({
|
|
126
127
|
datasetObject: k,
|
|
127
128
|
requiredAttributes: ["x", "y"]
|
|
128
|
-
}).forEach((
|
|
129
|
+
}).forEach((J) => {
|
|
129
130
|
fe({
|
|
130
131
|
componentName: "VueUiScatter",
|
|
131
132
|
type: "datasetSerieAttribute",
|
|
132
|
-
property: `values.${
|
|
133
|
+
property: `values.${J}`,
|
|
133
134
|
index: `${v} - ${E}`
|
|
134
135
|
});
|
|
135
136
|
});
|
|
@@ -155,7 +156,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
155
156
|
segregate: () => De(l),
|
|
156
157
|
isSegregated: m.value.includes(l)
|
|
157
158
|
};
|
|
158
|
-
})),
|
|
159
|
+
})), Ze = x(() => ({
|
|
159
160
|
cy: "scatter-div-legend",
|
|
160
161
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
161
162
|
color: e.value.style.legend.color,
|
|
@@ -181,11 +182,11 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
181
182
|
let s = 0, a = 0, v = 0;
|
|
182
183
|
for (const g of t.plots)
|
|
183
184
|
s += (g.x - u) * (g.y - l), a += (g.x - u) ** 2, v += (g.y - l) ** 2;
|
|
184
|
-
const k = s / Math.sqrt(a * v), E = k * (Math.sqrt(v) / Math.sqrt(a)),
|
|
185
|
+
const k = s / Math.sqrt(a * v), E = k * (Math.sqrt(v) / Math.sqrt(a)), J = l - E * u, N = {
|
|
185
186
|
x1: i.value.left,
|
|
186
187
|
x2: i.value.right,
|
|
187
|
-
y1: E * i.value.left +
|
|
188
|
-
y2: E * i.value.right +
|
|
188
|
+
y1: E * i.value.left + J,
|
|
189
|
+
y2: E * i.value.right + J,
|
|
189
190
|
coefficient: k
|
|
190
191
|
}, M = (N.y2 - N.y1) / (N.x2 - N.x1), L = N.y1 - M * N.x1, I = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (i.value.top - L) / M)), se = {
|
|
191
192
|
x: I,
|
|
@@ -221,7 +222,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
221
222
|
l.forEach(({ x: w, y: G }) => {
|
|
222
223
|
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, G), k = Math.max(k, G);
|
|
223
224
|
});
|
|
224
|
-
const E = a - s,
|
|
225
|
+
const E = a - s, J = k - v, N = E / u, M = J / u, L = Array(u).fill(0), I = Array(u).fill(0);
|
|
225
226
|
l.forEach(({ x: w, y: G }) => {
|
|
226
227
|
const de = Math.floor((w - s) / N), he = Math.floor((G - v) / M);
|
|
227
228
|
L[de] || (L[de] = 0), I[he] || (I[he] = 0), L[de] += 1, I[he] += 1;
|
|
@@ -371,7 +372,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
371
372
|
}), (t, u) => (o(), r("div", {
|
|
372
373
|
class: Re(`vue-ui-scatter ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
373
374
|
ref_key: "scatterChart",
|
|
374
|
-
ref:
|
|
375
|
+
ref: Z,
|
|
375
376
|
id: `vue-ui-scatter_${z.value}`,
|
|
376
377
|
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
377
378
|
onMouseenter: u[2] || (u[2] = () => n(Ce)(!0)),
|
|
@@ -385,7 +386,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
385
386
|
active: oe.value,
|
|
386
387
|
onClose: ye
|
|
387
388
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
388
|
-
|
|
389
|
+
Qe.value ? (o(), r("div", {
|
|
389
390
|
key: 1,
|
|
390
391
|
ref_key: "noTitle",
|
|
391
392
|
ref: we,
|
|
@@ -414,7 +415,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
414
415
|
], 512)) : c("", !0),
|
|
415
416
|
e.value.userOptions.show && ee.value && (n(Ae) || n(ie)) ? (o(), V(zt, {
|
|
416
417
|
ref_key: "details",
|
|
417
|
-
ref:
|
|
418
|
+
ref: Ke,
|
|
418
419
|
key: `user_options_${me.value}`,
|
|
419
420
|
backgroundColor: e.value.style.backgroundColor,
|
|
420
421
|
color: e.value.style.color,
|
|
@@ -430,7 +431,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
430
431
|
isTooltip: B.value.showTooltip,
|
|
431
432
|
isFullscreen: H.value,
|
|
432
433
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
433
|
-
chartElement:
|
|
434
|
+
chartElement: Z.value,
|
|
434
435
|
position: e.value.userOptions.position,
|
|
435
436
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
436
437
|
isAnnotation: oe.value,
|
|
@@ -448,7 +449,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
448
449
|
t.$slots.menuIcon ? {
|
|
449
450
|
name: "menuIcon",
|
|
450
451
|
fn: _(({ isOpen: l, color: s }) => [
|
|
451
|
-
$(t.$slots, "menuIcon",
|
|
452
|
+
$(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
|
|
452
453
|
]),
|
|
453
454
|
key: "0"
|
|
454
455
|
} : void 0,
|
|
@@ -490,14 +491,14 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
490
491
|
t.$slots.optionFullscreen ? {
|
|
491
492
|
name: "optionFullscreen",
|
|
492
493
|
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
493
|
-
$(t.$slots, "optionFullscreen",
|
|
494
|
+
$(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
494
495
|
]),
|
|
495
496
|
key: "6"
|
|
496
497
|
} : void 0,
|
|
497
498
|
t.$slots.optionAnnotator ? {
|
|
498
499
|
name: "optionAnnotator",
|
|
499
500
|
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
500
|
-
$(t.$slots, "optionAnnotator",
|
|
501
|
+
$(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
501
502
|
]),
|
|
502
503
|
key: "7"
|
|
503
504
|
} : void 0
|
|
@@ -585,7 +586,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
585
586
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
586
587
|
]))
|
|
587
588
|
]))), 256)),
|
|
588
|
-
e.value.style.layout.marginalBars.show ? (o(), r("g",
|
|
589
|
+
e.value.style.layout.marginalBars.show ? (o(), r("g", Jt, [
|
|
589
590
|
d("defs", null, [
|
|
590
591
|
d("linearGradient", {
|
|
591
592
|
id: `marginal_x_${z.value}`,
|
|
@@ -597,12 +598,12 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
597
598
|
d("stop", {
|
|
598
599
|
offset: "0%",
|
|
599
600
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
600
|
-
}, null, 8,
|
|
601
|
+
}, null, 8, Qt),
|
|
601
602
|
d("stop", {
|
|
602
603
|
offset: "100%",
|
|
603
604
|
"stop-color": e.value.style.backgroundColor
|
|
604
|
-
}, null, 8,
|
|
605
|
-
], 8,
|
|
605
|
+
}, null, 8, Zt)
|
|
606
|
+
], 8, Kt),
|
|
606
607
|
d("linearGradient", {
|
|
607
608
|
id: `marginal_y_${z.value}`,
|
|
608
609
|
x1: "0%",
|
|
@@ -898,7 +899,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
898
899
|
$(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
899
900
|
], 14, Dt)) : c("", !0),
|
|
900
901
|
t.$slots.watermark ? (o(), r("div", Ll, [
|
|
901
|
-
$(t.$slots, "watermark",
|
|
902
|
+
$(t.$slots, "watermark", K(Q({ isPrinting: n(Le) || n(Be) })), void 0, !0)
|
|
902
903
|
])) : c("", !0),
|
|
903
904
|
ee.value ? c("", !0) : (o(), V(Bt, {
|
|
904
905
|
key: 6,
|
|
@@ -925,7 +926,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
925
926
|
e.value.style.legend.show ? (o(), V(Tt, {
|
|
926
927
|
key: `legend_${Me.value}`,
|
|
927
928
|
legendSet: R.value,
|
|
928
|
-
config:
|
|
929
|
+
config: Ze.value,
|
|
929
930
|
onClickMarker: u[0] || (u[0] = ({ legend: l }) => De(l.id))
|
|
930
931
|
}, {
|
|
931
932
|
item: _(({ legend: l }) => [
|
|
@@ -959,16 +960,16 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
959
960
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
960
961
|
position: e.value.style.tooltip.position,
|
|
961
962
|
offsetY: e.value.style.tooltip.offsetY,
|
|
962
|
-
parent:
|
|
963
|
+
parent: Z.value,
|
|
963
964
|
content: re.value,
|
|
964
965
|
isFullscreen: H.value,
|
|
965
966
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
966
967
|
}, {
|
|
967
968
|
"tooltip-before": _(() => [
|
|
968
|
-
$(t.$slots, "tooltip-before",
|
|
969
|
+
$(t.$slots, "tooltip-before", K(Q({ ...ve.value })), void 0, !0)
|
|
969
970
|
]),
|
|
970
971
|
"tooltip-after": _(() => [
|
|
971
|
-
$(t.$slots, "tooltip-after",
|
|
972
|
+
$(t.$slots, "tooltip-after", K(Q({ ...ve.value })), void 0, !0)
|
|
972
973
|
]),
|
|
973
974
|
default: _(() => [
|
|
974
975
|
e.value.style.tooltip.showShape ? (o(), r("div", Ol, [
|
|
@@ -1028,7 +1029,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
1028
1029
|
}, 8, ["config"])) : c("", !0)
|
|
1029
1030
|
], 46, Xt));
|
|
1030
1031
|
}
|
|
1031
|
-
}, ta = /* @__PURE__ */ It(Fl, [["__scopeId", "data-v-
|
|
1032
|
+
}, ta = /* @__PURE__ */ It(Fl, [["__scopeId", "data-v-e97afbcb"]]);
|
|
1032
1033
|
export {
|
|
1033
1034
|
ta as default
|
|
1034
1035
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Crz6y51C.cjs"),Be=require("./useResponsive-N8jl0-aC.cjs"),Pe=require("./Title-BkwZ_rBI.cjs"),_e=require("./usePrinter-Cqxw0sR7.cjs"),Oe=require("./Tooltip-DhhX9jKQ.cjs"),De=require("./Legend-BB6S3gBp.cjs"),Ce=require("./Shape-DCTTj5cs.cjs"),Fe=require("./DataTable-Dp7g_Ei4.cjs"),We=require("./vue-ui-skeleton-BZsFiqo5.cjs"),qe=require("./vue-ui-accordion-10T9IdE-.cjs"),Ne=require("./useNestedProp-B8CE091o.cjs"),Ie=require("./PackageVersion-Dj3KQ8Ax.cjs"),Xe=require("./PenAndPaper-OCjAJH70.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Ge=["xmlns","viewBox"],He=["width","height"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:2},et=["points","fill","stroke-width","stroke-dasharray","stroke"],tt={key:0},lt=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],at={key:1},ot={key:3},st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["id"],it=["stop-color"],ct=["stop-color"],vt=["x","y","width","height","fill","stroke","stroke-width","rx"],yt=["x","y","height","width","fill","stroke","stroke-width","rx"],dt={key:0},pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft=["d","stroke","stroke-width"],mt=["d","stroke","stroke-width"],gt={key:4,style:{"pointer-events":"none !important"}},kt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],xt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],bt=["x","y","font-size","fill","font-weight","text-anchor"],wt=["x","y","font-size","fill","font-weight"],Bt=["cx","cy","r","fill","stroke","stroke-width"],_t=["cx","cy","r","fill","stroke","stroke-width"],Ct=["x","y","font-size","fill","font-weight","text-anchor"],Nt={key:5},St=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],$t=["id","transform","font-size","font-weight","fill"],Et={key:6},zt=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],Vt=["font-size","font-weight","fill","x","y"],At=["id"],Tt=["x","y","width","height"],Pt={key:7},Ot=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Dt=["x","y","fill","font-size","font-weight"],Ft={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},It={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Xt={key:0},Rt=["innerHTML"],Yt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Se,{expose:Me}){const{vue_ui_scatter:$e}=s.useConfig(),N=Se,P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),Ee=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),T=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:R,setUserOptionsVisibility:se,keepUserOptionState:re}=Re.useUserOptionState({config:t.value}),{svgRef:ne}=Ye.useChartAccessibility({config:t.value.style.title});function ue(){const l=Ne.useNestedProp({userConfig:N.config,defaultConfig:$e});return l.theme?{...Ne.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ue(),R.value=!t.value.userOptions.showOnChartHover,ie(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const O=e.ref(null);e.onMounted(()=>{ie()});function ie(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=Be.throttle(()=>{const{width:n,height:a}=Be.useResponsive({chart:T.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});O.value=new ResizeObserver(l),O.value.observe(T.value.parentNode)}}e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});const{isPrinting:ce,isImaging:ve,generatePdf:ye,generateImage:de}=_e.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter",options:t.value.userOptions.print}),ze=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),pe=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),D=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+D.value,right:h.value.width-t.value.style.layout.padding.right-D.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-D.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-D.value})),v=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),y=e.computed(()=>({x:u.value.left+Math.abs(v.value.xMin)/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(v.value.yMin)/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ke(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(v.value.xMin))/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(v.value.yMin))/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>Y.value.map(l=>{const n=l.plots.reduce((d,z)=>d+z.x,0)/l.plots.length,a=l.plots.reduce((d,z)=>d+z.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),A=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+A,y2:E*u.value.right+A,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const z=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-z,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),he=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function Ve(){return x.value}function fe(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(L=>({x:L.x,y:L.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:L})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,L),f=Math.max(f,L)});const E=o-r,A=f-i,C=E/n,g=A/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:L})=>{const H=Math.floor((m-r)/C),J=Math.floor((L-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const z=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:z,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(Y.value,M.value)),Ae=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(a=>{const r=fe(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),j=e.ref(null);function me(l,n){_.value=l.id,c.value=l;let a="";j.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function ge(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ke(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function xe(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:n,config:a,colNames:l}}),V=e.ref(!1);function Te(l){V.value=l,K.value+=1}function be(){B.value.showTable=!B.value.showTable}function we(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Me({getData:Ve,generatePdf:ye,generateCsv:xe,generateImage:de,toggleTable:be,toggleTooltip:we,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:T,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Xe.PenAndPaper,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ze.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(R))?(e.openBlock(),e.createBlock(_e.UserOptions,{ref_key:"details",ref:Ee,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ve),isPrinting:e.unref(ce),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:B.value.showTooltip,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ye),onGenerateCsv:xe,onGenerateImage:e.unref(de),onToggleTable:be,onToggleTooltip:we,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:y.value.x,x2:y.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:y.value.y,y2:y.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(Ce._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,nt)],8,st),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,it),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ct)],8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,yt)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ft)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,mt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("line",{x1:y.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,kt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:y.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,xt),e.createElementVNode("text",{x:y.value.x+(c.value.x>y.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>y.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,bt),e.createElementVNode("text",{x:c.value.x,y:y.value.y+(c.value.y>y.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,wt),e.createElementVNode("circle",{cx:y.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,Bt),e.createElementVNode("circle",{cx:c.value.x,cy:y.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,_t),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<y.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>y.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("text",{x:u.value.left-5,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,St),e.createElementVNode("text",{x:u.value.right+3,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Mt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,$t)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Et,[e.createElementVNode("text",{x:y.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,zt),e.createElementVNode("text",{x:y.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Lt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Vt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Tt)],8,At),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(ve)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ke(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Wt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:T.value,content:X.value,isFullscreen:V.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",qt,[(e.openBlock(),e.createElementBlock("svg",It,[e.createVNode(Ce._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,Rt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},jt=je._export_sfc(Yt,[["__scopeId","data-v-e97afbcb"]]);exports.default=jt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as i, computed as V, createElementBlock as U, openBlock as G, nextTick as K } from "vue";
|
|
2
|
-
import { u as P, A as q, z as J } from "./index-
|
|
3
|
-
import Q from "./html2canvas.esm-
|
|
2
|
+
import { u as P, A as q, z as J } from "./index-DWsIpwzs.js";
|
|
3
|
+
import Q from "./html2canvas.esm-DgdJBc_o.js";
|
|
4
4
|
const ne = {
|
|
5
5
|
__name: "vue-ui-screenshot",
|
|
6
6
|
props: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),k=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),k=require("./index-Crz6y51C.cjs"),U=require("./html2canvas.esm-BA_v9SIU.cjs"),q={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(z,{expose:T,emit:H}){const{vue_ui_screenshot:C}=k.useConfig(),B=z,$=i.ref(`vue-ui-screenshot-${Math.random()}`),n=i.computed(()=>{if(!Object.keys(B.config||{}).length)return C;const e=k.treeShake({defaultConfig:C,userConfig:B.config});return k.convertConfigColors(e)}),a=i.ref(null),d=i.ref(null),v=i.ref(null),M=i.ref(null),S=i.ref(null),y=i.ref(null),h=i.ref(null),p=i.ref(null),m=i.ref(null),b=i.ref(null),x=i.ref(null),w=i.ref(!1),I=i.ref(null);function R(){const e=document.createElement("DIV"),{innerWidth:t,innerHeight:l}=window;return e.style.position="fixed",e.style.top=`${l?l/2-n.value.style.captureArea.initialHeight/2:200}px`,e.style.left=`${t?t/2-n.value.style.captureArea.initialWidth/2:100}px`,e.style.width=`${n.value.style.captureArea.initialWidth}px`,e.style.height=`${n.value.style.captureArea.initialHeight}px`,e.style.background=n.value.style.captureArea.background,e.style.cursor="move",e.style.boxSizing="border-box",e.style.border=n.value.style.captureArea.border,e.style.resize="both",e.style.padding="none !important",e.style.margin="none !important",e.dataset.cy="screenshot-overlay",e}function E(){a.value&&(clearTimeout(I.value),a.value.remove(),a.value=null)}function W(e){const t=document.createElement("DIV");t.classList.add("vue-ui-screenshot-info-text"),t.innerHTML=n.value.translations.info,t.dataset.html2canvasIgnore="true",t.dataset.cy="screenshot-info-text",t.style.background=n.value.style.info.background,t.style.color=n.value.style.info.color,t.style.fontWeight=n.value.style.info.bold?"bold":"normal",t.style.minWidth=`${n.value.style.info.minWidth}px`,t.style.left="50%",t.style.padding=`${n.value.style.info.padding}px`,t.style.position="absolute",t.style.textAlign="center",t.style.top=`${n.value.style.info.top}px`,t.style.transform="translateX(-50%)",t.style.borderRadius=`${n.value.style.info.borderRadius}px`,t.style.boxShadow=n.value.style.info.boxShadow,t.style.fontFamily=n.value.style.info.fontFamily,t.style.fontSize=`${n.value.style.info.fontSize}px`,t.style.border=n.value.style.info.border,t.style.userSelect="none";const l=document.createElement("BUTTON");l.classList.add("vue-ui-screenshot-close-button"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',l.style.outline="none",l.dataset.cy="screenshot-close-button",l.style.display="flex",l.style.cursor="pointer",l.style.borderRadius="50%",l.style.alignItems="center",l.style.position="absolute",l.style.justifyContent="center",l.style.transformOrigin="center",l.style.top=`${n.value.style.cancelButton.top}px`,l.style.right=`${n.value.style.cancelButton.right}px`,l.style.background=n.value.style.cancelButton.background,l.style.color=n.value.style.cancelButton.color,l.style.border=n.value.style.cancelButton.border,l.style.borderRadius=`${n.value.style.cancelButton.borderRadius}px`,l.style.height=`${n.value.style.cancelButton.size}px`,l.style.width=`${n.value.style.cancelButton.size}px`,l.addEventListener("click",E),t.appendChild(l),e.appendChild(t)}function X(e){a.value&&(w.value=!0,e.touches?(y.value=e.touches[0].clientX,h.value=e.touches[0].clientY):(y.value=e.clientX,h.value=e.clientY),b.value=a.value.getBoundingClientRect().width,x.value=a.value.getBoundingClientRect().height,e.target.addEventListener("mousemove",L),e.target.addEventListener("touchmove",L))}function L(e){if(!a.value)return;let t,l;e.touches?(p.value=e.touches[0].clientX,t=e.touches[0].clientX,m.value=e.touches[0].clientY,l=e.touches[0].clientY):(p.value=e.clientX,t=e.clientX,m.value=e.clientY,l=e.clientY);const u=e.target.classList[0],o=a.value.style;switch(!0){case u==="vue-ui-screenshot-handle-nw":o.top=`${l}px`,o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(h.value-m.value)}px`;break;case u==="vue-ui-screenshot-handle-ne":o.top=`${l}px`,o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(h.value-m.value)}px`;break;case u==="vue-ui-screenshot-handle-sw":o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(m.value-h.value)}px`;break;case u==="vue-ui-screenshot-handle-se":o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(m.value-h.value)}px`;break}}function A(e){if(!a.value)return;e.stopPropagation();const t=Array.from(e.target.classList);t.includes("vue-ui-screenshot-handle-se")||t.includes("vue-ui-screenshot-handle-sw")||t.includes("vue-ui-screenshot-handle-nw")||t.includes("vue-ui-screenshot-handle-ne")||(w.value=!0,a.value.style.pointerEvents="auto",e.touches?(d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(d.value=e.clientX,v.value=e.clientY),M.value=d.value,S.value=v.value,document.addEventListener("mousemove",g),document.addEventListener("touchmove",g),document.addEventListener("mouseup",f),document.addEventListener("touchend",f))}function f(){d.value=null,v.value=null,M.value=null,S.value=null,w.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",f),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",f)}function g(e){if(!a.value)return;const t=a.value.getBoundingClientRect();let l,u;e.touches?(l=e.touches[0].clientX-d.value,u=e.touches[0].clientY-v.value,d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(l=e.clientX-d.value,u=e.clientY-v.value,d.value=e.clientX,v.value=e.clientY),a.value.style.top=`${t.top+u}px`,a.value.style.left=`${t.left+l}px`}function Y(e){e.target.removeEventListener("mousemove",L),e.target.removeEventListener("touchmove",L),document.removeEventListener("mousemove",g),document.removeEventListener("touchmove",g),document.removeEventListener("mouseup",f),document.removeEventListener("touchend",f),w.value=!1}function D(){const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"}const O=H;function _(){const e=document.getElementById(`vue-ui-screenshot-button-${$.value}`);e.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
2
2
|
<path fill="none" stroke="currentColor" d="M1 4 1 3C1 2 2 1 3 1L4 1M16 1 17 1C18 1 19 2 19 3L19 4M1 16 1 17C1 18 2 19 3 19L4 19M16 19 17 19C18 19 19 18 19 17L19 16M8 10A1 1 0 0012 10 1 1 0 008 10M5 13 5 8C5 7 5 7 6 7L14 7C15 7 15 7 15 8L15 13C15 14 15 14 14 14L6 14C5 14 5 14 5 13M7 6 13 6" />
|
|
3
3
|
</svg>`,document.getElementById(`vue-ui-screenshot-button-${$.value}`).animate([{opacity:"0.3"},{opacity:"1"},{opacity:"0.3"}],{duration:1e3,iterations:1/0}),e.classList.add("loading"),e.setAttribute("disabled","true")}function F(){if(!a.value)return;_();const e=a.value.getBoundingClientRect();I.value=setTimeout(()=>{U.default(document.body,{allowTaint:!0,width:e.width,height:e.height,x:e.left+window.scrollX,y:e.top+window.scrollY,useCORS:!0,scale:n.value.quality}).then(t=>{const l=t.toDataURL("image/png",1),u=l.split(",")[1],c=atob(u).length/1024;if(n.value.mode==="download"){const s=document.createElement("a");s.download="screenshot.png",s.href=l,s.click()}n.value.mode==="post"&&O("postImage",{createdAt:Date.now(),fileSize:`${c.toFixed(2)} KB`,image:l,x:e.left+window.scrollX,y:e.top+window.scrollY,screenWidth:window.innerWidth>0?window.innerWidth:screen.width,deviceType:D()})}).finally(E)},10)}function j(e){const t=n.value.style.handles.size/2+4,l=document.createElement("DIV");l.style.top=`${-t}px`,l.style.left=`${-t}px`,l.style.cursor="nw-resize",l.classList.add("vue-ui-screenshot-handle-nw"),l.dataset.cy="screenshot-handle-nw";const u=document.createElement("DIV");u.style.top=`${-t}px`,u.style.left="auto",u.style.right=`${-t}px`,u.style.cursor="ne-resize",u.classList.add("vue-ui-screenshot-handle-ne"),u.dataset.cy="screenshot-handle-ne";const o=document.createElement("DIV");o.style.top="auto",o.style.bottom=`${-t}px`,o.style.left=`${-t}px`,o.style.cursor="sw-resize",o.classList.add("vue-ui-screenshot-handle-sw"),o.dataset.cy="screenshot-handle-sw";const c=document.createElement("DIV");c.style.top="auto",c.style.left="auto",c.style.right=`${-t}px`,c.style.bottom=`${-t}px`,c.style.cursor="se-resize",c.classList.add("vue-ui-screenshot-handle-se"),c.dataset.cy="screenshot-handle-se";const s=document.createElement("BUTTON");s.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path fill="none" stroke="currentColor" d="M1 4 1 3C1 2 2 1 3 1L4 1M16 1 17 1C18 1 19 2 19 3L19 4M1 16 1 17C1 18 2 19 3 19L4 19M16 19 17 19C18 19 19 18 19 17L19 16M8 10A1 1 0 0012 10 1 1 0 008 10M5 13 5 8C5 7 5 7 6 7L14 7C15 7 15 7 15 8L15 13C15 14 15 14 14 14L6 14C5 14 5 14 5 13M7 6 13 6" /></svg><span>${n.value.translations.captureButton}</span>`,s.classList.add("vue-ui-screenshot-capture-button"),s.id=`vue-ui-screenshot-button-${$.value}`,s.style.position="absolute",s.style.top="50%",s.style.left="50%",s.style.transform="translate(-50%,-50%)",s.style.background=n.value.style.captureButton.background,s.style.color=n.value.style.captureButton.color,s.style.border=n.value.style.captureButton.border,s.style.outline="none",s.style.cursor="pointer",s.style.padding=n.value.style.captureButton.padding,s.style.fontFamily=n.value.style.captureButton.fontFamily,s.style.fontSize=`${n.value.style.captureButton.fontSize}px`,s.style.minHeight=`${n.value.style.captureButton.minHeight}px`,s.style.width="fit-content",s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.gap="3px",s.style.borderRadius=`${n.value.style.captureButton.borderRadius}px`,s.style.boxShadow=n.value.style.captureButton.boxShadow,s.style.userSelect="none",s.style.opacity="0.95",s.style.textAlign="left",s.style.fontWeight=n.value.style.captureButton.bold?"bold":"normal",s.dataset.cy="screenshot-save-button",s.addEventListener("mouseenter",()=>{s.style.opacity="1"}),s.addEventListener("mouseleave",()=>{s.style.opacity="0.95"}),s.addEventListener("click",F),e.appendChild(s),[l,u,o,c].forEach((r,V)=>{r.classList.add(`handle-${V}`),r.dataset.html2canvasIgnore="true",r.style.position="absolute",r.style.height=`${n.value.style.handles.size}px`,r.style.width=`${n.value.style.handles.size}px`,r.style.background=n.value.style.handles.background,r.style.border=n.value.style.handles.border,r.style.borderRadius=`${n.value.style.handles.borderRadius}px`,r.style.pointerEvents="auto !important",r.addEventListener("mousedown",X),r.addEventListener("touchstart",X),e.appendChild(r)})}function N(){a.value||i.nextTick(()=>{const e=R();e.dataset.html2canvasIgnore=!0,W(e),j(e),a.value=e,e.addEventListener("touchmove",function(t){t.preventDefault()},{passive:!1}),document.body.appendChild(e),document.addEventListener("mousedown",A),document.addEventListener("touchstart",A),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)})}return T({shoot:N,close:E}),(e,t)=>(i.openBlock(),i.createElementBlock("div"))}};exports.default=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-CBRI5uwl.cjs"),M=require("./useNestedProp-0jJvFRhK.cjs"),s=require("./PackageVersion-D_gJvbGU.cjs"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=["id"],L=["xmlns"],S=["stroke"],z=["stroke"],P=["stroke"],A=["fill","stroke"],$=["fill"],X=["fill","stroke"],W=["fill"],j=["fill","stroke"],F=["fill"],O=["fill","stroke"],q=["fill"],H=["fill","stroke"],Z=["fill"],I=["fill","stroke"],T=["fill"],G=["xmlns"],R=["stroke"],Y=["stroke"],D=["stroke"],U=["stroke"],J=["stroke"],K=["stroke"],Q=["stroke"],ee=["stroke"],te=["stroke"],le=["xmlns"],oe=["stroke","fill"],re=["xmlns"],ne=["stroke","fill"],se=["xmlns"],ce=["fill"],ae=["fill"],ie=["fill"],de=["fill"],ue=["xmlns"],ke=["stroke"],ye=["fill"],he=["stroke","fill"],me=["stroke","fill"],ve=["fill"],_e=["stroke","fill"],pe=["stroke","fill"],xe=["fill"],fe=["stroke","fill"],ge=["stroke","fill"],Ne=["fill"],we=["stroke","fill"],Ee=["stroke","fill"],Ve=["fill"],Be=["stroke","fill"],Me=["stroke","fill"],be=["xmlns"],Ce=["stroke"],Le=["stroke"],Se=["stroke","fill"],ze=["stroke","fill"],Pe=["stroke","fill"],Ae=["stroke","fill"],$e=["stroke","fill"],Xe=["stroke","fill"],We=["stroke","fill"],je=["stroke","fill"],Fe=["stroke","fill"],Oe=["stroke","fill"],qe=["stroke","fill"],He=["stroke","fill"],Ze=["stroke","fill"],Ie=["stroke","fill"],Te=["stroke","fill"],Ge=["stroke","fill"],Re=["stroke","fill"],Ye=["stroke","fill"],De=["stroke","fill"],Ue=["stroke","fill"],Je=["stroke","fill"],Ke=["stroke","fill"],Qe=["stroke","fill"],et=["xmlns"],tt=["stroke"],lt=["xmlns"],ot=["stroke"],rt=["xmlns"],nt=["stroke"],st=["xmlns"],ct=["fill"],at=["fill"],it=["fill"],dt=["fill"],ut=["fill"],kt=["fill"],yt=["fill"],ht=["fill"],mt=["fill"],vt=["fill"],_t=["fill"],pt=["fill"],xt=["xmlns"],ft=["stroke"],gt=["stroke"],Nt=["stroke"],wt=["stroke"],Et=["stroke"],Vt=["stroke"],Bt=["xmlns"],Mt=["stroke"],bt=["stroke"],Ct=["stroke"],Lt=["stroke"],St=["stroke"],zt=["stroke"],Pt=["stroke"],At=["stroke"],$t=["stroke"],Xt=["xmlns"],Wt=["stroke"],jt=["xmlns"],Ft=["stroke"],Ot=["stroke"],qt=["stroke"],Ht=["stroke"],Zt=["stroke"],It=["stroke"],Tt=["stroke"],Gt=["stroke"],Rt=["stroke"],Yt=["xmlns"],Dt=["x1","x2","stroke"],Ut=["xmlns"],Jt=["x","y","width","height","fill"],Kt=["y","width","height","fill"],Qt=["xmlns"],el=["fill"],tl=["fill"],ll=["fill"],ol=["xmlns"],rl=["x1","x2","y1","y2","stroke"],nl=["stroke"],sl=["fill"],cl=["xmlns"],al=["fill"],il=["fill"],dl=["x1","y1","x2","y2","stroke-width","stroke"],ul=["xmlns"],kl={key:0},yl=["stroke","stroke-width"],hl=["stroke","stroke-width"],ml=["x1","x2","y1","y2","stroke","stroke-width"],vl=["x1","x2","y1","y2","stroke","stroke-width"],_l=["x1","x2","y1","y2","stroke","stroke-width"],pl=["x","y","height","width","fill"],xl=["xmlns","viewBox"],fl=["x","y","stroke","fill"],gl=["xmlns"],Nl=["d","stroke"],wl=["cx","cy","r","fill","stroke"],El=["cx","cy","r","fill","stroke"],Vl=["x","y","width","fill"],Bl=["cx","cy","fill"],Ml=["cx","cy","fill"],bl=["stroke"],Cl=["xmlns"],Ll=["stroke","stroke-width"],Sl=["stroke","stroke-width"],zl=["stroke","stroke-width"],Pl=["fill"],Al=["fill"],$l=["fill"],Xl=["fill"],Wl=["fill"],jl=["fill"],Fl=["xmlns"],Ol={key:0},ql=["stroke","stroke-width"],Hl=["stroke","stroke-width"],Zl=["stroke","stroke-width"],Il={key:1},Tl=["r","fill"],Gl=["r","fill"],Rl=["xmlns"],Yl={key:0},Dl=["stroke","stroke-width"],Ul=["stroke","stroke-width"],Jl=["fill","rx","x","y","width","height"],Kl=["xmlns"],Ql=["stroke-width","stroke"],eo=["stroke-width","stroke"],to=["stroke-width","stroke"],lo=["xmlns"],oo=["stroke"],ro=["stroke"],no=["stroke"],so=["stroke"],co=["fill"],ao=["stroke"],io=["xmlns"],uo=["stroke","stroke-width"],ko=["stroke","stroke-width"],yo=["fill","r"],ho=["fill","r"],mo=["fill","r"],vo=["fill","r"],_o=["fill","r"],po=["fill","r"],xo=["fill","r"],fo=["fill","r"],go=["fill","r"],No=["xmlns"],wo=["d","stroke","stroke-width"],Eo=["d","stroke","stroke-width"],Vo=["d","stroke","stroke-width"],Bo=["d","stroke","stroke-width"],Mo=["stroke","stroke-width"],bo=["stroke","stroke-width"],Co=["stroke","stroke-width"],Lo=["fill"],So=["fill"],zo=["xmlns"],Po=["x","y","fill"],Ao=["x","y","fill"],$o=["x","y","fill"],Xo=["xmlns"],Wo=["fill"],jo=["fill"],Fo=["y1","y2","stroke","stroke-width"],Oo=["x1","x2","stroke","stroke-width"],qo=["xmlns","stroke"],Ho=["fill"],Zo=["xmlns","stroke"],Io=["xmlns","stroke"],To=["fill"],Go=["xmlns","stroke"],Ro=["xmlns","stroke"],Yo=["fill"],Do=["xmlns","stroke"],Uo=["xmlns","stroke"],Jo=["fill"],Ko=["xmlns","stroke"],Qo=["xmlns","stroke"],er=["fill"],tr=["xmlns","stroke"],lr=["xmlns"],or=["points","fill","stroke","stroke-width"],rr=["xmlns"],nr={key:0},sr=["stroke","stroke-width"],cr=["y","width","fill","rx"],ar={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(v){const{vue_ui_skeleton:_}=l.useConfig(),p=v,x=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>M.useNestedProp({userConfig:p.config,defaultConfig:_})),f=e.computed(()=>t.value.style.animated),n=e.computed(()=>t.value.type),g=e.ref([60,50,55,36,40,25,26,12]),N=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),w=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),k=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),u=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),y=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function h(d,c=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*c,y:200+160*Math.sin(29.85+d*Math.PI/180)*c}}const B=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:h(360/100*o).x,y1:h(360/100*o).y,x2:h(360/100*o,.9).x,y2:h(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,c)=>(e.openBlock(),e.createElementBlock("div",{id:x.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":f.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[n.value==="historyPlot"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 612 512",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"12",x2:"12",y1:"12",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,S),e.createElementVNode("line",{x1:"12",x2:"600",y1:"500",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,z),e.createElementVNode("path",{d:"M 80,100 300,200 400,150 560,230 360,420 230,320",fill:"none",stroke:t.value.style.historyPlot.color,"stroke-width":"3"},null,8,P),e.createElementVNode("circle",{cx:"80",cy:"100",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,A),e.createElementVNode("text",{x:"80",y:"108",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"1",8,$),e.createElementVNode("circle",{cx:"300",cy:"200",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,X),e.createElementVNode("text",{x:"300",y:"208",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"2",8,W),e.createElementVNode("circle",{cx:"400",cy:"150",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,j),e.createElementVNode("text",{x:"400",y:"158",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"3",8,F),e.createElementVNode("circle",{cx:"560",cy:"230",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,O),e.createElementVNode("text",{x:"560",y:"238",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"4",8,q),e.createElementVNode("circle",{cx:"360",cy:"420",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,H),e.createElementVNode("text",{x:"360",y:"428",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"5",8,Z),e.createElementVNode("circle",{cx:"230",cy:"320",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,I),e.createElementVNode("text",{x:"230",y:"328",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"6",8,T)],12,L)):e.createCommentVNode("",!0),n.value==="circlePack"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:50,cy:50,r:20,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,R),e.createElementVNode("circle",{cx:80,cy:50,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,Y),e.createElementVNode("circle",{cx:28,cy:30,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,D),e.createElementVNode("circle",{cx:25,cy:76,r:16,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,U),e.createElementVNode("circle",{cx:60,cy:78.5,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,J),e.createElementVNode("circle",{cx:64,cy:20,r:13,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,K),e.createElementVNode("circle",{cx:72,cy:37,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,Q),e.createElementVNode("circle",{cx:25,cy:45,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,ee),e.createElementVNode("circle",{cx:70,cy:66,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,te)],12,G)):e.createCommentVNode("",!0),n.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,oe)],12,le)):e.createCommentVNode("",!0),n.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,ne)],12,re)):e.createCommentVNode("",!0),n.value==="bullet"?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 600 96",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:"0.8"}},null,8,ce),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:"0.6"}},null,8,ae),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:"0.3"}},null,8,ie),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:"1"}},null,8,de)],12,se)):e.createCommentVNode("",!0),n.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ke),e.createElementVNode("path",{d:`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Crz6y51C.cjs"),M=require("./useNestedProp-B8CE091o.cjs"),s=require("./PackageVersion-Dj3KQ8Ax.cjs"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=["id"],L=["xmlns"],S=["stroke"],z=["stroke"],P=["stroke"],A=["fill","stroke"],$=["fill"],X=["fill","stroke"],W=["fill"],j=["fill","stroke"],F=["fill"],O=["fill","stroke"],q=["fill"],H=["fill","stroke"],Z=["fill"],I=["fill","stroke"],T=["fill"],G=["xmlns"],R=["stroke"],Y=["stroke"],D=["stroke"],U=["stroke"],J=["stroke"],K=["stroke"],Q=["stroke"],ee=["stroke"],te=["stroke"],le=["xmlns"],oe=["stroke","fill"],re=["xmlns"],ne=["stroke","fill"],se=["xmlns"],ce=["fill"],ae=["fill"],ie=["fill"],de=["fill"],ue=["xmlns"],ke=["stroke"],ye=["fill"],he=["stroke","fill"],me=["stroke","fill"],ve=["fill"],_e=["stroke","fill"],pe=["stroke","fill"],xe=["fill"],fe=["stroke","fill"],ge=["stroke","fill"],Ne=["fill"],we=["stroke","fill"],Ee=["stroke","fill"],Ve=["fill"],Be=["stroke","fill"],Me=["stroke","fill"],be=["xmlns"],Ce=["stroke"],Le=["stroke"],Se=["stroke","fill"],ze=["stroke","fill"],Pe=["stroke","fill"],Ae=["stroke","fill"],$e=["stroke","fill"],Xe=["stroke","fill"],We=["stroke","fill"],je=["stroke","fill"],Fe=["stroke","fill"],Oe=["stroke","fill"],qe=["stroke","fill"],He=["stroke","fill"],Ze=["stroke","fill"],Ie=["stroke","fill"],Te=["stroke","fill"],Ge=["stroke","fill"],Re=["stroke","fill"],Ye=["stroke","fill"],De=["stroke","fill"],Ue=["stroke","fill"],Je=["stroke","fill"],Ke=["stroke","fill"],Qe=["stroke","fill"],et=["xmlns"],tt=["stroke"],lt=["xmlns"],ot=["stroke"],rt=["xmlns"],nt=["stroke"],st=["xmlns"],ct=["fill"],at=["fill"],it=["fill"],dt=["fill"],ut=["fill"],kt=["fill"],yt=["fill"],ht=["fill"],mt=["fill"],vt=["fill"],_t=["fill"],pt=["fill"],xt=["xmlns"],ft=["stroke"],gt=["stroke"],Nt=["stroke"],wt=["stroke"],Et=["stroke"],Vt=["stroke"],Bt=["xmlns"],Mt=["stroke"],bt=["stroke"],Ct=["stroke"],Lt=["stroke"],St=["stroke"],zt=["stroke"],Pt=["stroke"],At=["stroke"],$t=["stroke"],Xt=["xmlns"],Wt=["stroke"],jt=["xmlns"],Ft=["stroke"],Ot=["stroke"],qt=["stroke"],Ht=["stroke"],Zt=["stroke"],It=["stroke"],Tt=["stroke"],Gt=["stroke"],Rt=["stroke"],Yt=["xmlns"],Dt=["x1","x2","stroke"],Ut=["xmlns"],Jt=["x","y","width","height","fill"],Kt=["y","width","height","fill"],Qt=["xmlns"],el=["fill"],tl=["fill"],ll=["fill"],ol=["xmlns"],rl=["x1","x2","y1","y2","stroke"],nl=["stroke"],sl=["fill"],cl=["xmlns"],al=["fill"],il=["fill"],dl=["x1","y1","x2","y2","stroke-width","stroke"],ul=["xmlns"],kl={key:0},yl=["stroke","stroke-width"],hl=["stroke","stroke-width"],ml=["x1","x2","y1","y2","stroke","stroke-width"],vl=["x1","x2","y1","y2","stroke","stroke-width"],_l=["x1","x2","y1","y2","stroke","stroke-width"],pl=["x","y","height","width","fill"],xl=["xmlns","viewBox"],fl=["x","y","stroke","fill"],gl=["xmlns"],Nl=["d","stroke"],wl=["cx","cy","r","fill","stroke"],El=["cx","cy","r","fill","stroke"],Vl=["x","y","width","fill"],Bl=["cx","cy","fill"],Ml=["cx","cy","fill"],bl=["stroke"],Cl=["xmlns"],Ll=["stroke","stroke-width"],Sl=["stroke","stroke-width"],zl=["stroke","stroke-width"],Pl=["fill"],Al=["fill"],$l=["fill"],Xl=["fill"],Wl=["fill"],jl=["fill"],Fl=["xmlns"],Ol={key:0},ql=["stroke","stroke-width"],Hl=["stroke","stroke-width"],Zl=["stroke","stroke-width"],Il={key:1},Tl=["r","fill"],Gl=["r","fill"],Rl=["xmlns"],Yl={key:0},Dl=["stroke","stroke-width"],Ul=["stroke","stroke-width"],Jl=["fill","rx","x","y","width","height"],Kl=["xmlns"],Ql=["stroke-width","stroke"],eo=["stroke-width","stroke"],to=["stroke-width","stroke"],lo=["xmlns"],oo=["stroke"],ro=["stroke"],no=["stroke"],so=["stroke"],co=["fill"],ao=["stroke"],io=["xmlns"],uo=["stroke","stroke-width"],ko=["stroke","stroke-width"],yo=["fill","r"],ho=["fill","r"],mo=["fill","r"],vo=["fill","r"],_o=["fill","r"],po=["fill","r"],xo=["fill","r"],fo=["fill","r"],go=["fill","r"],No=["xmlns"],wo=["d","stroke","stroke-width"],Eo=["d","stroke","stroke-width"],Vo=["d","stroke","stroke-width"],Bo=["d","stroke","stroke-width"],Mo=["stroke","stroke-width"],bo=["stroke","stroke-width"],Co=["stroke","stroke-width"],Lo=["fill"],So=["fill"],zo=["xmlns"],Po=["x","y","fill"],Ao=["x","y","fill"],$o=["x","y","fill"],Xo=["xmlns"],Wo=["fill"],jo=["fill"],Fo=["y1","y2","stroke","stroke-width"],Oo=["x1","x2","stroke","stroke-width"],qo=["xmlns","stroke"],Ho=["fill"],Zo=["xmlns","stroke"],Io=["xmlns","stroke"],To=["fill"],Go=["xmlns","stroke"],Ro=["xmlns","stroke"],Yo=["fill"],Do=["xmlns","stroke"],Uo=["xmlns","stroke"],Jo=["fill"],Ko=["xmlns","stroke"],Qo=["xmlns","stroke"],er=["fill"],tr=["xmlns","stroke"],lr=["xmlns"],or=["points","fill","stroke","stroke-width"],rr=["xmlns"],nr={key:0},sr=["stroke","stroke-width"],cr=["y","width","fill","rx"],ar={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(v){const{vue_ui_skeleton:_}=l.useConfig(),p=v,x=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>M.useNestedProp({userConfig:p.config,defaultConfig:_})),f=e.computed(()=>t.value.style.animated),n=e.computed(()=>t.value.type),g=e.ref([60,50,55,36,40,25,26,12]),N=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),w=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),k=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),u=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),y=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function h(d,c=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*c,y:200+160*Math.sin(29.85+d*Math.PI/180)*c}}const B=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:h(360/100*o).x,y1:h(360/100*o).y,x2:h(360/100*o,.9).x,y2:h(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,c)=>(e.openBlock(),e.createElementBlock("div",{id:x.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":f.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[n.value==="historyPlot"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 612 512",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"12",x2:"12",y1:"12",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,S),e.createElementVNode("line",{x1:"12",x2:"600",y1:"500",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,z),e.createElementVNode("path",{d:"M 80,100 300,200 400,150 560,230 360,420 230,320",fill:"none",stroke:t.value.style.historyPlot.color,"stroke-width":"3"},null,8,P),e.createElementVNode("circle",{cx:"80",cy:"100",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,A),e.createElementVNode("text",{x:"80",y:"108",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"1",8,$),e.createElementVNode("circle",{cx:"300",cy:"200",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,X),e.createElementVNode("text",{x:"300",y:"208",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"2",8,W),e.createElementVNode("circle",{cx:"400",cy:"150",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,j),e.createElementVNode("text",{x:"400",y:"158",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"3",8,F),e.createElementVNode("circle",{cx:"560",cy:"230",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,O),e.createElementVNode("text",{x:"560",y:"238",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"4",8,q),e.createElementVNode("circle",{cx:"360",cy:"420",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,H),e.createElementVNode("text",{x:"360",y:"428",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"5",8,Z),e.createElementVNode("circle",{cx:"230",cy:"320",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,I),e.createElementVNode("text",{x:"230",y:"328",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"6",8,T)],12,L)):e.createCommentVNode("",!0),n.value==="circlePack"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:50,cy:50,r:20,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,R),e.createElementVNode("circle",{cx:80,cy:50,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,Y),e.createElementVNode("circle",{cx:28,cy:30,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,D),e.createElementVNode("circle",{cx:25,cy:76,r:16,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,U),e.createElementVNode("circle",{cx:60,cy:78.5,r:10,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,J),e.createElementVNode("circle",{cx:64,cy:20,r:13,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,K),e.createElementVNode("circle",{cx:72,cy:37,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,Q),e.createElementVNode("circle",{cx:25,cy:45,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,ee),e.createElementVNode("circle",{cx:70,cy:66,r:5,stroke:t.value.style.circlePack.color,"stroke-width":1,fill:"none"},null,8,te)],12,G)):e.createCommentVNode("",!0),n.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,oe)],12,le)):e.createCommentVNode("",!0),n.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,ne)],12,re)):e.createCommentVNode("",!0),n.value==="bullet"?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 600 96",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:"0.8"}},null,8,ce),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:"0.6"}},null,8,ae),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:"0.3"}},null,8,ie),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:"1"}},null,8,de)],12,se)):e.createCommentVNode("",!0),n.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ke),e.createElementVNode("path",{d:`
|
|
2
2
|
M 30,11
|
|
3
3
|
C 39,10 39,10
|
|
4
4
|
45,11
|