vue-data-ui 2.4.87 → 2.4.89
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-B6C-c2DT.cjs → Arrow-CbP9kLxJ.cjs} +1 -1
- package/dist/{Arrow-C8PrFeHS.js → Arrow-CuAfInZx.js} +1 -1
- package/dist/{BaseIcon-plElWres.js → BaseIcon-BpNWrQFd.js} +1 -1
- package/dist/{BaseIcon-CdOKZmHr.cjs → BaseIcon-C8eZuK3O.cjs} +1 -1
- package/dist/{DataTable-CKke7C6w.js → DataTable-CBJXWv2y.js} +2 -2
- package/dist/{DataTable-BmKl4AAb.cjs → DataTable-D-lEfCvI.cjs} +1 -1
- package/dist/{Legend-CY6wjCYY.cjs → Legend-BHqhIxpn.cjs} +1 -1
- package/dist/{Legend-DMeEvZOT.js → Legend-BSpbp1BZ.js} +2 -2
- package/dist/{PackageVersion-Rh3rgo6A.js → PackageVersion-DtBpSOiQ.js} +1 -1
- package/dist/{PackageVersion-DvDNPRrJ.cjs → PackageVersion-fh_T3pry.cjs} +1 -1
- package/dist/{PenAndPaper-DqVsdeLc.js → PenAndPaper-B2XkoPXE.js} +3 -3
- package/dist/{PenAndPaper--xHLJRME.cjs → PenAndPaper-JJPSlM7l.cjs} +1 -1
- package/dist/{Shape-CL3HglYL.js → Shape-BOPYNx7w.js} +1 -1
- package/dist/{Shape-DEwnzwRB.cjs → Shape-Do_AzV1G.cjs} +1 -1
- package/dist/{Slicer-ZryQKOl5.js → Slicer-ChE3bif9.js} +15 -15
- package/dist/{Slicer-CnNbe-dl.cjs → Slicer-Ztz1Ij0w.cjs} +1 -1
- package/dist/{Title-C10173bN.cjs → Title-0PbYWvbk.cjs} +1 -1
- package/dist/{Title-BU5Aq1_x.js → Title-ccoiJ0mq.js} +1 -1
- package/dist/{Tooltip-Dm-obTbx.js → Tooltip-DvT_JgqK.js} +1 -1
- package/dist/{Tooltip-CL7aSMgq.cjs → Tooltip-yfpr967Z.cjs} +1 -1
- package/dist/{index-BG5J_ybN.js → index-CbMgQMOZ.js} +65 -53
- package/dist/index-DHTOdsmm.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -1
- package/dist/types/vue-data-ui.d.ts +7 -1
- package/dist/{useNestedProp-BFNnjpX-.cjs → useNestedProp-BbHX6tgE.cjs} +1 -1
- package/dist/{useNestedProp-BN1ZmAKT.js → useNestedProp-vYrmxXEi.js} +1 -1
- package/dist/{usePrinter-i-j4CdEi.cjs → usePrinter-CCvLCahd.cjs} +1 -1
- package/dist/{usePrinter-CWeJt84b.js → usePrinter-sMoxYV4s.js} +1 -1
- package/dist/{vue-data-ui-549nX1yu.cjs → vue-data-ui-B4yl-5k7.cjs} +1 -1
- package/dist/{vue-data-ui-B5u9V9lC.js → vue-data-ui-cjdjZcIN.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBtozgXL.js → vue-ui-3d-bar-BCUFEN3E.js} +9 -9
- package/dist/{vue-ui-3d-bar-J7LkJgTZ.cjs → vue-ui-3d-bar-BIxPk-3O.cjs} +1 -1
- package/dist/{vue-ui-accordion-Cd6GaDwU.cjs → vue-ui-accordion-D0YEkQP_.cjs} +1 -1
- package/dist/{vue-ui-accordion-JBOceVq2.js → vue-ui-accordion-DXPXhPPW.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BIkYjL8e.js → vue-ui-age-pyramid-Bu2gLwi_.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DeryBRqg.cjs → vue-ui-age-pyramid-JUp6_DQU.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dw8cVACs.cjs → vue-ui-annotator-np4TLsbB.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bt90Iec6.js → vue-ui-annotator-rRlHgjug.js} +1 -1
- package/dist/{vue-ui-bullet-DzosZUYl.js → vue-ui-bullet-BG4ZoJWg.js} +8 -8
- package/dist/{vue-ui-bullet-BMAYQESQ.cjs → vue-ui-bullet-DuPHT9m_.cjs} +1 -1
- package/dist/{vue-ui-candlestick-dTATEFOU.js → vue-ui-candlestick-Bs_FB1xf.js} +11 -11
- package/dist/{vue-ui-candlestick-BaLnAKB9.cjs → vue-ui-candlestick-zm-vNhJF.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CWNI7Ri5.cjs → vue-ui-carousel-table-CVlt3x_V.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-rMcj65Bo.js → vue-ui-carousel-table-D73qjY94.js} +4 -4
- package/dist/{vue-ui-chestnut-B_NLFSaY.js → vue-ui-chestnut-BKka1suh.js} +8 -8
- package/dist/{vue-ui-chestnut-DjOEVM3w.cjs → vue-ui-chestnut-BZ7WKn-P.cjs} +1 -1
- package/dist/{vue-ui-cursor-CBUwAZd1.cjs → vue-ui-cursor-BvDKJ-EE.cjs} +1 -1
- package/dist/{vue-ui-cursor-CTvVj3YO.js → vue-ui-cursor-CKQ7lIEU.js} +2 -2
- package/dist/{vue-ui-dashboard-CG9J3DLT.js → vue-ui-dashboard-CLDULZmZ.js} +2 -2
- package/dist/{vue-ui-dashboard-DcfhPFVi.cjs → vue-ui-dashboard-CU18bFKg.cjs} +1 -1
- package/dist/{vue-ui-digits-B8lUQcKK.cjs → vue-ui-digits-ZsDxljaT.cjs} +1 -1
- package/dist/{vue-ui-digits-CF6qbsmO.js → vue-ui-digits-_Q3BPnPQ.js} +2 -2
- package/dist/{vue-ui-donut-CzmOCuxn.cjs → vue-ui-donut-BTLM3pc-.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CjFUAKXU.cjs → vue-ui-donut-evolution-B9b0VDlt.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BkE-sAyn.js → vue-ui-donut-evolution-DeaRL3Qp.js} +11 -11
- package/dist/{vue-ui-donut-Bbkz0M-R.js → vue-ui-donut-uSvi7mes.js} +12 -12
- package/dist/{vue-ui-dumbbell-BiHzKPGP.cjs → vue-ui-dumbbell-D0-fNbuR.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D8JuHhzi.js → vue-ui-dumbbell-DxOC8F_T.js} +10 -10
- package/dist/{vue-ui-flow-CR1Qo5Rt.cjs → vue-ui-flow-CVX1Booa.cjs} +1 -1
- package/dist/{vue-ui-flow-Cie8iHDK.js → vue-ui-flow-Cli1Nia2.js} +9 -9
- package/dist/{vue-ui-funnel-B8uRuzDx.cjs → vue-ui-funnel-CkrA8ZGZ.cjs} +1 -1
- package/dist/{vue-ui-funnel-tW6PGqcE.js → vue-ui-funnel-DUSetrwZ.js} +9 -9
- package/dist/{vue-ui-galaxy-p4j0h3ZX.js → vue-ui-galaxy-B6chdxw9.js} +11 -11
- package/dist/{vue-ui-galaxy-BfbYEvnO.cjs → vue-ui-galaxy-XLY4fBs_.cjs} +1 -1
- package/dist/{vue-ui-gauge-CtVmazzP.js → vue-ui-gauge-BWsStiRt.js} +208 -191
- package/dist/vue-ui-gauge-DKv2V1ZR.cjs +1 -0
- package/dist/{vue-ui-gizmo-wjZJgWPe.js → vue-ui-gizmo-BwPZP3S1.js} +3 -3
- package/dist/{vue-ui-gizmo-BdlVxVqD.cjs → vue-ui-gizmo-CIZXKQaP.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DJXLmzGL.js → vue-ui-heatmap-DPO0-7Kr.js} +10 -10
- package/dist/{vue-ui-heatmap-Gd3nkwzC.cjs → vue-ui-heatmap-DpZM0Il7.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DJQck-9N.js → vue-ui-history-plot-Bn1Pt_Ti.js} +11 -11
- package/dist/{vue-ui-history-plot-CevSrT7E.cjs → vue-ui-history-plot-DyTTxsEC.cjs} +1 -1
- package/dist/{vue-ui-kpi-MK6JH8yi.js → vue-ui-kpi-BbeBozJ_.js} +3 -3
- package/dist/{vue-ui-kpi-D8NVXEfO.cjs → vue-ui-kpi-DyI2-86Q.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-UiC0NYsO.js → vue-ui-mini-loader-BbXkCdaA.js} +2 -2
- package/dist/{vue-ui-mini-loader-a8JZaxIy.cjs → vue-ui-mini-loader-DkkBYJla.cjs} +1 -1
- package/dist/{vue-ui-molecule-CXgKUNCL.cjs → vue-ui-molecule-CVg3G3jq.cjs} +1 -1
- package/dist/{vue-ui-molecule-Cz9zZQ95.js → vue-ui-molecule-b4smncqZ.js} +11 -11
- package/dist/{vue-ui-mood-radar-BMMCFkEk.js → vue-ui-mood-radar-BdT3nuEz.js} +24 -24
- package/dist/{vue-ui-mood-radar-B-PSds5c.cjs → vue-ui-mood-radar-bRCa4Y3L.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Da9c-H0Y.js → vue-ui-nested-donuts-DttOstux.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Cdx6UQwF.cjs → vue-ui-nested-donuts-ko1-nRO2.cjs} +1 -1
- package/dist/{vue-ui-onion-HAS4P8nS.cjs → vue-ui-onion-CFjFt2g0.cjs} +1 -1
- package/dist/{vue-ui-onion-D1wExDGP.js → vue-ui-onion-TYSsqogk.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BH0xKZAE.js → vue-ui-parallel-coordinate-plot-CAqhUHot.js} +26 -26
- package/dist/{vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs → vue-ui-parallel-coordinate-plot-DzBoNAa1.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BDkbMaNf.js → vue-ui-quadrant-BQH_Xifg.js} +36 -36
- package/dist/{vue-ui-quadrant-DbWSZWfP.cjs → vue-ui-quadrant-Cx1wlTvP.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-qnbmA75J.cjs → vue-ui-quick-chart-Bz-nNd-y.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D3b2YwMY.js → vue-ui-quick-chart-CULnpCgG.js} +9 -9
- package/dist/{vue-ui-radar--Bt67L0i.js → vue-ui-radar-Cx-rxEMq.js} +26 -26
- package/dist/{vue-ui-radar-DSZpmaIZ.cjs → vue-ui-radar-gWd0pEpW.cjs} +1 -1
- package/dist/{vue-ui-rating-Z_ANkBeZ.cjs → vue-ui-rating-BKQNJZ0P.cjs} +1 -1
- package/dist/{vue-ui-rating-Bgr7tvIq.js → vue-ui-rating-F9PTlU7Q.js} +5 -5
- package/dist/{vue-ui-relation-circle-3cgv8yC-.cjs → vue-ui-relation-circle-B3PfO20q.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B22VP_p1.js → vue-ui-relation-circle-DegxFhlA.js} +7 -7
- package/dist/{vue-ui-rings-DZEwaUv5.cjs → vue-ui-rings-B18Wqo7x.cjs} +1 -1
- package/dist/{vue-ui-rings-DgzfAEvJ.js → vue-ui-rings-fJvO6eX_.js} +12 -12
- package/dist/{vue-ui-scatter-CSI15Dgp.cjs → vue-ui-scatter-ZJO-zIjS.cjs} +1 -1
- package/dist/{vue-ui-scatter-BwlbShJE.js → vue-ui-scatter-nVMhmeVK.js} +102 -102
- package/dist/{vue-ui-screenshot-DK2xyINC.cjs → vue-ui-screenshot-CL_BGDeM.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Dk0TqQpi.js → vue-ui-screenshot-DsGxjAas.js} +1 -1
- package/dist/{vue-ui-skeleton-CLiDRcQX.cjs → vue-ui-skeleton-BZDfN8kq.cjs} +1 -1
- package/dist/{vue-ui-skeleton-c211TxZ8.js → vue-ui-skeleton-odlG21I6.js} +3 -3
- package/dist/{vue-ui-smiley-hIooew3m.js → vue-ui-smiley-CcM-XG7o.js} +2 -2
- package/dist/{vue-ui-smiley-Kr6bQ-7L.cjs → vue-ui-smiley-DjCnF05n.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-SVqMwS1X.cjs → vue-ui-spark-trend-B3wvoHdy.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CgpDYM8f.js → vue-ui-spark-trend-DbfmJnyG.js} +15 -15
- package/dist/{vue-ui-sparkbar-D_HgtfBM.js → vue-ui-sparkbar-DkwgnqvW.js} +4 -4
- package/dist/{vue-ui-sparkbar-DY1J0X8K.cjs → vue-ui-sparkbar-Unem3qlf.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C4p0nAHp.cjs → vue-ui-sparkgauge-1oonX7Pt.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-jO5jKAyz.js → vue-ui-sparkgauge-CFNCtwjD.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BpQfz14e.js → vue-ui-sparkhistogram-BDq3T-6n.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-gSNvSVcP.cjs → vue-ui-sparkhistogram-C2FOzWbO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-D53BDGCi.cjs → vue-ui-sparkline-BXCPWLbx.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BTgaJjMj.js → vue-ui-sparkline-CDGqFfbA.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-COm1EqFN.js → vue-ui-sparkstackbar-BGDxXx1H.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DcEhBuvP.cjs → vue-ui-sparkstackbar-Crr9O93o.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BHyysJyj.js → vue-ui-stackbar-CXVJgWTO.js} +13 -13
- package/dist/{vue-ui-stackbar-D4-vrvMz.cjs → vue-ui-stackbar-YULKQ4Q2.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BOLWDlTl.js → vue-ui-strip-plot-D-_BcZGB.js} +11 -11
- package/dist/{vue-ui-strip-plot-iUjpocRA.cjs → vue-ui-strip-plot-D2tY6IaY.cjs} +1 -1
- package/dist/{vue-ui-table-XThR7HtD.js → vue-ui-table-BKMfZhPB.js} +1 -1
- package/dist/{vue-ui-table-DG3-RAEv.cjs → vue-ui-table-DCR-izqY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B82Dmfv2.cjs → vue-ui-table-heatmap-BQk6Gd_E.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DxWQ3cdf.js → vue-ui-table-heatmap-BYnl_vUh.js} +15 -15
- package/dist/{vue-ui-table-sparkline-BIQAc-eX.js → vue-ui-table-sparkline-C1Xx-B2E.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C3JrSwmi.cjs → vue-ui-table-sparkline-Fk2HnXUF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Ci0OBAEN.js → vue-ui-thermometer-Ba5L3NM-.js} +7 -7
- package/dist/{vue-ui-thermometer-t1cul6jD.cjs → vue-ui-thermometer-CUa9blx-.cjs} +1 -1
- package/dist/{vue-ui-timer-BLqulQx5.cjs → vue-ui-timer-BLM1ZnqH.cjs} +1 -1
- package/dist/{vue-ui-timer-CwJoQApu.js → vue-ui-timer-CrJJnZKN.js} +5 -5
- package/dist/{vue-ui-tiremarks-CFVl_w7d.js → vue-ui-tiremarks-C0FaGxaE.js} +7 -7
- package/dist/{vue-ui-tiremarks-_d9WOe-N.cjs → vue-ui-tiremarks-C0ic3lVR.cjs} +1 -1
- package/dist/{vue-ui-treemap-BaQFfbqL.cjs → vue-ui-treemap-C7lv9JcH.cjs} +1 -1
- package/dist/{vue-ui-treemap-BtjPxOzu.js → vue-ui-treemap-DUUBok0Z.js} +11 -11
- package/dist/{vue-ui-vertical-bar-xnQDjCLE.js → vue-ui-vertical-bar-DGSL6lGQ.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BcjM9qCI.cjs → vue-ui-vertical-bar-qY3NE5sf.cjs} +1 -1
- package/dist/{vue-ui-waffle-BMFtG4mh.js → vue-ui-waffle-DeDjMqj4.js} +12 -12
- package/dist/{vue-ui-waffle-DGarEDP5.cjs → vue-ui-waffle-lANO8NSp.cjs} +1 -1
- package/dist/{vue-ui-wheel-DIr8JQt0.js → vue-ui-wheel-D2pWanO3.js} +7 -7
- package/dist/{vue-ui-wheel-DLFWUmdm.cjs → vue-ui-wheel-yw94VIYd.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CDQ4rkP-.cjs → vue-ui-word-cloud-BQuOLoHD.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CrSkUMkN.js → vue-ui-word-cloud-DDubuSNu.js} +10 -10
- package/dist/{vue-ui-xy-DfnDyl8o.cjs → vue-ui-xy-BKEjcTkg.cjs} +1 -1
- package/dist/{vue-ui-xy-DPT3SYuU.js → vue-ui-xy-DvaJ_oyE.js} +28 -28
- package/dist/{vue-ui-xy-canvas-DEyhDtC-.cjs → vue-ui-xy-canvas-CgzTusyc.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-C3iMSkvP.js → vue-ui-xy-canvas-DpTDw8Rv.js} +11 -11
- package/package.json +1 -1
- package/dist/index-1HOIfTy2.cjs +0 -9
- package/dist/vue-ui-gauge-DnTOvr4T.cjs +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
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
|
|
2
|
-
import { u as it, c as nt, t as vt, a as yt, p 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 je, normalizeStyle as Y, unref as n, createBlock as V, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as K, guardReactiveProps as Q, 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 R, o as ct, e as fe, b as dt, g as Ee, U as ht, S as pt, Z as ft, X as gt, V as xt, s as ge, i as j, v as A, f as W, x as mt, y as bt, q as kt, r as wt } from "./index-CbMgQMOZ.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 Tt } from "./DataTable-
|
|
10
|
-
import Lt from "./vue-ui-skeleton-
|
|
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-ccoiJ0mq.js";
|
|
5
|
+
import { u as Ct, U as At } from "./usePrinter-sMoxYV4s.js";
|
|
6
|
+
import { _ as zt } from "./Tooltip-DvT_JgqK.js";
|
|
7
|
+
import { L as St } from "./Legend-BSpbp1BZ.js";
|
|
8
|
+
import { _ as Ue } from "./Shape-BOPYNx7w.js";
|
|
9
|
+
import { D as Tt } from "./DataTable-CBJXWv2y.js";
|
|
10
|
+
import Lt from "./vue-ui-skeleton-odlG21I6.js";
|
|
11
|
+
import Bt from "./vue-ui-accordion-DXPXhPPW.js";
|
|
12
|
+
import { u as Ge } from "./useNestedProp-vYrmxXEi.js";
|
|
13
|
+
import { _ as Ot } from "./PackageVersion-DtBpSOiQ.js";
|
|
14
|
+
import { P as Nt } from "./PenAndPaper-B2XkoPXE.js";
|
|
15
15
|
import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"],
|
|
17
|
+
const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Dt = { key: 1 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 2 }, Et = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Ut = { key: 0 }, Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], qt = { key: 1 }, Rt = { key: 3 }, Ht = ["id"], Zt = ["stop-color"], Jt = ["stop-color"], Kt = ["id"], Qt = ["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 = {
|
|
18
18
|
key: 4,
|
|
19
19
|
style: { "pointer-events": "none !important" }
|
|
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 = {
|
|
@@ -44,8 +44,8 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const F =
|
|
47
|
+
setup(qe, { expose: Re }) {
|
|
48
|
+
const F = qe, { vue_ui_scatter: He } = it(), ee = m(() => !!F.dataset && F.dataset.length), z = h(nt()), Ze = 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 });
|
|
@@ -59,7 +59,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
59
59
|
userConfig: vt.vue_ui_scatter[t.theme] || F.config,
|
|
60
60
|
defaultConfig: t
|
|
61
61
|
}),
|
|
62
|
-
customPalette: yt[t.theme] ||
|
|
62
|
+
customPalette: yt[t.theme] || R
|
|
63
63
|
} : t;
|
|
64
64
|
}
|
|
65
65
|
lt(() => F.config, (t) => {
|
|
@@ -95,7 +95,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
95
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
|
-
}),
|
|
98
|
+
}), Je = 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({
|
|
@@ -124,11 +124,11 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
124
124
|
Ee({
|
|
125
125
|
datasetObject: k,
|
|
126
126
|
requiredAttributes: ["x", "y"]
|
|
127
|
-
}).forEach((
|
|
127
|
+
}).forEach((J) => {
|
|
128
128
|
fe({
|
|
129
129
|
componentName: "VueUiScatter",
|
|
130
130
|
type: "datasetSerieAttribute",
|
|
131
|
-
property: `values.${
|
|
131
|
+
property: `values.${J}`,
|
|
132
132
|
index: `${v} - ${U}`
|
|
133
133
|
});
|
|
134
134
|
});
|
|
@@ -148,13 +148,13 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
148
148
|
threshold: e.value.downsample.threshold
|
|
149
149
|
}),
|
|
150
150
|
id: l,
|
|
151
|
-
color: t.color ? t.color : Ne.value[u] ||
|
|
151
|
+
color: t.color ? t.color : Ne.value[u] || R[u] || R[u % R.length],
|
|
152
152
|
opacity: x.value.includes(l) ? 0.5 : 1,
|
|
153
153
|
shape: t.shape ?? "circle",
|
|
154
154
|
segregate: () => Ie(l),
|
|
155
155
|
isSegregated: x.value.includes(l)
|
|
156
156
|
};
|
|
157
|
-
})),
|
|
157
|
+
})), Ke = m(() => ({
|
|
158
158
|
cy: "scatter-div-legend",
|
|
159
159
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
160
160
|
color: e.value.style.legend.color,
|
|
@@ -171,7 +171,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
171
171
|
name: l.name || ""
|
|
172
172
|
},
|
|
173
173
|
clusterName: t.name,
|
|
174
|
-
color: t.color ? t.color : Ne.value[u] ||
|
|
174
|
+
color: t.color ? t.color : Ne.value[u] || R[u] || R[u % R.length],
|
|
175
175
|
id: `plot_${z.value}_${Math.random()}`,
|
|
176
176
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
177
177
|
}))
|
|
@@ -180,11 +180,11 @@ 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)),
|
|
183
|
+
const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), J = l - U * u, N = {
|
|
184
184
|
x1: i.value.left,
|
|
185
185
|
x2: i.value.right,
|
|
186
|
-
y1: U * i.value.left +
|
|
187
|
-
y2: U * i.value.right +
|
|
186
|
+
y1: U * i.value.left + J,
|
|
187
|
+
y2: U * i.value.right + J,
|
|
188
188
|
coefficient: k
|
|
189
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
190
|
x: X,
|
|
@@ -205,24 +205,24 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
205
205
|
})
|
|
206
206
|
};
|
|
207
207
|
})), Pe = m(() => Math.max(...S.value.flatMap((t) => t.plots.map((u) => Math.abs(u.deviation)))));
|
|
208
|
-
function
|
|
208
|
+
function Qe() {
|
|
209
209
|
return S.value;
|
|
210
210
|
}
|
|
211
211
|
function We(t, u) {
|
|
212
|
-
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((
|
|
213
|
-
x:
|
|
214
|
-
y:
|
|
212
|
+
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((q) => ({
|
|
213
|
+
x: q.x,
|
|
214
|
+
y: q.y
|
|
215
215
|
}))) : t.plots.map((w) => ({
|
|
216
216
|
x: w.x,
|
|
217
217
|
y: w.y
|
|
218
218
|
}));
|
|
219
219
|
let s = 1 / 0, a = -1 / 0, v = 1 / 0, k = -1 / 0;
|
|
220
|
-
l.forEach(({ x: w, y:
|
|
221
|
-
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v,
|
|
220
|
+
l.forEach(({ x: w, y: q }) => {
|
|
221
|
+
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, q), k = Math.max(k, q);
|
|
222
222
|
});
|
|
223
|
-
const U = a - s,
|
|
224
|
-
l.forEach(({ x: w, y:
|
|
225
|
-
const de = Math.floor((w - s) / N), he = Math.floor((
|
|
223
|
+
const U = a - s, J = k - v, N = U / u, $ = J / u, L = Array(u).fill(0), X = Array(u).fill(0);
|
|
224
|
+
l.forEach(({ x: w, y: q }) => {
|
|
225
|
+
const de = Math.floor((w - s) / N), he = Math.floor((q - v) / $);
|
|
226
226
|
L[de] || (L[de] = 0), X[he] || (X[he] = 0), L[de] += 1, X[he] += 1;
|
|
227
227
|
});
|
|
228
228
|
const se = [], g = [];
|
|
@@ -231,10 +231,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
231
231
|
const G = Math.max(...L), ce = Math.max(...X);
|
|
232
232
|
return { x: L, y: X, avgX: se, avgY: g, maxX: G, maxY: ce };
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const D = m(() => e.value.style.layout.marginalBars.tranches), T = m(() => We(ne.value, D.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
|
-
const s = We(l,
|
|
237
|
+
const s = We(l, D.value);
|
|
238
238
|
return {
|
|
239
239
|
coords: s,
|
|
240
240
|
dX: pt(s.avgX.map((a, v) => ({
|
|
@@ -270,7 +270,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
270
270
|
seriesIndex: u,
|
|
271
271
|
series: S.value,
|
|
272
272
|
config: e.value
|
|
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) ? "-" :
|
|
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) ? "-" : j(
|
|
274
274
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
275
275
|
t.v.x,
|
|
276
276
|
W({
|
|
@@ -280,7 +280,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
280
280
|
r: e.value.style.tooltip.roundingValue
|
|
281
281
|
}),
|
|
282
282
|
{ datapoint: t, seriesIndex: u }
|
|
283
|
-
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" :
|
|
283
|
+
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : j(
|
|
284
284
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
285
285
|
t.v.y,
|
|
286
286
|
W({
|
|
@@ -302,7 +302,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
302
302
|
function Ie(t) {
|
|
303
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
|
-
function
|
|
305
|
+
function De() {
|
|
306
306
|
rt(() => {
|
|
307
307
|
const t = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], u = S.value.map((a) => [
|
|
308
308
|
a.name,
|
|
@@ -345,38 +345,38 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
345
345
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
346
346
|
};
|
|
347
347
|
return { head: t, body: u, config: l, colNames: t };
|
|
348
|
-
}),
|
|
348
|
+
}), Z = h(!1);
|
|
349
349
|
function tt(t) {
|
|
350
|
-
|
|
350
|
+
Z.value = t, xe.value += 1;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ye() {
|
|
353
353
|
B.value.showTable = !B.value.showTable;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ve() {
|
|
356
356
|
B.value.showTooltip = !B.value.showTooltip;
|
|
357
357
|
}
|
|
358
358
|
const oe = h(!1);
|
|
359
359
|
function ye() {
|
|
360
360
|
oe.value = !oe.value;
|
|
361
361
|
}
|
|
362
|
-
return
|
|
363
|
-
getData:
|
|
362
|
+
return Re({
|
|
363
|
+
getData: Qe,
|
|
364
364
|
generatePdf: Be,
|
|
365
|
-
generateCsv:
|
|
365
|
+
generateCsv: De,
|
|
366
366
|
generateImage: Oe,
|
|
367
|
-
toggleTable:
|
|
368
|
-
toggleTooltip:
|
|
367
|
+
toggleTable: Ye,
|
|
368
|
+
toggleTooltip: Ve,
|
|
369
369
|
toggleAnnotator: ye
|
|
370
370
|
}), (t, u) => (o(), r("div", {
|
|
371
|
-
class:
|
|
371
|
+
class: je(`vue-ui-scatter ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
372
372
|
ref_key: "scatterChart",
|
|
373
373
|
ref: H,
|
|
374
374
|
id: `vue-ui-scatter_${z.value}`,
|
|
375
|
-
style:
|
|
375
|
+
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
376
376
|
onMouseenter: u[2] || (u[2] = () => n(Ce)(!0)),
|
|
377
377
|
onMouseleave: u[3] || (u[3] = () => n(Ce)(!1))
|
|
378
378
|
}, [
|
|
379
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
379
|
+
e.value.userOptions.buttons.annotator ? (o(), V(Nt, {
|
|
380
380
|
key: 0,
|
|
381
381
|
parent: H.value,
|
|
382
382
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -384,7 +384,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
384
384
|
active: oe.value,
|
|
385
385
|
onClose: ye
|
|
386
386
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
387
|
-
|
|
387
|
+
Je.value ? (o(), r("div", {
|
|
388
388
|
key: 1,
|
|
389
389
|
ref_key: "noTitle",
|
|
390
390
|
ref: we,
|
|
@@ -397,7 +397,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
397
397
|
ref: me,
|
|
398
398
|
style: "width:100%;background:transparent"
|
|
399
399
|
}, [
|
|
400
|
-
(o(),
|
|
400
|
+
(o(), V($t, {
|
|
401
401
|
key: `title_${_e.value}`,
|
|
402
402
|
config: {
|
|
403
403
|
title: {
|
|
@@ -411,9 +411,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
411
411
|
}
|
|
412
412
|
}, null, 8, ["config"]))
|
|
413
413
|
], 512)) : c("", !0),
|
|
414
|
-
e.value.userOptions.show && ee.value && (n(Ae) || n(ie)) ? (o(),
|
|
414
|
+
e.value.userOptions.show && ee.value && (n(Ae) || n(ie)) ? (o(), V(At, {
|
|
415
415
|
ref_key: "details",
|
|
416
|
-
ref:
|
|
416
|
+
ref: Ze,
|
|
417
417
|
key: `user_options_${xe.value}`,
|
|
418
418
|
backgroundColor: e.value.style.backgroundColor,
|
|
419
419
|
color: e.value.style.color,
|
|
@@ -427,7 +427,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
427
427
|
hasTable: e.value.userOptions.buttons.table,
|
|
428
428
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
429
429
|
isTooltip: B.value.showTooltip,
|
|
430
|
-
isFullscreen:
|
|
430
|
+
isFullscreen: Z.value,
|
|
431
431
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
432
432
|
chartElement: H.value,
|
|
433
433
|
position: e.value.userOptions.position,
|
|
@@ -435,12 +435,12 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
435
435
|
isAnnotation: oe.value,
|
|
436
436
|
onToggleFullscreen: tt,
|
|
437
437
|
onGeneratePdf: n(Be),
|
|
438
|
-
onGenerateCsv:
|
|
438
|
+
onGenerateCsv: De,
|
|
439
439
|
onGenerateImage: n(Oe),
|
|
440
|
-
onToggleTable:
|
|
441
|
-
onToggleTooltip:
|
|
440
|
+
onToggleTable: Ye,
|
|
441
|
+
onToggleTooltip: Ve,
|
|
442
442
|
onToggleAnnotator: ye,
|
|
443
|
-
style:
|
|
443
|
+
style: Y({
|
|
444
444
|
visibility: n(Ae) ? n(ie) ? "visible" : "hidden" : "visible"
|
|
445
445
|
})
|
|
446
446
|
}, st({ _: 2 }, [
|
|
@@ -482,14 +482,14 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
482
482
|
t.$slots.optionFullscreen ? {
|
|
483
483
|
name: "optionFullscreen",
|
|
484
484
|
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
485
|
-
M(t.$slots, "optionFullscreen", Q(
|
|
485
|
+
M(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
486
486
|
]),
|
|
487
487
|
key: "5"
|
|
488
488
|
} : void 0,
|
|
489
489
|
t.$slots.optionAnnotator ? {
|
|
490
490
|
name: "optionAnnotator",
|
|
491
491
|
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
492
|
-
M(t.$slots, "optionAnnotator", Q(
|
|
492
|
+
M(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
493
493
|
]),
|
|
494
494
|
key: "6"
|
|
495
495
|
} : void 0
|
|
@@ -497,9 +497,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
497
497
|
ee.value ? (o(), r("svg", {
|
|
498
498
|
key: 4,
|
|
499
499
|
xmlns: n(gt),
|
|
500
|
-
class:
|
|
500
|
+
class: je({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
501
501
|
viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
|
|
502
|
-
style:
|
|
502
|
+
style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
503
503
|
}, [
|
|
504
504
|
pe(Ot),
|
|
505
505
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
@@ -514,7 +514,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
514
514
|
}, [
|
|
515
515
|
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
516
516
|
], 8, It)) : c("", !0),
|
|
517
|
-
e.value.style.layout.axis.show ? (o(), r("g",
|
|
517
|
+
e.value.style.layout.axis.show ? (o(), r("g", Dt, [
|
|
518
518
|
d("line", {
|
|
519
519
|
x1: f.value.x,
|
|
520
520
|
x2: f.value.x,
|
|
@@ -523,7 +523,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
523
523
|
stroke: e.value.style.layout.axis.stroke,
|
|
524
524
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
525
525
|
"stroke-linecap": "round"
|
|
526
|
-
}, null, 8,
|
|
526
|
+
}, null, 8, Yt),
|
|
527
527
|
d("line", {
|
|
528
528
|
x1: i.value.left,
|
|
529
529
|
x2: i.value.right,
|
|
@@ -532,9 +532,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
532
532
|
stroke: e.value.style.layout.axis.stroke,
|
|
533
533
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
534
534
|
"stroke-linecap": "round"
|
|
535
|
-
}, null, 8,
|
|
535
|
+
}, null, 8, Vt)
|
|
536
536
|
])) : c("", !0),
|
|
537
|
-
e.value.style.layout.plots.giftWrap.show ? (o(), r("g",
|
|
537
|
+
e.value.style.layout.plots.giftWrap.show ? (o(), r("g", jt, [
|
|
538
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,
|
|
@@ -559,10 +559,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
559
559
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
560
560
|
onMouseover: (k) => Fe(a, s),
|
|
561
561
|
onMouseleave: Xe,
|
|
562
|
-
style:
|
|
562
|
+
style: Y(`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
|
-
])) : (o(), r("g",
|
|
565
|
-
(o(!0), r(P, null, I(l.plots, (a, v) => (o(),
|
|
564
|
+
])) : (o(), r("g", qt, [
|
|
565
|
+
(o(!0), r(P, null, I(l.plots, (a, v) => (o(), V(Ue, {
|
|
566
566
|
plot: { x: a.x, y: a.y },
|
|
567
567
|
radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
568
568
|
shape: l.shape,
|
|
@@ -571,11 +571,11 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
571
571
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
572
572
|
onMouseover: (k) => Fe(a, s),
|
|
573
573
|
onMouseleave: Xe,
|
|
574
|
-
style:
|
|
574
|
+
style: Y(`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)),
|
|
578
|
-
e.value.style.layout.marginalBars.show ? (o(), r("g",
|
|
578
|
+
e.value.style.layout.marginalBars.show ? (o(), r("g", Rt, [
|
|
579
579
|
d("defs", null, [
|
|
580
580
|
d("linearGradient", {
|
|
581
581
|
id: `marginal_x_${z.value}`,
|
|
@@ -587,11 +587,11 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
587
587
|
d("stop", {
|
|
588
588
|
offset: "0%",
|
|
589
589
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
590
|
-
}, null, 8,
|
|
590
|
+
}, null, 8, Zt),
|
|
591
591
|
d("stop", {
|
|
592
592
|
offset: "100%",
|
|
593
593
|
"stop-color": e.value.style.backgroundColor
|
|
594
|
-
}, null, 8,
|
|
594
|
+
}, null, 8, Jt)
|
|
595
595
|
], 8, Ht),
|
|
596
596
|
d("linearGradient", {
|
|
597
597
|
id: `marginal_y_${z.value}`,
|
|
@@ -603,22 +603,22 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
603
603
|
d("stop", {
|
|
604
604
|
offset: "0%",
|
|
605
605
|
"stop-color": e.value.style.backgroundColor
|
|
606
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, Qt),
|
|
607
607
|
d("stop", {
|
|
608
608
|
offset: "100%",
|
|
609
609
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
610
610
|
}, null, 8, el)
|
|
611
|
-
], 8,
|
|
611
|
+
], 8, Kt)
|
|
612
612
|
]),
|
|
613
613
|
(o(!0), r(P, null, I(T.value.x, (l, s) => (o(), r("g", null, [
|
|
614
614
|
l && T.value.avgX[s] ? (o(), r("rect", {
|
|
615
615
|
key: 0,
|
|
616
|
-
x: T.value.avgX[s] - i.value.width /
|
|
616
|
+
x: T.value.avgX[s] - i.value.width / D.value / 2,
|
|
617
617
|
y: i.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
618
|
-
width: i.value.width /
|
|
618
|
+
width: i.value.width / D.value <= 0 ? 1e-4 : i.value.width / D.value,
|
|
619
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
|
-
style:
|
|
621
|
+
style: Y(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
622
622
|
stroke: e.value.style.backgroundColor,
|
|
623
623
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
624
624
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
@@ -628,11 +628,11 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
628
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: T.value.avgY[s] - i.value.height /
|
|
632
|
-
height: i.value.height /
|
|
631
|
+
y: T.value.avgY[s] - i.value.height / D.value / 2,
|
|
632
|
+
height: i.value.height / D.value <= 0 ? 1e-4 : i.value.height / D.value,
|
|
633
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
|
-
style:
|
|
635
|
+
style: Y(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
636
636
|
stroke: e.value.style.backgroundColor,
|
|
637
637
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
638
638
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
@@ -709,7 +709,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
709
709
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
710
710
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
711
711
|
"text-anchor": y.value.x > f.value.x ? "end" : "start"
|
|
712
|
-
}, C(n(
|
|
712
|
+
}, C(n(j)(
|
|
713
713
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
714
714
|
n(A)(y.value.v.y),
|
|
715
715
|
n(W)({
|
|
@@ -727,7 +727,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
727
727
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
728
728
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
729
729
|
"text-anchor": "middle"
|
|
730
|
-
}, C(n(
|
|
730
|
+
}, C(n(j)(
|
|
731
731
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
732
732
|
n(A)(y.value.v.x),
|
|
733
733
|
n(W)({
|
|
@@ -773,7 +773,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
773
773
|
"text-anchor": "end",
|
|
774
774
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
775
775
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
776
|
-
}, C(n(
|
|
776
|
+
}, C(n(j)(
|
|
777
777
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
778
778
|
n(A)(p.value.xMin),
|
|
779
779
|
n(W)({
|
|
@@ -789,7 +789,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
789
789
|
"text-anchor": "start",
|
|
790
790
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
791
791
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
792
|
-
}, C(n(
|
|
792
|
+
}, C(n(j)(
|
|
793
793
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
794
794
|
n(A)(p.value.xMax),
|
|
795
795
|
n(W)({
|
|
@@ -815,7 +815,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
815
815
|
"text-anchor": "middle",
|
|
816
816
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
817
817
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
818
|
-
}, C(n(
|
|
818
|
+
}, C(n(j)(
|
|
819
819
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
820
820
|
n(A)(p.value.yMin),
|
|
821
821
|
n(W)({
|
|
@@ -831,7 +831,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
831
831
|
"text-anchor": "middle",
|
|
832
832
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
833
833
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
834
|
-
}, C(n(
|
|
834
|
+
}, C(n(j)(
|
|
835
835
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
836
836
|
n(A)(p.value.yMax),
|
|
837
837
|
n(W)({
|
|
@@ -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(
|
|
891
|
+
M(t.$slots, "watermark", K(Q({ isPrinting: n(Te) || n(Le) })), void 0, !0)
|
|
892
892
|
])) : c("", !0),
|
|
893
|
-
ee.value ? c("", !0) : (o(),
|
|
893
|
+
ee.value ? c("", !0) : (o(), V(Lt, {
|
|
894
894
|
key: 6,
|
|
895
895
|
config: {
|
|
896
896
|
type: "quadrant",
|
|
@@ -912,16 +912,16 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
912
912
|
ref_key: "chartLegend",
|
|
913
913
|
ref: be
|
|
914
914
|
}, [
|
|
915
|
-
e.value.style.legend.show ? (o(),
|
|
915
|
+
e.value.style.legend.show ? (o(), V(St, {
|
|
916
916
|
key: `legend_${$e.value}`,
|
|
917
917
|
legendSet: E.value,
|
|
918
|
-
config:
|
|
918
|
+
config: Ke.value,
|
|
919
919
|
onClickMarker: u[0] || (u[0] = ({ legend: l }) => Ie(l.id))
|
|
920
920
|
}, {
|
|
921
921
|
item: _(({ legend: l }) => [
|
|
922
922
|
d("div", {
|
|
923
923
|
onClick: (s) => l.segregate(),
|
|
924
|
-
style:
|
|
924
|
+
style: Y(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
925
925
|
}, C(l.name), 13, Tl)
|
|
926
926
|
]),
|
|
927
927
|
_: 1
|
|
@@ -951,14 +951,14 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
951
951
|
offsetY: e.value.style.tooltip.offsetY,
|
|
952
952
|
parent: H.value,
|
|
953
953
|
content: re.value,
|
|
954
|
-
isFullscreen:
|
|
954
|
+
isFullscreen: Z.value,
|
|
955
955
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
956
956
|
}, {
|
|
957
957
|
"tooltip-before": _(() => [
|
|
958
|
-
M(t.$slots, "tooltip-before", Q(
|
|
958
|
+
M(t.$slots, "tooltip-before", K(Q({ ...ve.value })), void 0, !0)
|
|
959
959
|
]),
|
|
960
960
|
"tooltip-after": _(() => [
|
|
961
|
-
M(t.$slots, "tooltip-after", Q(
|
|
961
|
+
M(t.$slots, "tooltip-after", K(Q({ ...ve.value })), void 0, !0)
|
|
962
962
|
]),
|
|
963
963
|
default: _(() => [
|
|
964
964
|
e.value.style.tooltip.showShape ? (o(), r("div", Ll, [
|
|
@@ -974,7 +974,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
974
974
|
]),
|
|
975
975
|
_: 3
|
|
976
976
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
977
|
-
ee.value ? (o(),
|
|
977
|
+
ee.value ? (o(), V(Bt, {
|
|
978
978
|
key: 8,
|
|
979
979
|
hideDetails: "",
|
|
980
980
|
config: {
|
|
@@ -991,7 +991,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
|
|
|
991
991
|
}
|
|
992
992
|
}, {
|
|
993
993
|
content: _(() => [
|
|
994
|
-
(o(),
|
|
994
|
+
(o(), V(Tt, {
|
|
995
995
|
key: `table_${Me.value}`,
|
|
996
996
|
colNames: ae.value.colNames,
|
|
997
997
|
head: ae.value.head,
|
|
@@ -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
|
-
},
|
|
1021
|
+
}, Kl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-c274e32f"]]);
|
|
1022
1022
|
export {
|
|
1023
|
-
|
|
1023
|
+
Kl 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-DHTOdsmm.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-CbMgQMOZ.js";
|
|
3
3
|
import J from "./html2canvas.esm-d2sM-0Wm.js";
|
|
4
4
|
const te = {
|
|
5
5
|
__name: "vue-ui-screenshot",
|