vue-data-ui 2.4.86 → 2.4.88
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-DpgbndsU.js → Arrow-D79KA6Cu.js} +1 -1
- package/dist/{Arrow-Bh7Ezbzf.cjs → Arrow-DMSM0MM1.cjs} +1 -1
- package/dist/{BaseIcon-CdPe2CAc.js → BaseIcon-B9BZgZsa.js} +1 -1
- package/dist/{BaseIcon-CaKclr1e.cjs → BaseIcon-CehmAXJH.cjs} +1 -1
- package/dist/{DataTable-BfiPjHpN.js → DataTable-Cnr3w23K.js} +2 -2
- package/dist/{DataTable-DuosyZ6d.cjs → DataTable-DVKGDaCB.cjs} +1 -1
- package/dist/{Legend-DiFDWEo2.js → Legend-Di7FMl12.js} +2 -2
- package/dist/{Legend-BnKYc6ZY.cjs → Legend-Uv0t6PIz.cjs} +1 -1
- package/dist/{PackageVersion-qom4AEUr.js → PackageVersion-BAKTtSRE.js} +1 -1
- package/dist/{PackageVersion-B5rBHZEb.cjs → PackageVersion-BgKxrHv-.cjs} +1 -1
- package/dist/{PenAndPaper-C-1AU46J.js → PenAndPaper-BUzmu0vi.js} +3 -3
- package/dist/{PenAndPaper-5OV7IAca.cjs → PenAndPaper-BYVZ33fz.cjs} +1 -1
- package/dist/{Shape-CmsIulaS.cjs → Shape-CNuTafzS.cjs} +1 -1
- package/dist/{Shape-Dmv7nCLC.js → Shape-DZz__S1P.js} +1 -1
- package/dist/{Slicer-CmBt4xoj.cjs → Slicer-BSQa-Zel.cjs} +1 -1
- package/dist/{Slicer-D4ugcR39.js → Slicer-Clpv-EOL.js} +2 -2
- package/dist/{Title-D3kX1BVl.cjs → Title-DcTKT_WK.cjs} +1 -1
- package/dist/{Title-ClQ27HaB.js → Title-Dt5mC-vb.js} +1 -1
- package/dist/{Tooltip-CGYgJoPR.js → Tooltip-CmKYX0H1.js} +1 -1
- package/dist/{Tooltip-CARCyQNT.cjs → Tooltip-y6Z9yhlE.cjs} +1 -1
- package/dist/{index-CXx0JV8R.js → index-DCHLGNvJ.js} +1 -1
- package/dist/{index-DqxDpUy0.cjs → index-xEXHnOtJ.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useNestedProp-B-WAbP7E.js → useNestedProp-BPR7xHxr.js} +1 -1
- package/dist/{useNestedProp-DNWKDmdP.cjs → useNestedProp-LNEDZsGq.cjs} +1 -1
- package/dist/{usePrinter-Ctor1UK0.js → usePrinter-BvounINk.js} +1 -1
- package/dist/{usePrinter-BC7U4s0U.cjs → usePrinter-CjQvMB0_.cjs} +1 -1
- package/dist/{vue-data-ui-BpAZx3Va.js → vue-data-ui-BCZFdeNf.js} +60 -60
- package/dist/{vue-data-ui-DkgWwqtw.cjs → vue-data-ui-eNIOCbja.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-1A6t1biQ.js → vue-ui-3d-bar-B0ZLxzL-.js} +38 -38
- package/dist/{vue-ui-3d-bar-ngD35pLb.cjs → vue-ui-3d-bar-DEZhX6d1.cjs} +11 -11
- package/dist/{vue-ui-accordion-XAEm2rxj.cjs → vue-ui-accordion-2c1jq56U.cjs} +1 -1
- package/dist/{vue-ui-accordion-BljYKOXR.js → vue-ui-accordion-DEpeQHhr.js} +3 -3
- package/dist/vue-ui-age-pyramid-DlE41fIs.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-qfVpUr52.js → vue-ui-age-pyramid-dewoEG3y.js} +29 -29
- package/dist/{vue-ui-annotator-pFybuGix.cjs → vue-ui-annotator-CG6CV-7_.cjs} +1 -1
- package/dist/{vue-ui-annotator-CH9QWqAv.js → vue-ui-annotator-D9op3RMK.js} +1 -1
- package/dist/{vue-ui-bullet-BH7zmX0E.js → vue-ui-bullet-B6tijZFI.js} +8 -8
- package/dist/{vue-ui-bullet-C6y7Ddg-.cjs → vue-ui-bullet-Bt_2KhaH.cjs} +1 -1
- package/dist/{vue-ui-candlestick-RCtFAjEU.js → vue-ui-candlestick-B4DkRibE.js} +48 -48
- package/dist/{vue-ui-candlestick-DtCmxeo5.cjs → vue-ui-candlestick-DWDz2nFA.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BUL063mi.js → vue-ui-carousel-table-COAPDtuP.js} +4 -4
- package/dist/{vue-ui-carousel-table-BeDenKJo.cjs → vue-ui-carousel-table-DZlh-CRi.cjs} +1 -1
- package/dist/{vue-ui-chestnut-xDD_4bz2.js → vue-ui-chestnut-DCk2Zbcz.js} +29 -29
- package/dist/{vue-ui-chestnut-B6EalNLT.cjs → vue-ui-chestnut-EyoKonrW.cjs} +2 -2
- package/dist/{vue-ui-cursor-DbV0HXHB.cjs → vue-ui-cursor-DR8hHWf7.cjs} +1 -1
- package/dist/{vue-ui-cursor-D6Qndjnn.js → vue-ui-cursor-DSP_sXww.js} +2 -2
- package/dist/{vue-ui-dashboard-B_kj8L_A.cjs → vue-ui-dashboard-BJsyMU6X.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_4ot4bz.js → vue-ui-dashboard-BizVZE7w.js} +2 -2
- package/dist/{vue-ui-digits-BLI4lCZC.js → vue-ui-digits-BvVZ7uDf.js} +2 -2
- package/dist/{vue-ui-digits-DKs2fTGz.cjs → vue-ui-digits-vspu86yU.cjs} +1 -1
- package/dist/vue-ui-donut-BHJF4z2B.cjs +1 -0
- package/dist/{vue-ui-donut-wBZoPkru.js → vue-ui-donut-aFsq1d8c.js} +76 -76
- package/dist/{vue-ui-donut-evolution-ClOGDHiK.js → vue-ui-donut-evolution-BfS2WdBU.js} +66 -66
- package/dist/vue-ui-donut-evolution-DwVP-Zjn.cjs +1 -0
- package/dist/{vue-ui-dumbbell-PR9tHMvD.js → vue-ui-dumbbell-Bb5wHbQL.js} +28 -28
- package/dist/vue-ui-dumbbell-Bi-2LGtG.cjs +9 -0
- package/dist/{vue-ui-flow-CxW8g0NW.js → vue-ui-flow-DxNNh-WO.js} +31 -31
- package/dist/vue-ui-flow-RQWHqn22.cjs +1 -0
- package/dist/vue-ui-funnel-D-892HTK.cjs +1 -0
- package/dist/{vue-ui-funnel-BJNlWIq5.js → vue-ui-funnel-IVTzcHVm.js} +32 -32
- package/dist/{vue-ui-galaxy-DuGLDGzf.js → vue-ui-galaxy-039pCZpW.js} +81 -81
- package/dist/vue-ui-galaxy-BR-8c9Hn.cjs +1 -0
- package/dist/{vue-ui-gauge-Dpcxdegh.cjs → vue-ui-gauge-B4k-bq9l.cjs} +1 -1
- package/dist/{vue-ui-gauge-CBx84KCt.js → vue-ui-gauge-ZEMVvV-t.js} +7 -7
- package/dist/{vue-ui-gizmo-Djw5T_Vr.cjs → vue-ui-gizmo--XG8-JLk.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BPIyNNkI.js → vue-ui-gizmo-DKzAWnI0.js} +3 -3
- package/dist/vue-ui-heatmap-Bia0Ekaw.cjs +1 -0
- package/dist/{vue-ui-heatmap-DI8gVwfM.js → vue-ui-heatmap-DXDpQL6T.js} +63 -63
- package/dist/vue-ui-history-plot-Cq9ZWdDn.cjs +1 -0
- package/dist/{vue-ui-history-plot-CWfWMwqw.js → vue-ui-history-plot-o1WosOjA.js} +69 -69
- package/dist/{vue-ui-kpi-CBJZp-nE.js → vue-ui-kpi-B01FpRQ0.js} +3 -3
- package/dist/{vue-ui-kpi-BjGIj-IQ.cjs → vue-ui-kpi-lWq7fZr1.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DfeNWsJk.js → vue-ui-mini-loader-DLUYnvwS.js} +2 -2
- package/dist/{vue-ui-mini-loader-Cafts_cp.cjs → vue-ui-mini-loader-jkxJpHFv.cjs} +1 -1
- package/dist/vue-ui-molecule-BBK9ofPv.cjs +1 -0
- package/dist/{vue-ui-molecule-BTO5WRuL.js → vue-ui-molecule-DyiuRZQM.js} +155 -155
- package/dist/vue-ui-mood-radar-Bx32tbYB.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CKGwiCsd.js → vue-ui-mood-radar-DJI_fbFv.js} +33 -33
- package/dist/{vue-ui-nested-donuts-BvkJoiOT.cjs → vue-ui-nested-donuts-B6ZLkoIS.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-JGie_log.js → vue-ui-nested-donuts-B9gUqMTf.js} +147 -147
- package/dist/{vue-ui-onion-BWoVr0FT.cjs → vue-ui-onion-BnLW3as9.cjs} +2 -2
- package/dist/{vue-ui-onion-BXauNEVz.js → vue-ui-onion-D-OxG00N.js} +44 -44
- package/dist/{vue-ui-parallel-coordinate-plot-njogPtYo.js → vue-ui-parallel-coordinate-plot-DXc-b6rP.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-BrvB0jer.cjs → vue-ui-parallel-coordinate-plot-wx4e_yuu.cjs} +3 -3
- package/dist/vue-ui-quadrant-BqaLRYQp.cjs +1 -0
- package/dist/{vue-ui-quadrant-DnaOzxMc.js → vue-ui-quadrant-bakb0497.js} +108 -108
- package/dist/vue-ui-quick-chart-BZdsiGCz.cjs +15 -0
- package/dist/{vue-ui-quick-chart-kAG9Eaxb.js → vue-ui-quick-chart-BnH7-lmq.js} +212 -212
- package/dist/vue-ui-radar-D5IDgzwd.cjs +1 -0
- package/dist/{vue-ui-radar-DRmP5yb4.js → vue-ui-radar-DadvgLtC.js} +107 -107
- package/dist/{vue-ui-rating-BtLDJSwm.cjs → vue-ui-rating-B4yxkddt.cjs} +1 -1
- package/dist/{vue-ui-rating-De5IfgHJ.js → vue-ui-rating-CGojWinU.js} +2 -2
- package/dist/{vue-ui-relation-circle-DKQl7eWX.js → vue-ui-relation-circle-COC07h_K.js} +7 -7
- package/dist/{vue-ui-relation-circle-B2l-2KnH.cjs → vue-ui-relation-circle-rmWirv-5.cjs} +1 -1
- package/dist/{vue-ui-rings-Dwyz2fEm.js → vue-ui-rings-CMk-sVvK.js} +66 -66
- package/dist/{vue-ui-rings-KQoMkv4v.cjs → vue-ui-rings-DO1cN4ly.cjs} +2 -2
- package/dist/vue-ui-scatter-C4QmHmq2.cjs +1 -0
- package/dist/{vue-ui-scatter-DeOrkD2Y.js → vue-ui-scatter-CPkly4JA.js} +85 -85
- package/dist/{vue-ui-screenshot-BLp1_Q6K.cjs → vue-ui-screenshot-BxFOMLiy.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D1Ekbb27.js → vue-ui-screenshot-CzFhpFE4.js} +1 -1
- package/dist/{vue-ui-skeleton-qIxxRRaX.cjs → vue-ui-skeleton-Tse1D8cv.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Cw0-Ac_0.js → vue-ui-skeleton-nTL-u4Yd.js} +3 -3
- package/dist/{vue-ui-smiley-D3oqt6Rg.js → vue-ui-smiley-Bu3bOukI.js} +2 -2
- package/dist/{vue-ui-smiley-D3WgXFhb.cjs → vue-ui-smiley-D-sS-77y.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DyhcWMWz.js → vue-ui-spark-trend-Bh5gFFQf.js} +5 -5
- package/dist/{vue-ui-spark-trend-CVyPm6ms.cjs → vue-ui-spark-trend-CF36oite.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CRMMOv0T.cjs → vue-ui-sparkbar-CGIYeFjB.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C0av7SAn.js → vue-ui-sparkbar-DX2xrwR9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B3K4si6u.js → vue-ui-sparkgauge-CZ837K-0.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BQnxP_8u.cjs → vue-ui-sparkgauge-D2NJVKww.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bo3pkA-I.js → vue-ui-sparkhistogram-2NcpXt-_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DVAas7L7.cjs → vue-ui-sparkhistogram-DIYvXyIB.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDqFBaPU.cjs → vue-ui-sparkline-BIj5WMUM.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DIHKGu0H.js → vue-ui-sparkline-CuBFi324.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CC-OaMTb.cjs → vue-ui-sparkstackbar-BvcGQqmi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DG87wFd5.js → vue-ui-sparkstackbar-bqD9-qmQ.js} +5 -5
- package/dist/{vue-ui-stackbar-fZKaRitE.js → vue-ui-stackbar-BG0olJr0.js} +51 -51
- package/dist/{vue-ui-stackbar-CVHKHNom.cjs → vue-ui-stackbar-Cbk-PfOC.cjs} +3 -3
- package/dist/vue-ui-strip-plot-Dm2ctnIx.cjs +1 -0
- package/dist/{vue-ui-strip-plot-WOMaN28I.js → vue-ui-strip-plot-mNsmytzE.js} +118 -118
- package/dist/{vue-ui-table-CTtYDZPd.cjs → vue-ui-table-BwuSG-oE.cjs} +1 -1
- package/dist/{vue-ui-table-a4m3lpRq.js → vue-ui-table-C8_8TJ2H.js} +1 -1
- package/dist/{vue-ui-table-heatmap-0vDMKYpV.js → vue-ui-table-heatmap-Bakns13v.js} +4 -4
- package/dist/{vue-ui-table-heatmap-i00aBLPq.cjs → vue-ui-table-heatmap-ZfohVD71.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DW7t3xfB.cjs → vue-ui-table-sparkline-CC5hpyGe.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D5lngzCM.js → vue-ui-table-sparkline-Du93NBKM.js} +5 -5
- package/dist/{vue-ui-thermometer-QtlVD4-S.cjs → vue-ui-thermometer-Cbe7bVeq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-3aeRI-SM.js → vue-ui-thermometer-DZeTxVGM.js} +7 -7
- package/dist/{vue-ui-timer-B1nkj0WG.cjs → vue-ui-timer-B-guKc3A.cjs} +1 -1
- package/dist/{vue-ui-timer-mRaLpRHZ.js → vue-ui-timer-BwNbaMti.js} +5 -5
- package/dist/{vue-ui-tiremarks-xMuvEsN7.cjs → vue-ui-tiremarks-DNtBCjbs.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dv2O6FpS.js → vue-ui-tiremarks-sCXXGXiN.js} +7 -7
- package/dist/{vue-ui-treemap-D89aQanB.js → vue-ui-treemap-BQoajav9.js} +108 -108
- package/dist/vue-ui-treemap-CH_qGgmb.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-BpLIp4qR.js → vue-ui-vertical-bar-LWxKcXEf.js} +54 -54
- package/dist/{vue-ui-vertical-bar-CwHag6jq.cjs → vue-ui-vertical-bar-ytpJJBqm.cjs} +3 -3
- package/dist/vue-ui-waffle-CvHppO8v.cjs +1 -0
- package/dist/{vue-ui-waffle-sr2mWvpN.js → vue-ui-waffle-q-CgTerF.js} +99 -99
- package/dist/{vue-ui-wheel-C0KYRHGC.cjs → vue-ui-wheel-BoXkxGeh.cjs} +1 -1
- package/dist/{vue-ui-wheel-B7DOHXW8.js → vue-ui-wheel-CPHOwOzy.js} +7 -7
- package/dist/{vue-ui-word-cloud-BxMb7oCr.js → vue-ui-word-cloud-BargS03s.js} +81 -81
- package/dist/vue-ui-word-cloud-DFL3e0A2.cjs +1 -0
- package/dist/{vue-ui-xy-D5ROTNHD.cjs → vue-ui-xy-CgIp7caN.cjs} +2 -2
- package/dist/{vue-ui-xy-DlyUTKB5.js → vue-ui-xy-DC5y2PjZ.js} +24 -16
- package/dist/{vue-ui-xy-canvas-DHvkJKQH.js → vue-ui-xy-canvas-B4mqwnlS.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BDMk6XVE.cjs → vue-ui-xy-canvas-D1jemBXQ.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +0 -1
- package/dist/vue-ui-donut-B1Cg4vpI.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CgB_aexh.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +0 -9
- package/dist/vue-ui-flow-CIkXePxd.cjs +0 -1
- package/dist/vue-ui-funnel-BLXk1z5r.cjs +0 -1
- package/dist/vue-ui-galaxy-C01Apc4E.cjs +0 -1
- package/dist/vue-ui-heatmap-DYPE1Efx.cjs +0 -1
- package/dist/vue-ui-history-plot-BeYYrq5_.cjs +0 -1
- package/dist/vue-ui-molecule-Ckh2JsOJ.cjs +0 -1
- package/dist/vue-ui-mood-radar-WHFk1KC1.cjs +0 -1
- package/dist/vue-ui-quadrant-D8krEYWV.cjs +0 -1
- package/dist/vue-ui-quick-chart-DTiell5S.cjs +0 -15
- package/dist/vue-ui-radar-DKB9rVav.cjs +0 -1
- package/dist/vue-ui-scatter-CDT3zyXP.cjs +0 -1
- package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +0 -1
- package/dist/vue-ui-treemap-BupfwSFa.cjs +0 -1
- package/dist/vue-ui-waffle-DuPI0NV4.cjs +0 -1
- package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as m, ref as h, watch as lt, onMounted as at, onBeforeUnmount as ot, openBlock as o, createElementBlock as r, normalizeClass as Ve, normalizeStyle as D, unref as n, createBlock as j, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as Q, guardReactiveProps as Z, createVNode as pe, createElementVNode as d, Fragment as
|
|
2
|
-
import { u as it, c as nt, t as vt, a as yt, p as q, o as ct, e as fe, b as dt, g as Ee, T as ht, R as pt, Y as ft, X as gt, U as xt, s as ge, i as V, v as A, f as
|
|
1
|
+
import { computed as m, ref as h, watch as lt, onMounted as at, onBeforeUnmount as ot, openBlock as o, createElementBlock as r, normalizeClass as Ve, normalizeStyle as D, unref as n, createBlock as j, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as Q, guardReactiveProps as Z, createVNode as pe, createElementVNode as d, Fragment as P, renderList as I, toDisplayString as C, createTextVNode as ut, nextTick as rt } from "vue";
|
|
2
|
+
import { u as it, c as nt, t as vt, a as yt, p as q, o as ct, e as fe, b as dt, g as Ee, T as ht, R as pt, Y as ft, X as gt, U as xt, s as ge, i as V, v as A, f as W, x as mt, y as bt, q as kt, r as wt } from "./index-DCHLGNvJ.js";
|
|
3
3
|
import { t as _t, u as Mt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as $t } from "./Title-
|
|
5
|
-
import { u as Ct, U as At } from "./usePrinter-
|
|
6
|
-
import { _ as zt } from "./Tooltip-
|
|
7
|
-
import { L as St } from "./Legend-
|
|
8
|
-
import { _ as Ue } from "./Shape-
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import Bt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ge } from "./useNestedProp-
|
|
13
|
-
import { _ as Ot } from "./PackageVersion-
|
|
14
|
-
import { P as Nt } from "./PenAndPaper-
|
|
4
|
+
import { _ as $t } from "./Title-Dt5mC-vb.js";
|
|
5
|
+
import { u as Ct, U as At } from "./usePrinter-BvounINk.js";
|
|
6
|
+
import { _ as zt } from "./Tooltip-CmKYX0H1.js";
|
|
7
|
+
import { L as St } from "./Legend-Di7FMl12.js";
|
|
8
|
+
import { _ as Ue } from "./Shape-DZz__S1P.js";
|
|
9
|
+
import { D as Tt } from "./DataTable-Cnr3w23K.js";
|
|
10
|
+
import Lt from "./vue-ui-skeleton-nTL-u4Yd.js";
|
|
11
|
+
import Bt from "./vue-ui-accordion-DEpeQHhr.js";
|
|
12
|
+
import { u as Ge } from "./useNestedProp-BPR7xHxr.js";
|
|
13
|
+
import { _ as Ot } from "./PackageVersion-BAKTtSRE.js";
|
|
14
|
+
import { P as Nt } from "./PenAndPaper-BUzmu0vi.js";
|
|
15
15
|
import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { key: 1 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Ut = { key: 0 }, Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Rt = { key: 1 }, qt = { key: 3 }, Ht = ["id"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], al = { key: 0 }, ol = ["d", "stroke", "stroke-width"], sl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = {
|
|
@@ -20,7 +20,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
20
20
|
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], cl = ["x", "y", "font-size", "fill", "font-weight"], dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], fl = { key: 5 }, gl = ["x", "y", "font-size", "fill"], xl = ["x", "y", "font-size", "fill"], ml = ["id", "transform", "font-size", "font-weight", "fill"], bl = { key: 6 }, kl = ["x", "y", "font-size", "fill"], wl = ["x", "y", "font-size", "fill"], _l = ["font-size", "font-weight", "fill", "x", "y"], Ml = ["id"], $l = ["x", "y", "width", "height"], Cl = { key: 7 }, Al = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], zl = ["x", "y", "fill", "font-size", "font-weight"], Sl = {
|
|
21
21
|
key: 5,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
23
|
+
}, Tl = ["onClick"], Ll = {
|
|
24
24
|
key: 0,
|
|
25
25
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
26
26
|
}, Bl = {
|
|
@@ -45,32 +45,32 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
setup(Re, { expose: qe }) {
|
|
48
|
-
const
|
|
48
|
+
const F = Re, { vue_ui_scatter: He } = it(), ee = m(() => !!F.dataset && F.dataset.length), z = h(nt()), Je = h(null), ue = h(!1), re = h(""), xe = h(0), H = h(null), me = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), Me = h(0), $e = h(0), e = m({
|
|
49
49
|
get: () => ze(),
|
|
50
50
|
set: (t) => t
|
|
51
51
|
}), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Pt({ config: e.value });
|
|
52
52
|
function ze() {
|
|
53
53
|
const t = Ge({
|
|
54
|
-
userConfig:
|
|
54
|
+
userConfig: F.config,
|
|
55
55
|
defaultConfig: He
|
|
56
56
|
});
|
|
57
57
|
return t.theme ? {
|
|
58
58
|
...Ge({
|
|
59
|
-
userConfig: vt.vue_ui_scatter[t.theme] ||
|
|
59
|
+
userConfig: vt.vue_ui_scatter[t.theme] || F.config,
|
|
60
60
|
defaultConfig: t
|
|
61
61
|
}),
|
|
62
62
|
customPalette: yt[t.theme] || q
|
|
63
63
|
} : t;
|
|
64
64
|
}
|
|
65
|
-
lt(() =>
|
|
66
|
-
e.value = ze(), ie.value = !e.value.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1;
|
|
65
|
+
lt(() => F.config, (t) => {
|
|
66
|
+
e.value = ze(), ie.value = !e.value.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
|
|
67
67
|
}, { deep: !0 });
|
|
68
68
|
const te = h(null);
|
|
69
69
|
at(() => {
|
|
70
70
|
Se();
|
|
71
71
|
});
|
|
72
72
|
function Se() {
|
|
73
|
-
if (ct(
|
|
73
|
+
if (ct(F.dataset) && fe({
|
|
74
74
|
componentName: "VueUiScatter",
|
|
75
75
|
type: "dataset"
|
|
76
76
|
}), e.value.responsive) {
|
|
@@ -92,10 +92,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
92
92
|
ot(() => {
|
|
93
93
|
te.value && te.value.disconnect();
|
|
94
94
|
});
|
|
95
|
-
const { isPrinting:
|
|
95
|
+
const { isPrinting: Te, isImaging: Le, generatePdf: Be, generateImage: Oe } = Ct({
|
|
96
96
|
elementId: `vue-ui-scatter_${z.value}`,
|
|
97
97
|
fileName: e.value.style.title.text || "vue-ui-scatter"
|
|
98
|
-
}), Ke = m(() => e.value.userOptions.show && !e.value.style.title.text), Ne = m(() => dt(e.value.customPalette)),
|
|
98
|
+
}), Ke = m(() => e.value.userOptions.show && !e.value.style.title.text), Ne = m(() => dt(e.value.customPalette)), B = h({
|
|
99
99
|
showTable: e.value.table.show,
|
|
100
100
|
showTooltip: e.value.style.tooltip.show
|
|
101
101
|
}), b = h({
|
|
@@ -109,7 +109,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
109
109
|
height: b.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - le.value,
|
|
110
110
|
width: b.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - le.value
|
|
111
111
|
})), p = m(() => {
|
|
112
|
-
|
|
112
|
+
F.dataset.forEach((a, v) => {
|
|
113
113
|
Ee({
|
|
114
114
|
datasetObject: a,
|
|
115
115
|
requiredAttributes: ["values"]
|
|
@@ -139,7 +139,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
139
139
|
}), f = m(() => ({
|
|
140
140
|
x: i.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * i.value.width,
|
|
141
141
|
y: i.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * i.value.height
|
|
142
|
-
})), E = m(() =>
|
|
142
|
+
})), E = m(() => F.dataset.map((t, u) => {
|
|
143
143
|
const l = `cluster_${z.value}_${u}`;
|
|
144
144
|
return {
|
|
145
145
|
...t,
|
|
@@ -180,22 +180,22 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
180
180
|
let s = 0, a = 0, v = 0;
|
|
181
181
|
for (const g of t.plots)
|
|
182
182
|
s += (g.x - u) * (g.y - l), a += (g.x - u) ** 2, v += (g.y - l) ** 2;
|
|
183
|
-
const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), K = l - U * u,
|
|
183
|
+
const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), K = l - U * u, N = {
|
|
184
184
|
x1: i.value.left,
|
|
185
185
|
x2: i.value.right,
|
|
186
186
|
y1: U * i.value.left + K,
|
|
187
187
|
y2: U * i.value.right + K,
|
|
188
188
|
coefficient: k
|
|
189
|
-
}, $ = (
|
|
190
|
-
x:
|
|
191
|
-
y: $ *
|
|
189
|
+
}, $ = (N.y2 - N.y1) / (N.x2 - N.x1), L = N.y1 - $ * N.x1, X = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (i.value.top - L) / $)), se = {
|
|
190
|
+
x: X,
|
|
191
|
+
y: $ * X + L <= e.value.style.layout.padding.top ? i.value.top : $ * X + L
|
|
192
192
|
};
|
|
193
193
|
return {
|
|
194
194
|
...t,
|
|
195
|
-
correlation:
|
|
195
|
+
correlation: N,
|
|
196
196
|
label: se,
|
|
197
197
|
plots: t.plots.map((g) => {
|
|
198
|
-
const G = (g.x + $ * g.y - $ *
|
|
198
|
+
const G = (g.x + $ * g.y - $ * L) / (1 + Math.pow($, 2)), ce = ($ * g.x + Math.pow($, 2) * g.y + L) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(g.x - G, 2) + Math.pow(g.y - ce, 2));
|
|
199
199
|
return {
|
|
200
200
|
...g,
|
|
201
201
|
deviation: w,
|
|
@@ -220,18 +220,18 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
220
220
|
l.forEach(({ x: w, y: R }) => {
|
|
221
221
|
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, R), k = Math.max(k, R);
|
|
222
222
|
});
|
|
223
|
-
const U = a - s, K = k - v,
|
|
223
|
+
const U = a - s, K = k - v, N = U / u, $ = K / u, L = Array(u).fill(0), X = Array(u).fill(0);
|
|
224
224
|
l.forEach(({ x: w, y: R }) => {
|
|
225
|
-
const de = Math.floor((w - s) /
|
|
226
|
-
|
|
225
|
+
const de = Math.floor((w - s) / N), he = Math.floor((R - v) / $);
|
|
226
|
+
L[de] || (L[de] = 0), X[he] || (X[he] = 0), L[de] += 1, X[he] += 1;
|
|
227
227
|
});
|
|
228
228
|
const se = [], g = [];
|
|
229
229
|
for (let w = 0; w < u; w += 1)
|
|
230
|
-
se.push(s + (w + 0.5) *
|
|
231
|
-
const G = Math.max(...
|
|
232
|
-
return { x:
|
|
230
|
+
se.push(s + (w + 0.5) * N), g.push(v + (w + 0.5) * $);
|
|
231
|
+
const G = Math.max(...L), ce = Math.max(...X);
|
|
232
|
+
return { x: L, y: X, avgX: se, avgY: g, maxX: G, maxY: ce };
|
|
233
233
|
}
|
|
234
|
-
const Y = m(() => e.value.style.layout.marginalBars.tranches),
|
|
234
|
+
const Y = m(() => e.value.style.layout.marginalBars.tranches), T = m(() => We(ne.value, Y.value)), et = m(() => {
|
|
235
235
|
const t = i.value.top - e.value.style.layout.marginalBars.offset, u = i.value.right + e.value.style.layout.marginalBars.offset;
|
|
236
236
|
return ne.value.map((l) => {
|
|
237
237
|
const s = We(l, Y.value);
|
|
@@ -249,9 +249,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
249
249
|
id: l.id
|
|
250
250
|
};
|
|
251
251
|
});
|
|
252
|
-
}),
|
|
252
|
+
}), O = h(void 0), y = h(null), ve = h(null);
|
|
253
253
|
function Fe(t, u) {
|
|
254
|
-
|
|
254
|
+
O.value = t.id, y.value = t;
|
|
255
255
|
let l = "";
|
|
256
256
|
ve.value = {
|
|
257
257
|
datapoint: t,
|
|
@@ -273,7 +273,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
273
273
|
}) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : V(
|
|
274
274
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
275
275
|
t.v.x,
|
|
276
|
-
|
|
276
|
+
W({
|
|
277
277
|
p: e.value.style.tooltip.prefix,
|
|
278
278
|
v: t.v.x,
|
|
279
279
|
s: e.value.style.tooltip.suffix,
|
|
@@ -283,24 +283,24 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
283
283
|
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : V(
|
|
284
284
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
285
285
|
t.v.y,
|
|
286
|
-
|
|
286
|
+
W({
|
|
287
287
|
p: e.value.style.tooltip.prefix,
|
|
288
288
|
v: t.v.y,
|
|
289
289
|
s: e.value.style.tooltip.suffix,
|
|
290
290
|
r: e.value.style.tooltip.roundingValue
|
|
291
291
|
}),
|
|
292
292
|
{ datapoint: t, seriesIndex: u }
|
|
293
|
-
)}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${
|
|
293
|
+
)}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${W({
|
|
294
294
|
v: t.deviation,
|
|
295
295
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
296
296
|
})}</b>`, l += "</div>", re.value = `<div>${l}</div>`), ue.value = !0;
|
|
297
297
|
}
|
|
298
298
|
function Xe() {
|
|
299
|
-
ue.value = !1,
|
|
299
|
+
ue.value = !1, O.value = void 0, y.value = null;
|
|
300
300
|
}
|
|
301
301
|
const x = h([]);
|
|
302
302
|
function Ie(t) {
|
|
303
|
-
x.value.includes(t) ? x.value = x.value.filter((u) => u !== t) : x.value.length <
|
|
303
|
+
x.value.includes(t) ? x.value = x.value.filter((u) => u !== t) : x.value.length < F.dataset.length - 1 && x.value.push(t);
|
|
304
304
|
}
|
|
305
305
|
function Ye() {
|
|
306
306
|
rt(() => {
|
|
@@ -350,10 +350,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
350
350
|
J.value = t, xe.value += 1;
|
|
351
351
|
}
|
|
352
352
|
function De() {
|
|
353
|
-
|
|
353
|
+
B.value.showTable = !B.value.showTable;
|
|
354
354
|
}
|
|
355
355
|
function je() {
|
|
356
|
-
|
|
356
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
357
357
|
}
|
|
358
358
|
const oe = h(!1);
|
|
359
359
|
function ye() {
|
|
@@ -417,8 +417,8 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
417
417
|
key: `user_options_${xe.value}`,
|
|
418
418
|
backgroundColor: e.value.style.backgroundColor,
|
|
419
419
|
color: e.value.style.color,
|
|
420
|
-
isImaging: n(
|
|
421
|
-
isPrinting: n(
|
|
420
|
+
isImaging: n(Le),
|
|
421
|
+
isPrinting: n(Te),
|
|
422
422
|
uid: z.value,
|
|
423
423
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
424
424
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -426,7 +426,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
426
426
|
hasXls: e.value.userOptions.buttons.csv,
|
|
427
427
|
hasTable: e.value.userOptions.buttons.table,
|
|
428
428
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
429
|
-
isTooltip:
|
|
429
|
+
isTooltip: B.value.showTooltip,
|
|
430
430
|
isFullscreen: J.value,
|
|
431
431
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
432
432
|
chartElement: H.value,
|
|
@@ -535,7 +535,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
535
535
|
}, null, 8, jt)
|
|
536
536
|
])) : c("", !0),
|
|
537
537
|
e.value.style.layout.plots.giftWrap.show ? (o(), r("g", Vt, [
|
|
538
|
-
(o(!0), r(
|
|
538
|
+
(o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
|
|
539
539
|
l.plots.length > 2 ? (o(), r("polygon", {
|
|
540
540
|
key: 0,
|
|
541
541
|
points: n(xt)({ series: l.plots }),
|
|
@@ -548,30 +548,30 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
548
548
|
}, null, 8, Et)) : c("", !0)
|
|
549
549
|
]))), 256))
|
|
550
550
|
])) : c("", !0),
|
|
551
|
-
(o(!0), r(
|
|
551
|
+
(o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
|
|
552
552
|
!l.shape || l.shape === "circle" ? (o(), r("g", Ut, [
|
|
553
|
-
(o(!0), r(
|
|
553
|
+
(o(!0), r(P, null, I(l.plots, (a, v) => (o(), r("circle", {
|
|
554
554
|
cx: a.x,
|
|
555
555
|
cy: a.y,
|
|
556
|
-
r:
|
|
556
|
+
r: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
557
557
|
fill: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
558
558
|
stroke: e.value.style.layout.plots.stroke,
|
|
559
559
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
560
560
|
onMouseover: (k) => Fe(a, s),
|
|
561
561
|
onMouseleave: Xe,
|
|
562
|
-
style: D(`opacity:${
|
|
562
|
+
style: D(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
563
563
|
}, null, 44, Gt))), 256))
|
|
564
564
|
])) : (o(), r("g", Rt, [
|
|
565
|
-
(o(!0), r(
|
|
565
|
+
(o(!0), r(P, null, I(l.plots, (a, v) => (o(), j(Ue, {
|
|
566
566
|
plot: { x: a.x, y: a.y },
|
|
567
|
-
radius:
|
|
567
|
+
radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
568
568
|
shape: l.shape,
|
|
569
569
|
color: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
570
570
|
stroke: e.value.style.layout.plots.stroke,
|
|
571
571
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
572
572
|
onMouseover: (k) => Fe(a, s),
|
|
573
573
|
onMouseleave: Xe,
|
|
574
|
-
style: D(`opacity:${
|
|
574
|
+
style: D(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
575
575
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
576
576
|
]))
|
|
577
577
|
]))), 256)),
|
|
@@ -610,13 +610,13 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
610
610
|
}, null, 8, el)
|
|
611
611
|
], 8, Qt)
|
|
612
612
|
]),
|
|
613
|
-
(o(!0), r(
|
|
614
|
-
l &&
|
|
613
|
+
(o(!0), r(P, null, I(T.value.x, (l, s) => (o(), r("g", null, [
|
|
614
|
+
l && T.value.avgX[s] ? (o(), r("rect", {
|
|
615
615
|
key: 0,
|
|
616
|
-
x:
|
|
617
|
-
y: i.value.top - e.value.style.layout.marginalBars.offset - l /
|
|
616
|
+
x: T.value.avgX[s] - i.value.width / Y.value / 2,
|
|
617
|
+
y: i.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
618
618
|
width: i.value.width / Y.value <= 0 ? 1e-4 : i.value.width / Y.value,
|
|
619
|
-
height: l /
|
|
619
|
+
height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
620
620
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
621
621
|
style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
622
622
|
stroke: e.value.style.backgroundColor,
|
|
@@ -624,13 +624,13 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
624
624
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
625
625
|
}, null, 12, tl)) : c("", !0)
|
|
626
626
|
]))), 256)),
|
|
627
|
-
(o(!0), r(
|
|
628
|
-
l &&
|
|
627
|
+
(o(!0), r(P, null, I(T.value.y, (l, s) => (o(), r("g", null, [
|
|
628
|
+
l && T.value.avgY[s] ? (o(), r("rect", {
|
|
629
629
|
key: 0,
|
|
630
630
|
x: i.value.right + e.value.style.layout.marginalBars.offset,
|
|
631
|
-
y:
|
|
631
|
+
y: T.value.avgY[s] - i.value.height / Y.value / 2,
|
|
632
632
|
height: i.value.height / Y.value <= 0 ? 1e-4 : i.value.height / Y.value,
|
|
633
|
-
width: l /
|
|
633
|
+
width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
|
|
634
634
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
635
635
|
style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
636
636
|
stroke: e.value.style.backgroundColor,
|
|
@@ -639,7 +639,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
639
639
|
}, null, 12, ll)) : c("", !0)
|
|
640
640
|
]))), 256)),
|
|
641
641
|
e.value.style.layout.marginalBars.showLines ? (o(), r("g", al, [
|
|
642
|
-
(o(!0), r(
|
|
642
|
+
(o(!0), r(P, null, I(et.value, (l) => (o(), r(P, null, [
|
|
643
643
|
x.value.includes(l.id) ? c("", !0) : (o(), r("path", {
|
|
644
644
|
key: 0,
|
|
645
645
|
d: `M ${l.dX}`,
|
|
@@ -712,7 +712,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
712
712
|
}, C(n(V)(
|
|
713
713
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
714
714
|
n(A)(y.value.v.y),
|
|
715
|
-
n(
|
|
715
|
+
n(W)({
|
|
716
716
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
717
717
|
v: n(A)(y.value.v.y),
|
|
718
718
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -730,7 +730,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
730
730
|
}, C(n(V)(
|
|
731
731
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
732
732
|
n(A)(y.value.v.x),
|
|
733
|
-
n(
|
|
733
|
+
n(W)({
|
|
734
734
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
735
735
|
v: n(A)(y.value.v.x),
|
|
736
736
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -776,7 +776,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
776
776
|
}, C(n(V)(
|
|
777
777
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
778
778
|
n(A)(p.value.xMin),
|
|
779
|
-
n(
|
|
779
|
+
n(W)({
|
|
780
780
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
781
781
|
v: n(A)(p.value.xMin),
|
|
782
782
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -792,7 +792,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
792
792
|
}, C(n(V)(
|
|
793
793
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
794
794
|
n(A)(p.value.xMax),
|
|
795
|
-
n(
|
|
795
|
+
n(W)({
|
|
796
796
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
797
797
|
v: n(A)(p.value.xMax),
|
|
798
798
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -818,7 +818,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
818
818
|
}, C(n(V)(
|
|
819
819
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
820
820
|
n(A)(p.value.yMin),
|
|
821
|
-
n(
|
|
821
|
+
n(W)({
|
|
822
822
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
823
823
|
v: n(A)(p.value.yMin),
|
|
824
824
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -834,7 +834,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
834
834
|
}, C(n(V)(
|
|
835
835
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
836
836
|
n(A)(p.value.yMax),
|
|
837
|
-
n(
|
|
837
|
+
n(W)({
|
|
838
838
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
839
839
|
v: n(A)(p.value.yMax),
|
|
840
840
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -861,7 +861,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
861
861
|
}, null, 8, $l)
|
|
862
862
|
], 8, Ml),
|
|
863
863
|
e.value.style.layout.correlation.show ? (o(), r("g", Cl, [
|
|
864
|
-
(o(!0), r(
|
|
864
|
+
(o(!0), r(P, null, I(S.value, (l, s) => (o(), r("line", {
|
|
865
865
|
x1: l.correlation.x1,
|
|
866
866
|
x2: l.correlation.x2,
|
|
867
867
|
y1: l.correlation.y1,
|
|
@@ -871,7 +871,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
871
871
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
872
872
|
"clip-path": `url(#clip_path_${z.value})`
|
|
873
873
|
}, null, 8, Al))), 256)),
|
|
874
|
-
(o(!0), r(
|
|
874
|
+
(o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
|
|
875
875
|
e.value.style.layout.correlation.label.show ? (o(), r("text", {
|
|
876
876
|
key: 0,
|
|
877
877
|
x: l.label.x,
|
|
@@ -879,7 +879,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
879
879
|
fill: e.value.style.layout.correlation.label.useSerieColor ? l.color : e.value.style.layout.correlation.label.color,
|
|
880
880
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
881
881
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
882
|
-
}, C(n(
|
|
882
|
+
}, C(n(W)({
|
|
883
883
|
v: n(A)(l.correlation.coefficient),
|
|
884
884
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
885
885
|
})), 9, zl)) : c("", !0)
|
|
@@ -888,9 +888,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
888
888
|
M(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
889
889
|
], 14, Xt)) : c("", !0),
|
|
890
890
|
t.$slots.watermark ? (o(), r("div", Sl, [
|
|
891
|
-
M(t.$slots, "watermark", Q(Z({ isPrinting: n(
|
|
891
|
+
M(t.$slots, "watermark", Q(Z({ isPrinting: n(Te) || n(Le) })), void 0, !0)
|
|
892
892
|
])) : c("", !0),
|
|
893
|
-
ee.value ? c("", !0) : (o(), j(
|
|
893
|
+
ee.value ? c("", !0) : (o(), j(Lt, {
|
|
894
894
|
key: 6,
|
|
895
895
|
config: {
|
|
896
896
|
type: "quadrant",
|
|
@@ -922,7 +922,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
922
922
|
d("div", {
|
|
923
923
|
onClick: (s) => l.segregate(),
|
|
924
924
|
style: D(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
925
|
-
}, C(l.name), 13,
|
|
925
|
+
}, C(l.name), 13, Tl)
|
|
926
926
|
]),
|
|
927
927
|
_: 1
|
|
928
928
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
@@ -939,7 +939,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
939
939
|
M(t.$slots, "source", {}, void 0, !0)
|
|
940
940
|
], 512)) : c("", !0),
|
|
941
941
|
pe(zt, {
|
|
942
|
-
show:
|
|
942
|
+
show: B.value.showTooltip && ue.value,
|
|
943
943
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
944
944
|
color: e.value.style.tooltip.color,
|
|
945
945
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -961,7 +961,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
961
961
|
M(t.$slots, "tooltip-after", Q(Z({ ...ve.value })), void 0, !0)
|
|
962
962
|
]),
|
|
963
963
|
default: _(() => [
|
|
964
|
-
e.value.style.tooltip.showShape ? (o(), r("div",
|
|
964
|
+
e.value.style.tooltip.showShape ? (o(), r("div", Ll, [
|
|
965
965
|
(o(), r("svg", Bl, [
|
|
966
966
|
pe(Ue, {
|
|
967
967
|
shape: y.value.shape,
|
|
@@ -978,7 +978,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
978
978
|
key: 8,
|
|
979
979
|
hideDetails: "",
|
|
980
980
|
config: {
|
|
981
|
-
open:
|
|
981
|
+
open: B.value.showTable,
|
|
982
982
|
maxHeight: 1e4,
|
|
983
983
|
body: {
|
|
984
984
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -991,14 +991,14 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
991
991
|
}
|
|
992
992
|
}, {
|
|
993
993
|
content: _(() => [
|
|
994
|
-
(o(), j(
|
|
994
|
+
(o(), j(Tt, {
|
|
995
995
|
key: `table_${Me.value}`,
|
|
996
996
|
colNames: ae.value.colNames,
|
|
997
997
|
head: ae.value.head,
|
|
998
998
|
body: ae.value.body,
|
|
999
999
|
config: ae.value.config,
|
|
1000
1000
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
1001
|
-
onClose: u[1] || (u[1] = (l) =>
|
|
1001
|
+
onClose: u[1] || (u[1] = (l) => B.value.showTable = !1)
|
|
1002
1002
|
}, {
|
|
1003
1003
|
th: _(({ th: l }) => [
|
|
1004
1004
|
ut(C(l), 1)
|
|
@@ -1018,7 +1018,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
1018
1018
|
}, 8, ["config"])) : c("", !0)
|
|
1019
1019
|
], 46, Ft));
|
|
1020
1020
|
}
|
|
1021
|
-
}, Ql = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-
|
|
1021
|
+
}, Ql = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-c274e32f"]]);
|
|
1022
1022
|
export {
|
|
1023
1023
|
Ql as default
|
|
1024
1024
|
};
|
|
@@ -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-xEXHnOtJ.cjs"),V=require("./html2canvas.esm-BA_v9SIU.cjs"),U={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(z,{expose:T,emit:H}){const C=z,{vue_ui_screenshot:B}=k.useConfig(),$=i.ref(`vue-ui-screenshot-${Math.random()}`),n=i.computed(()=>{if(!Object.keys(C.config||{}).length)return B;const e=k.treeShake({defaultConfig:B,userConfig:C.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),f=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,f.value=e.touches[0].clientY,l=e.touches[0].clientY):(p.value=e.clientX,t=e.clientX,f.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-f.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-f.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+(f.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+(f.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",m),document.addEventListener("touchend",m))}function m(){d.value=null,v.value=null,M.value=null,S.value=null,w.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",m)}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",m),document.removeEventListener("touchend",m),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"}function O(){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 _(){if(!a.value)return;O();const e=a.value.getBoundingClientRect();I.value=setTimeout(()=>{V.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"&&H("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 F(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",_),e.appendChild(s),[l,u,o,c].forEach((r,N)=>{r.classList.add(`handle-${N}`),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 j(){a.value||i.nextTick(()=>{const e=R();e.dataset.html2canvasIgnore=!0,W(e),F(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:j,close:E}),(e,t)=>(i.openBlock(),i.createElementBlock("div"))}};exports.default=U;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as i, computed as N, openBlock as V, createElementBlock as U, nextTick as G } from "vue";
|
|
2
|
-
import { u as K, A as P, B as q } from "./index-
|
|
2
|
+
import { u as K, A as P, B as q } from "./index-DCHLGNvJ.js";
|
|
3
3
|
import J from "./html2canvas.esm-d2sM-0Wm.js";
|
|
4
4
|
const te = {
|
|
5
5
|
__name: "vue-ui-screenshot",
|