vue-data-ui 3.2.8 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as ne, computed as T, ref as M, toRefs as hl, watch as Te, shallowRef as Bt, onMounted as pl, onBeforeUnmount as fl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ue, normalizeClass as Tt, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as $e, createSlots as zt, withCtx as X, renderSlot as U, normalizeProps as pe, guardReactiveProps as fe, Fragment as Z, renderList as K, toDisplayString as G, Teleport as gl, resolveDynamicComponent as ml, mergeProps as xl, createTextVNode as Pt, nextTick as bl } from "vue";
|
|
2
|
+
import { c as kl, t as wl, b as _l, p as ye, o as Ot, f as Je, e as $l, g as Dt, W as Ml, h as Ke, Z as Cl, U as Al, s as ze, X as Sl, Y as Ll, a as ie, q, d as Q, x as Bl, y as Tl, z as zl, A as Pl } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as Ol, u as Dl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as El, a as Et } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Fl, B as Wl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Nl } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as Il } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Yl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { t as Rl } from "./themes-Dw-dDudK.js";
|
|
11
|
+
import Ul from "./Legend-By4rru90.js";
|
|
12
|
+
import jl from "./Title-Camz1Lce.js";
|
|
13
|
+
import { _ as Qe } from "./Shape-BceHSLHf.js";
|
|
14
|
+
import Vl from "./img-J2dLIr8Y.js";
|
|
15
|
+
import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Jl = ["width", "height"], Kl = { key: 1 }, Ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ta = { key: 2 }, la = ["id"], aa = ["stop-color"], oa = ["stop-color"], sa = ["id"], na = ["stop-color"], ua = ["stop-color"], ia = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ra = ["x", "y", "width", "height", "onMouseenter"], va = {
|
|
16
17
|
key: 2,
|
|
17
18
|
style: { "pointer-events": "none" }
|
|
18
|
-
},
|
|
19
|
+
}, ya = ["x", "y", "width", "height", "fill", "fill-opacity"], ca = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], da = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], ha = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], pa = ["x", "y", "width", "height", "onMouseenter"], fa = {
|
|
19
20
|
key: 2,
|
|
20
21
|
style: { "pointer-events": "none" }
|
|
21
|
-
},
|
|
22
|
+
}, ga = ["x", "y", "width", "height", "fill", "fill-opacity"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ba = {
|
|
22
23
|
key: 0,
|
|
23
24
|
style: { "pointer-events": "none" }
|
|
24
|
-
},
|
|
25
|
+
}, ka = ["d", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], $a = ["d", "stroke", "stroke-width"], Ma = { key: 3 }, Ca = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Aa = { key: 0 }, Sa = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], La = { key: 1 }, Ba = ["clip-path"], Ta = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], za = {
|
|
25
26
|
key: 0,
|
|
26
27
|
style: { "pointer-events": "none" }
|
|
27
|
-
},
|
|
28
|
+
}, Pa = ["x", "y", "width", "height"], Oa = {
|
|
28
29
|
key: 6,
|
|
29
30
|
style: { "pointer-events": "none !important" }
|
|
30
|
-
},
|
|
31
|
+
}, Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Na = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ia = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Xa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ya = ["id", "transform", "font-size", "font-weight", "fill"], Ra = ["font-size", "fill", "transform"], Ua = ["transform", "font-size", "fill"], ja = ["x", "y", "font-size", "fill"], Va = ["x", "y", "font-size", "fill"], Ga = ["font-size", "font-weight", "fill", "x", "y"], qa = ["id"], Ha = ["x", "y", "width", "height"], Za = {
|
|
31
32
|
key: 11,
|
|
32
33
|
style: { pointerEvents: "none" }
|
|
33
|
-
},
|
|
34
|
+
}, Ja = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Ka = ["x", "y", "fill", "font-size", "font-weight"], Qa = {
|
|
34
35
|
key: 4,
|
|
35
36
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
37
|
+
}, eo = ["id"], to = ["onClick"], lo = {
|
|
37
38
|
key: 0,
|
|
38
39
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
39
|
-
},
|
|
40
|
+
}, ao = {
|
|
40
41
|
viewBox: "0 0 20 20",
|
|
41
42
|
height: "20",
|
|
42
43
|
width: "20",
|
|
43
44
|
style: { overflow: "hidden", background: "transparent" }
|
|
44
|
-
},
|
|
45
|
+
}, oo = { key: 0 }, so = ["innerHTML"], no = {
|
|
45
46
|
__name: "vue-ui-scatter",
|
|
46
47
|
props: {
|
|
47
48
|
config: {
|
|
@@ -57,41 +58,41 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
},
|
|
60
|
-
setup(
|
|
61
|
-
const
|
|
62
|
-
function
|
|
61
|
+
setup(Ft, { expose: Wt }) {
|
|
62
|
+
const Nt = ne(() => import("./Tooltip-VOcQEHa4.js")), It = ne(() => import("./BaseIcon-eZbszQrv.js")), Xt = ne(() => import("./vue-ui-accordion-VTP418mC.js")), Yt = ne(() => import("./DataTable-yAMEyP6y.js")), Rt = ne(() => import("./PenAndPaper-Bo-lMUik.js")), Ut = ne(() => import("./UserOptions-CSja1SGU.js")), jt = ne(() => import("./PackageVersion-BfykJm_B.js")), Vt = ne(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_scatter: Gt } = El(), ee = Ft, et = T(() => !!ee.dataset && ee.dataset.length), W = M(kl()), Pe = M(!1), Oe = M(""), tt = M(0), te = M(null), lt = M(null), at = M(null), ot = M(null), st = M(null), nt = M(0), ut = M(0), it = M(0), N = M([]), rt = M(!1), ge = M(null), me = M(null), xe = M(null), De = M(null), Ee = M(null), qt = M(null), Ht = M(null), Fe = M(null), e = M(Xe());
|
|
63
|
+
function Zt(l = 100, s = 0.8, t = {}) {
|
|
63
64
|
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: p } = t;
|
|
64
65
|
let v = (p ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
65
66
|
const g = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), L = () => {
|
|
66
|
-
let m = 0,
|
|
67
|
+
let m = 0, D = 0;
|
|
67
68
|
for (; m === 0; ) m = g();
|
|
68
|
-
for (;
|
|
69
|
-
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI *
|
|
70
|
-
}, d = l / 2, $ = Array.from({ length: d }, L),
|
|
69
|
+
for (; D === 0; ) D = g();
|
|
70
|
+
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * D);
|
|
71
|
+
}, d = l / 2, $ = Array.from({ length: d }, L), O = Array.from({ length: d }, L), C = (m) => m.reduce((D, _e) => D + _e, 0) / m.length, z = C($), I = C(O);
|
|
71
72
|
for (let m = 0; m < d; m += 1)
|
|
72
|
-
$[m] -=
|
|
73
|
-
const B = (m,
|
|
74
|
-
const
|
|
75
|
-
return m.map((Ze) => _e + (
|
|
73
|
+
$[m] -= z, O[m] -= I;
|
|
74
|
+
const B = (m, D) => m.reduce((_e, Be, Ze) => _e + Be * D[Ze], 0), _ = (m) => B(m, m), h = B(O, $) / _($), S = O.map((m, D) => m - h * $[D]), V = _($) / d, J = _(S) / d, se = Math.sqrt((1 - s * s) * V / J), R = $.map((m, D) => s * m + se * S[D]), ve = $.concat($.map((m) => -m)), He = R.concat(R.map((m) => -m)), ke = (m) => Math.sqrt(_(m) / m.length), de = (m, D, _e) => {
|
|
75
|
+
const Be = ke(m);
|
|
76
|
+
return m.map((Ze) => _e + (Be ? Ze / Be * D : 0));
|
|
76
77
|
}, he = de(ve, a, o), we = de(He, i, u);
|
|
77
78
|
for (let m = he.length - 1; m > 0; m -= 1) {
|
|
78
|
-
const
|
|
79
|
-
[he[m], he[
|
|
79
|
+
const D = Math.floor(g() * (m + 1));
|
|
80
|
+
[he[m], he[D]] = [he[D], he[m]], [we[m], we[D]] = [we[D], we[m]];
|
|
80
81
|
}
|
|
81
|
-
return he.map((m,
|
|
82
|
+
return he.map((m, D) => ({ x: m, y: we[D] }));
|
|
82
83
|
}
|
|
83
|
-
const { loading: vt, FINAL_DATASET:
|
|
84
|
-
...
|
|
84
|
+
const { loading: vt, FINAL_DATASET: We, manualLoading: Ne } = Fl({
|
|
85
|
+
...hl(ee),
|
|
85
86
|
FINAL_CONFIG: e,
|
|
86
87
|
prepareConfig: Xe,
|
|
87
88
|
skeletonDataset: [
|
|
88
89
|
{
|
|
89
90
|
name: "",
|
|
90
91
|
color: "#999999",
|
|
91
|
-
values:
|
|
92
|
+
values: Zt(100, 0.5, { seed: 42 })
|
|
92
93
|
}
|
|
93
94
|
],
|
|
94
|
-
skeletonConfig:
|
|
95
|
+
skeletonConfig: wl({
|
|
95
96
|
defaultConfig: e.value,
|
|
96
97
|
userConfig: {
|
|
97
98
|
userOptions: { show: !1 },
|
|
@@ -124,22 +125,22 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
})
|
|
127
|
-
}), { userOptionsVisible:
|
|
128
|
+
}), { userOptionsVisible: Ie, setUserOptionsVisibility: yt, keepUserOptionState: ct } = Xl({ config: e.value }), { svgRef: Me } = Yl({ config: e.value.style.title });
|
|
128
129
|
function Xe() {
|
|
129
|
-
const l =
|
|
130
|
+
const l = Et({
|
|
130
131
|
userConfig: ee.config,
|
|
131
|
-
defaultConfig:
|
|
132
|
+
defaultConfig: Gt
|
|
132
133
|
});
|
|
133
134
|
return l.theme ? {
|
|
134
|
-
...
|
|
135
|
-
userConfig:
|
|
135
|
+
...Et({
|
|
136
|
+
userConfig: Rl.vue_ui_scatter[l.theme] || ee.config,
|
|
136
137
|
defaultConfig: l
|
|
137
138
|
}),
|
|
138
|
-
customPalette:
|
|
139
|
+
customPalette: _l[l.theme] || ye
|
|
139
140
|
} : l;
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
-
vt.value || (e.value = Xe()),
|
|
142
|
+
Te(() => ee.config, (l) => {
|
|
143
|
+
vt.value || (e.value = Xe()), Ie.value = !e.value.userOptions.showOnChartHover, ht(), nt.value += 1, ut.value += 1, it.value += 1, H.value.showTable = e.value.table.show, H.value.showTooltip = e.value.style.tooltip.show, dt.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
|
|
143
144
|
|
|
144
145
|
- downsampling is disabled in this mode, all plots are rendered
|
|
145
146
|
|
|
@@ -148,22 +149,22 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
148
149
|
- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
|
|
149
150
|
|
|
150
151
|
ℹ️ To remove this warning, set config.debug to false.`);
|
|
151
|
-
}, { deep: !0 }),
|
|
152
|
-
Array.isArray(l) && l.length > 0 && (
|
|
152
|
+
}, { deep: !0 }), Te(() => ee.dataset, (l) => {
|
|
153
|
+
Array.isArray(l) && l.length > 0 && (Ne.value = !1);
|
|
153
154
|
}, { deep: !0 });
|
|
154
|
-
const ae =
|
|
155
|
-
|
|
155
|
+
const ae = Bt(null), ce = Bt(null);
|
|
156
|
+
pl(() => {
|
|
156
157
|
rt.value = !0, ht();
|
|
157
158
|
});
|
|
158
|
-
const dt =
|
|
159
|
+
const dt = T(() => !!e.value.debug);
|
|
159
160
|
function ht() {
|
|
160
|
-
if (
|
|
161
|
+
if (Ot(ee.dataset) && (Je({
|
|
161
162
|
componentName: "VueUiScatter",
|
|
162
163
|
type: "dataset",
|
|
163
164
|
debug: dt.value
|
|
164
|
-
}),
|
|
165
|
-
const l =
|
|
166
|
-
const { width: s, height: t } =
|
|
165
|
+
}), Ne.value = !0), Ot(ee.dataset) || (Ne.value = e.value.loading), e.value.responsive) {
|
|
166
|
+
const l = Ol(() => {
|
|
167
|
+
const { width: s, height: t } = Dl({
|
|
167
168
|
chart: te.value,
|
|
168
169
|
title: e.value.style.title.text ? lt.value : null,
|
|
169
170
|
legend: e.value.style.legend.show ? at.value : null,
|
|
@@ -171,45 +172,45 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
171
172
|
noTitle: st.value
|
|
172
173
|
});
|
|
173
174
|
requestAnimationFrame(() => {
|
|
174
|
-
|
|
175
|
+
E.value.width = s, E.value.height = t;
|
|
175
176
|
});
|
|
176
177
|
});
|
|
177
178
|
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect()), ae.value = new ResizeObserver(l), ce.value = te.value.parentNode, ae.value.observe(ce.value);
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
+
fl(() => {
|
|
181
182
|
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect());
|
|
182
183
|
});
|
|
183
|
-
const { isPrinting: pt, isImaging: ft, generatePdf: gt, generateImage: mt } =
|
|
184
|
+
const { isPrinting: pt, isImaging: ft, generatePdf: gt, generateImage: mt } = Nl({
|
|
184
185
|
elementId: `vue-ui-scatter_${W.value}`,
|
|
185
186
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
186
187
|
options: e.value.userOptions.print
|
|
187
|
-
}),
|
|
188
|
+
}), Jt = T(() => e.value.userOptions.show && !e.value.style.title.text), xt = T(() => $l(e.value.customPalette)), H = M({
|
|
188
189
|
showTable: e.value.table.show,
|
|
189
190
|
showTooltip: e.value.style.tooltip.show
|
|
190
191
|
});
|
|
191
|
-
|
|
192
|
+
Te(e, () => {
|
|
192
193
|
H.value = {
|
|
193
194
|
showTable: e.value.table.show,
|
|
194
195
|
showTooltip: e.value.style.tooltip.show
|
|
195
196
|
};
|
|
196
197
|
}, { immediate: !0 });
|
|
197
|
-
const
|
|
198
|
+
const E = M({
|
|
198
199
|
height: e.value.style.layout.height,
|
|
199
200
|
width: e.value.style.layout.width
|
|
200
|
-
}),
|
|
201
|
+
}), Ce = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = T(() => {
|
|
201
202
|
let l = 0, s = 0;
|
|
202
|
-
return
|
|
203
|
-
top: e.value.style.layout.padding.top +
|
|
204
|
-
right:
|
|
205
|
-
bottom:
|
|
203
|
+
return Ee.value && (l = Ee.value.getBBox().width + 6), Fe.value && (s = Fe.value.getBBox().height + 6), {
|
|
204
|
+
top: e.value.style.layout.padding.top + Ce.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
205
|
+
right: E.value.width - e.value.style.layout.padding.right - Ce.value - 6,
|
|
206
|
+
bottom: E.value.height - e.value.style.layout.padding.bottom - s,
|
|
206
207
|
left: e.value.style.layout.padding.left + l,
|
|
207
|
-
height:
|
|
208
|
-
width:
|
|
208
|
+
height: E.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Ce.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
209
|
+
width: E.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Ce.value - l - 6
|
|
209
210
|
};
|
|
210
|
-
}),
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
}), P = T(() => {
|
|
212
|
+
We.value.forEach((a, u) => {
|
|
213
|
+
Dt({
|
|
213
214
|
datasetObject: a,
|
|
214
215
|
requiredAttributes: ["values"]
|
|
215
216
|
}).forEach((i) => {
|
|
@@ -220,7 +221,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
220
221
|
index: u
|
|
221
222
|
});
|
|
222
223
|
}), a.values && a.values.forEach((i, p) => {
|
|
223
|
-
|
|
224
|
+
Dt({
|
|
224
225
|
datasetObject: i,
|
|
225
226
|
requiredAttributes: ["x", "y"]
|
|
226
227
|
}).forEach((v) => {
|
|
@@ -233,16 +234,16 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
233
234
|
});
|
|
234
235
|
});
|
|
235
236
|
});
|
|
236
|
-
const l = Math.min(...
|
|
237
|
+
const l = Math.min(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
|
|
237
238
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
|
|
238
|
-
}),
|
|
239
|
-
x: n.value.left + Math.abs(
|
|
240
|
-
y: n.value.bottom - Math.abs(
|
|
241
|
-
})),
|
|
239
|
+
}), F = T(() => ({
|
|
240
|
+
x: n.value.left + Math.abs(P.value.xMin) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
241
|
+
y: n.value.bottom - Math.abs(P.value.yMin) / (P.value.yMax + Math.abs(P.value.yMin)) * n.value.height
|
|
242
|
+
})), oe = T(() => We.value.map((l, s) => {
|
|
242
243
|
const t = `cluster_${W.value}_${s}`;
|
|
243
244
|
return {
|
|
244
245
|
...l,
|
|
245
|
-
values:
|
|
246
|
+
values: Ml({
|
|
246
247
|
data: l.values,
|
|
247
248
|
threshold: e.value.usePerformanceMode ? l.values.length + 1 : e.value.downsample.threshold
|
|
248
249
|
}),
|
|
@@ -253,18 +254,18 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
253
254
|
segregate: () => wt(t),
|
|
254
255
|
isSegregated: N.value.includes(t)
|
|
255
256
|
};
|
|
256
|
-
})),
|
|
257
|
+
})), Kt = T(() => ({
|
|
257
258
|
cy: "scatter-div-legend",
|
|
258
259
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
259
260
|
color: e.value.style.legend.color,
|
|
260
261
|
fontSize: e.value.style.legend.fontSize,
|
|
261
262
|
paddingBottom: 12,
|
|
262
263
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
263
|
-
})), Ye =
|
|
264
|
+
})), Ye = T(() => oe.value.map((l, s) => ({
|
|
264
265
|
...l,
|
|
265
266
|
plots: l.values.map((t) => ({
|
|
266
|
-
x: n.value.left + (t.x + Math.abs(
|
|
267
|
-
y: n.value.bottom - (t.y + Math.abs(
|
|
267
|
+
x: n.value.left + (t.x + Math.abs(P.value.xMin)) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
268
|
+
y: n.value.bottom - (t.y + Math.abs(P.value.yMin)) / (P.value.yMax + Math.abs(P.value.yMin)) * n.value.height,
|
|
268
269
|
v: {
|
|
269
270
|
...t,
|
|
270
271
|
name: t.name || ""
|
|
@@ -274,23 +275,23 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
274
275
|
id: `plot_${W.value}_${Math.random()}`,
|
|
275
276
|
weight: t.weight ?? e.value.style.layout.plots.radius
|
|
276
277
|
}))
|
|
277
|
-
})).filter((l) => !N.value.includes(l.id))),
|
|
278
|
+
})).filter((l) => !N.value.includes(l.id))), j = T(() => {
|
|
278
279
|
const s = ({ m: t, b: o, rect: a, verticalX: u = null }) => {
|
|
279
280
|
const { left: i, right: p, top: v, bottom: g } = a, L = [], d = (_, h) => {
|
|
280
281
|
Number.isFinite(_) && Number.isFinite(h) && L.push({ x: _, y: h });
|
|
281
282
|
}, $ = ({ x: _, y: h }) => _ >= i - 1e-9 && _ <= p + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
|
|
282
283
|
u !== null ? u >= i - 1e-9 && u <= p + 1e-9 && (d(u, v), d(u, g)) : Number.isFinite(t) && (d(i, t * i + o), d(p, t * p + o), Math.abs(t) > 1e-9 ? (d((v - o) / t, v), d((g - o) / t, g)) : o >= v - 1e-9 && o <= g + 1e-9 && (d(i, o), d(p, o)));
|
|
283
|
-
const
|
|
284
|
-
for (const _ of
|
|
284
|
+
const O = L.filter($), C = [];
|
|
285
|
+
for (const _ of O)
|
|
285
286
|
C.some((h) => Math.abs(h.x - _.x) < 1e-6 && Math.abs(h.y - _.y) < 1e-6) || C.push(_);
|
|
286
287
|
if (C.length < 2) return null;
|
|
287
|
-
let
|
|
288
|
+
let z = C[0], I = C[1], B = 0;
|
|
288
289
|
for (let _ = 0; _ < C.length; _ += 1)
|
|
289
290
|
for (let h = _ + 1; h < C.length; h += 1) {
|
|
290
291
|
const S = C[_].x - C[h].x, V = C[_].y - C[h].y, J = S * S + V * V;
|
|
291
|
-
J > B && (B = J,
|
|
292
|
+
J > B && (B = J, z = C[_], I = C[h]);
|
|
292
293
|
}
|
|
293
|
-
return { x1:
|
|
294
|
+
return { x1: z.x, y1: z.y, x2: I.x, y2: I.y };
|
|
294
295
|
};
|
|
295
296
|
return Ye.value.map((t) => {
|
|
296
297
|
const o = t.plots.length, a = t.plots.reduce((h, S) => h + S.x, 0) / o, u = t.plots.reduce((h, S) => h + S.y, 0) / o;
|
|
@@ -303,23 +304,23 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
303
304
|
p < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / p, g = u - v * a);
|
|
304
305
|
let d, $;
|
|
305
306
|
L !== null ? (d = 1 / 0, $ = null) : (d = v, $ = g);
|
|
306
|
-
const
|
|
307
|
+
const O = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
|
|
307
308
|
let C = NaN;
|
|
308
309
|
if (o >= 2) {
|
|
309
310
|
let h = 0, S = 0;
|
|
310
|
-
|
|
311
|
-
let V = 0, J = 0,
|
|
311
|
+
O ? (h = t.plots.reduce((R, ve) => R + ve.v.x, 0) / o, S = t.plots.reduce((R, ve) => R + ve.v.y, 0) / o) : (h = a, S = -u);
|
|
312
|
+
let V = 0, J = 0, se = 0;
|
|
312
313
|
for (const R of t.plots) {
|
|
313
|
-
const ve =
|
|
314
|
-
V += ke * de, J += ke * ke,
|
|
314
|
+
const ve = O ? R.v.x : R.x, He = O ? R.v.y : -R.y, ke = ve - h, de = He - S;
|
|
315
|
+
V += ke * de, J += ke * ke, se += de * de;
|
|
315
316
|
}
|
|
316
|
-
if (J >= 1e-9 &&
|
|
317
|
-
const R = V / Math.sqrt(J *
|
|
317
|
+
if (J >= 1e-9 && se >= 1e-9) {
|
|
318
|
+
const R = V / Math.sqrt(J * se);
|
|
318
319
|
C = Math.max(-1, Math.min(1, R));
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
|
-
const
|
|
322
|
-
if (!
|
|
322
|
+
const z = s({ m: d, b: $, rect: n.value, verticalX: L });
|
|
323
|
+
if (!z)
|
|
323
324
|
return {
|
|
324
325
|
...t,
|
|
325
326
|
correlation: null,
|
|
@@ -331,19 +332,19 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
331
332
|
color: Ke(t.color)
|
|
332
333
|
}))
|
|
333
334
|
};
|
|
334
|
-
const I = (
|
|
335
|
+
const I = (z.x1 + z.x2) / 2, B = (z.y1 + z.y2) / 2, _ = { x: I, y: B };
|
|
335
336
|
return {
|
|
336
337
|
...t,
|
|
337
338
|
color: Ke(t.color),
|
|
338
339
|
correlation: {
|
|
339
|
-
...
|
|
340
|
+
...z,
|
|
340
341
|
coefficient: C
|
|
341
342
|
},
|
|
342
343
|
label: _,
|
|
343
344
|
plots: t.plots.map((h) => {
|
|
344
345
|
let S, V;
|
|
345
346
|
L !== null ? (S = L, V = h.y) : Math.abs(d) < 1e-9 ? (S = h.x, V = $) : (S = (h.x + d * h.y - d * $) / (1 + d * d), V = (d * h.x + d * d * h.y + $) / (1 + d * d));
|
|
346
|
-
const J = h.x - S,
|
|
347
|
+
const J = h.x - S, se = h.y - V, R = Math.sqrt(J * J + se * se);
|
|
347
348
|
return {
|
|
348
349
|
...h,
|
|
349
350
|
deviation: R,
|
|
@@ -353,9 +354,9 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
353
354
|
})
|
|
354
355
|
};
|
|
355
356
|
});
|
|
356
|
-
}), bt =
|
|
357
|
-
function
|
|
358
|
-
return
|
|
357
|
+
}), bt = T(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
|
|
358
|
+
function Qt() {
|
|
359
|
+
return j.value;
|
|
359
360
|
}
|
|
360
361
|
function kt(l, s) {
|
|
361
362
|
const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map((_) => ({
|
|
@@ -374,23 +375,23 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
374
375
|
const h = Math.floor((B - o) / g), S = Math.floor((_ - u) / L);
|
|
375
376
|
d[h] || (d[h] = 0), $[S] || ($[S] = 0), d[h] += 1, $[S] += 1;
|
|
376
377
|
});
|
|
377
|
-
const
|
|
378
|
+
const O = [], C = [];
|
|
378
379
|
for (let B = 0; B < s; B += 1)
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
return { x: d, y: $, avgX:
|
|
380
|
+
O.push(o + (B + 0.5) * g), C.push(u + (B + 0.5) * L);
|
|
381
|
+
const z = Math.max(...d), I = Math.max(...$);
|
|
382
|
+
return { x: d, y: $, avgX: O, avgY: C, maxX: z, maxY: I };
|
|
382
383
|
}
|
|
383
|
-
const b =
|
|
384
|
+
const b = T(() => e.value.style.layout.marginalBars.tranches), A = T(() => kt(Ye.value, b.value)), el = T(() => {
|
|
384
385
|
const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
385
386
|
return Ye.value.map((t) => {
|
|
386
387
|
const o = kt(t, b.value);
|
|
387
388
|
return {
|
|
388
389
|
coords: o,
|
|
389
|
-
dX:
|
|
390
|
+
dX: Al(o.avgX.map((a, u) => ({
|
|
390
391
|
x: a,
|
|
391
392
|
y: l - o.x[u] / o.maxX * e.value.style.layout.marginalBars.size
|
|
392
393
|
}))),
|
|
393
|
-
dY:
|
|
394
|
+
dY: Cl(o.avgY.map((a, u) => ({
|
|
394
395
|
y: a,
|
|
395
396
|
x: s + e.value.style.layout.marginalBars.size * o.y[u] / o.maxY
|
|
396
397
|
}))),
|
|
@@ -399,27 +400,27 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
399
400
|
};
|
|
400
401
|
});
|
|
401
402
|
}), Y = M(void 0), f = M(null), Re = M(null);
|
|
402
|
-
function
|
|
403
|
+
function Ue(l, s) {
|
|
403
404
|
Y.value = l.id, f.value = l;
|
|
404
405
|
let t = "";
|
|
405
406
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Re.value = {
|
|
406
407
|
datapoint: l,
|
|
407
408
|
seriesIndex: s,
|
|
408
|
-
series:
|
|
409
|
+
series: j.value,
|
|
409
410
|
config: e.value
|
|
410
411
|
};
|
|
411
412
|
const o = e.value.style.tooltip.customFormat;
|
|
412
|
-
|
|
413
|
+
zl(o) && Pl(() => o({
|
|
413
414
|
datapoint: l,
|
|
414
415
|
seriesIndex: s,
|
|
415
|
-
series:
|
|
416
|
+
series: j.value,
|
|
416
417
|
config: e.value
|
|
417
|
-
})) ?
|
|
418
|
+
})) ? Oe.value = o({
|
|
418
419
|
datapoint: l,
|
|
419
420
|
seriesIndex: s,
|
|
420
|
-
series:
|
|
421
|
+
series: j.value,
|
|
421
422
|
config: e.value
|
|
422
|
-
}) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" :
|
|
423
|
+
}) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : ie(
|
|
423
424
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
424
425
|
l.v.x,
|
|
425
426
|
Q({
|
|
@@ -429,7 +430,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
429
430
|
r: e.value.style.tooltip.roundingValue
|
|
430
431
|
}),
|
|
431
432
|
{ datapoint: l, seriesIndex: s }
|
|
432
|
-
)}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" :
|
|
433
|
+
)}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : ie(
|
|
433
434
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
434
435
|
l.v.y,
|
|
435
436
|
Q({
|
|
@@ -442,37 +443,37 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
442
443
|
)}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${Q({
|
|
443
444
|
v: l.deviation,
|
|
444
445
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
445
|
-
})}</b>`, t += "</div>",
|
|
446
|
+
})}</b>`, t += "</div>", Oe.value = `<div>${t}</div>`), Pe.value = !0;
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }),
|
|
448
|
+
function Ae(l, s) {
|
|
449
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), Pe.value = !1, Y.value = void 0, f.value = null;
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
+
function je(l, s) {
|
|
451
452
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
452
453
|
}
|
|
453
454
|
function wt(l) {
|
|
454
|
-
N.value.includes(l) ? N.value = N.value.filter((s) => s !== l) : N.value.length <
|
|
455
|
+
N.value.includes(l) ? N.value = N.value.filter((s) => s !== l) : N.value.length < We.value.length - 1 && N.value.push(l);
|
|
455
456
|
}
|
|
456
457
|
function Ve(l = null) {
|
|
457
|
-
|
|
458
|
-
const s = ["", 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}`], t =
|
|
458
|
+
bl(() => {
|
|
459
|
+
const s = ["", 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}`], t = j.value.map((u) => [
|
|
459
460
|
u.name,
|
|
460
461
|
u.correlation.coefficient,
|
|
461
462
|
u.plots.length,
|
|
462
463
|
u.plots.map((i) => i.v.x).reduce((i, p) => i + p, 0) / u.plots.length,
|
|
463
464
|
u.plots.map((i) => i.v.y).reduce((i, p) => i + p, 0) / u.plots.length
|
|
464
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a =
|
|
465
|
-
l ? l(a) :
|
|
465
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a = Bl(o);
|
|
466
|
+
l ? l(a) : Tl({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
466
467
|
});
|
|
467
468
|
}
|
|
468
|
-
const
|
|
469
|
+
const Se = T(() => {
|
|
469
470
|
const l = [
|
|
470
471
|
e.value.table.translations.series,
|
|
471
472
|
e.value.table.translations.correlationCoefficient,
|
|
472
473
|
e.value.table.translations.nbrPlots,
|
|
473
474
|
`${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
|
|
474
475
|
`${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
|
|
475
|
-
], s =
|
|
476
|
+
], s = j.value.map((o) => [
|
|
476
477
|
{
|
|
477
478
|
shape: o.shape,
|
|
478
479
|
content: o.name,
|
|
@@ -506,13 +507,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
506
507
|
function Mt() {
|
|
507
508
|
H.value.showTooltip = !H.value.showTooltip;
|
|
508
509
|
}
|
|
509
|
-
const
|
|
510
|
-
function
|
|
511
|
-
|
|
510
|
+
const Le = M(!1);
|
|
511
|
+
function Ge() {
|
|
512
|
+
Le.value = !Le.value;
|
|
512
513
|
}
|
|
513
|
-
async function
|
|
514
|
+
async function tl({ scale: l = 2 } = {}) {
|
|
514
515
|
if (!te.value) return;
|
|
515
|
-
const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await
|
|
516
|
+
const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await Vl({ domElement: te.value, base64: !0, img: !0, scale: l });
|
|
516
517
|
return {
|
|
517
518
|
imageUri: a,
|
|
518
519
|
base64: u,
|
|
@@ -522,13 +523,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
522
523
|
aspectRatio: o
|
|
523
524
|
};
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
+
function ll(l) {
|
|
526
527
|
ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = A.value.y.length - 2 - l);
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function al(l) {
|
|
529
530
|
me.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (ge.value = l);
|
|
530
531
|
}
|
|
531
|
-
function
|
|
532
|
+
function qe() {
|
|
532
533
|
ge.value = null, me.value = null;
|
|
533
534
|
}
|
|
534
535
|
const Ct = {
|
|
@@ -540,7 +541,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
540
541
|
pentagon: 1.3,
|
|
541
542
|
hexagon: 1.3
|
|
542
543
|
}, k = (l) => l.toFixed(3);
|
|
543
|
-
function
|
|
544
|
+
function ol({ shape: l = "circle", cx: s, cy: t, r: o }) {
|
|
544
545
|
if (!e.value.usePerformanceMode) return "";
|
|
545
546
|
const a = Ct[l] * o;
|
|
546
547
|
switch (l) {
|
|
@@ -597,37 +598,37 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
597
598
|
}
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
|
-
const
|
|
601
|
+
const sl = T(() => {
|
|
601
602
|
if (!e.value.usePerformanceMode) return [""];
|
|
602
603
|
const { left: l, right: s, top: t, bottom: o } = n.value, a = Math.max(1, (s - l) * (o - t)), u = (d) => d / a * 1e4, i = 2.5, p = 1e3, v = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
|
|
603
|
-
return
|
|
604
|
+
return j.value.map((d) => {
|
|
604
605
|
const $ = [];
|
|
605
606
|
for (const C of d.plots) {
|
|
606
|
-
const
|
|
607
|
-
if (
|
|
607
|
+
const z = C.x, I = C.y;
|
|
608
|
+
if (z < l || z > s || I < t || I > o) continue;
|
|
608
609
|
const B = Math.max(e.value.style.layout.plots.radius, C.weight);
|
|
609
|
-
$.push(
|
|
610
|
+
$.push(ol({
|
|
610
611
|
shape: d.shape || "circle",
|
|
611
|
-
cx:
|
|
612
|
+
cx: z,
|
|
612
613
|
cy: I,
|
|
613
614
|
r: B
|
|
614
615
|
}));
|
|
615
616
|
}
|
|
616
617
|
if (!$.length) return null;
|
|
617
|
-
const
|
|
618
|
+
const O = u(d.plots.length) > i || d.plots.length > p;
|
|
618
619
|
return {
|
|
619
620
|
id: d.id,
|
|
620
621
|
d: $.join(""),
|
|
621
|
-
fill:
|
|
622
|
-
stroke:
|
|
623
|
-
strokeWidth:
|
|
622
|
+
fill: ze(d.color, L * 100),
|
|
623
|
+
stroke: O ? "none" : v,
|
|
624
|
+
strokeWidth: O ? 0 : g,
|
|
624
625
|
strokeOpacity: 1
|
|
625
626
|
};
|
|
626
627
|
}).filter(Boolean);
|
|
627
628
|
});
|
|
628
|
-
function
|
|
629
|
+
function nl() {
|
|
629
630
|
return e.value.usePerformanceMode ? (l) => {
|
|
630
|
-
const s =
|
|
631
|
+
const s = Me.value;
|
|
631
632
|
if (!s) return;
|
|
632
633
|
const t = s.createSVGPoint();
|
|
633
634
|
t.x = l.clientX, t.y = l.clientY;
|
|
@@ -635,37 +636,37 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
635
636
|
if (!o) return;
|
|
636
637
|
const a = o.inverse(), u = t.matrixTransform(a), i = 8, p = i * i;
|
|
637
638
|
let v = null, g = 1 / 0, L = -1;
|
|
638
|
-
if (
|
|
639
|
-
d.plots.forEach((
|
|
640
|
-
const C =
|
|
641
|
-
I <= p && I < g && (g = I, v =
|
|
639
|
+
if (j.value.forEach((d, $) => {
|
|
640
|
+
d.plots.forEach((O) => {
|
|
641
|
+
const C = O.x - u.x, z = O.y - u.y, I = C * C + z * z;
|
|
642
|
+
I <= p && I < g && (g = I, v = O, L = $);
|
|
642
643
|
});
|
|
643
644
|
}), v)
|
|
644
|
-
Y.value !== v.id && (Y.value = v.id,
|
|
645
|
+
Y.value !== v.id && (Y.value = v.id, Ue(v, L));
|
|
645
646
|
else if (Y.value) {
|
|
646
647
|
const d = f.value;
|
|
647
|
-
Y.value = void 0,
|
|
648
|
+
Y.value = void 0, Ae(d, L);
|
|
648
649
|
}
|
|
649
650
|
} : () => null;
|
|
650
651
|
}
|
|
651
|
-
const At =
|
|
652
|
-
function
|
|
652
|
+
const At = nl();
|
|
653
|
+
function ul() {
|
|
653
654
|
if (Y.value) {
|
|
654
655
|
const l = f.value;
|
|
655
|
-
Y.value = void 0,
|
|
656
|
+
Y.value = void 0, Ae(l, null);
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function il(l) {
|
|
659
660
|
const s = f.value;
|
|
660
661
|
if (s) {
|
|
661
|
-
const t =
|
|
662
|
-
|
|
662
|
+
const t = j.value.findIndex((o) => o.id === s.clusterId);
|
|
663
|
+
je(s, t >= 0 ? t : 0);
|
|
663
664
|
}
|
|
664
665
|
}
|
|
665
|
-
const be =
|
|
666
|
+
const be = T(() => {
|
|
666
667
|
const l = e.value.table.useDialog && !e.value.table.show, s = H.value.showTable;
|
|
667
668
|
return {
|
|
668
|
-
component: l ?
|
|
669
|
+
component: l ? Vt : Xt,
|
|
669
670
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
670
671
|
props: l ? {
|
|
671
672
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -692,40 +693,55 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
692
693
|
}
|
|
693
694
|
};
|
|
694
695
|
});
|
|
695
|
-
|
|
696
|
+
Te(() => H.value.showTable, (l) => {
|
|
696
697
|
e.value.table.show || (l && e.value.table.useDialog && xe.value ? xe.value.open() : "close" in xe.value && xe.value.close());
|
|
697
698
|
});
|
|
698
699
|
function St() {
|
|
699
|
-
H.value.showTable = !1,
|
|
700
|
+
H.value.showTable = !1, De.value && De.value.setTableIconState(!1);
|
|
700
701
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
702
|
+
const rl = T(() => e.value.style.backgroundColor), vl = T(() => e.value.style.legend), yl = T(() => e.value.style.title), { exportSvg: cl, getSvg: dl } = Il({
|
|
703
|
+
svg: Me,
|
|
704
|
+
title: yl,
|
|
705
|
+
legend: vl,
|
|
706
|
+
legendItems: oe,
|
|
707
|
+
backgroundColor: rl
|
|
708
|
+
});
|
|
709
|
+
async function Lt({ isCb: l }) {
|
|
710
|
+
if (l) {
|
|
711
|
+
const { blob: s, url: t, text: o, dataUrl: a } = await dl();
|
|
712
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: t, text: o, dataUrl: a });
|
|
713
|
+
} else
|
|
714
|
+
cl();
|
|
715
|
+
}
|
|
716
|
+
return Wt({
|
|
717
|
+
getData: Qt,
|
|
718
|
+
getImage: tl,
|
|
704
719
|
generatePdf: gt,
|
|
705
720
|
generateCsv: Ve,
|
|
706
721
|
generateImage: mt,
|
|
722
|
+
generateSvg: Lt,
|
|
707
723
|
toggleTable: $t,
|
|
708
724
|
toggleTooltip: Mt,
|
|
709
|
-
toggleAnnotator:
|
|
725
|
+
toggleAnnotator: Ge,
|
|
710
726
|
toggleFullscreen: _t
|
|
711
727
|
}), (l, s) => (r(), y("div", {
|
|
712
|
-
class:
|
|
728
|
+
class: Tt(`vue-data-ui-component vue-ui-scatter ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
713
729
|
ref_key: "scatterChart",
|
|
714
730
|
ref: te,
|
|
715
731
|
id: `vue-ui-scatter_${W.value}`,
|
|
716
|
-
style:
|
|
732
|
+
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
717
733
|
onMouseenter: s[5] || (s[5] = () => c(yt)(!0)),
|
|
718
734
|
onMouseleave: s[6] || (s[6] = () => c(yt)(!1))
|
|
719
735
|
}, [
|
|
720
|
-
e.value.userOptions.buttons.annotator ? (r(), le(c(
|
|
736
|
+
e.value.userOptions.buttons.annotator ? (r(), le(c(Rt), {
|
|
721
737
|
key: 0,
|
|
722
|
-
svgRef: c(
|
|
738
|
+
svgRef: c(Me),
|
|
723
739
|
backgroundColor: e.value.style.backgroundColor,
|
|
724
740
|
color: e.value.style.color,
|
|
725
|
-
active:
|
|
726
|
-
onClose:
|
|
741
|
+
active: Le.value,
|
|
742
|
+
onClose: Ge
|
|
727
743
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
728
|
-
|
|
744
|
+
Jt.value ? (r(), y("div", {
|
|
729
745
|
key: 1,
|
|
730
746
|
ref_key: "noTitle",
|
|
731
747
|
ref: st,
|
|
@@ -738,7 +754,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
738
754
|
ref: lt,
|
|
739
755
|
style: "width:100%;background:transparent"
|
|
740
756
|
}, [
|
|
741
|
-
(r(), le(
|
|
757
|
+
(r(), le(jl, {
|
|
742
758
|
key: `title_${nt.value}`,
|
|
743
759
|
config: {
|
|
744
760
|
title: {
|
|
@@ -754,10 +770,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
754
770
|
], 512)) : x("", !0),
|
|
755
771
|
w("div", {
|
|
756
772
|
id: `legend-top-${W.value}`
|
|
757
|
-
}, null, 8,
|
|
758
|
-
e.value.userOptions.show && et.value && (c(ct) || c(
|
|
773
|
+
}, null, 8, Hl),
|
|
774
|
+
e.value.userOptions.show && et.value && (c(ct) || c(Ie)) ? (r(), le(c(Ut), {
|
|
759
775
|
ref_key: "userOptionsRef",
|
|
760
|
-
ref:
|
|
776
|
+
ref: De,
|
|
761
777
|
key: `user_options_${tt.value}`,
|
|
762
778
|
backgroundColor: e.value.style.backgroundColor,
|
|
763
779
|
color: e.value.style.color,
|
|
@@ -767,6 +783,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
767
783
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
768
784
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
769
785
|
hasImg: e.value.userOptions.buttons.img,
|
|
786
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
770
787
|
hasXls: e.value.userOptions.buttons.csv,
|
|
771
788
|
hasTable: e.value.userOptions.buttons.table,
|
|
772
789
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -776,7 +793,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
776
793
|
chartElement: te.value,
|
|
777
794
|
position: e.value.userOptions.position,
|
|
778
795
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
779
|
-
isAnnotation:
|
|
796
|
+
isAnnotation: Le.value,
|
|
780
797
|
callbacks: e.value.userOptions.callbacks,
|
|
781
798
|
printScale: e.value.userOptions.print.scale,
|
|
782
799
|
tableDialog: e.value.table.useDialog,
|
|
@@ -784,113 +801,114 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
784
801
|
onGeneratePdf: c(gt),
|
|
785
802
|
onGenerateCsv: Ve,
|
|
786
803
|
onGenerateImage: c(mt),
|
|
804
|
+
onGenerateSvg: Lt,
|
|
787
805
|
onToggleTable: $t,
|
|
788
806
|
onToggleTooltip: Mt,
|
|
789
|
-
onToggleAnnotator:
|
|
790
|
-
style:
|
|
791
|
-
visibility: c(ct) ? c(
|
|
807
|
+
onToggleAnnotator: Ge,
|
|
808
|
+
style: ue({
|
|
809
|
+
visibility: c(ct) ? c(Ie) ? "visible" : "hidden" : "visible"
|
|
792
810
|
})
|
|
793
|
-
},
|
|
811
|
+
}, zt({ _: 2 }, [
|
|
794
812
|
l.$slots.menuIcon ? {
|
|
795
813
|
name: "menuIcon",
|
|
796
814
|
fn: X(({ isOpen: t, color: o }) => [
|
|
797
|
-
|
|
815
|
+
U(l.$slots, "menuIcon", pe(fe({ isOpen: t, color: o })), void 0, !0)
|
|
798
816
|
]),
|
|
799
817
|
key: "0"
|
|
800
818
|
} : void 0,
|
|
801
819
|
l.$slots.optionTooltip ? {
|
|
802
820
|
name: "optionTooltip",
|
|
803
821
|
fn: X(() => [
|
|
804
|
-
|
|
822
|
+
U(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
805
823
|
]),
|
|
806
824
|
key: "1"
|
|
807
825
|
} : void 0,
|
|
808
826
|
l.$slots.optionPdf ? {
|
|
809
827
|
name: "optionPdf",
|
|
810
828
|
fn: X(() => [
|
|
811
|
-
|
|
829
|
+
U(l.$slots, "optionPdf", {}, void 0, !0)
|
|
812
830
|
]),
|
|
813
831
|
key: "2"
|
|
814
832
|
} : void 0,
|
|
815
833
|
l.$slots.optionCsv ? {
|
|
816
834
|
name: "optionCsv",
|
|
817
835
|
fn: X(() => [
|
|
818
|
-
|
|
836
|
+
U(l.$slots, "optionCsv", {}, void 0, !0)
|
|
819
837
|
]),
|
|
820
838
|
key: "3"
|
|
821
839
|
} : void 0,
|
|
822
840
|
l.$slots.optionImg ? {
|
|
823
841
|
name: "optionImg",
|
|
824
842
|
fn: X(() => [
|
|
825
|
-
|
|
843
|
+
U(l.$slots, "optionImg", {}, void 0, !0)
|
|
826
844
|
]),
|
|
827
845
|
key: "4"
|
|
828
846
|
} : void 0,
|
|
829
847
|
l.$slots.optionTable ? {
|
|
830
848
|
name: "optionTable",
|
|
831
849
|
fn: X(() => [
|
|
832
|
-
|
|
850
|
+
U(l.$slots, "optionTable", {}, void 0, !0)
|
|
833
851
|
]),
|
|
834
852
|
key: "5"
|
|
835
853
|
} : void 0,
|
|
836
854
|
l.$slots.optionFullscreen ? {
|
|
837
855
|
name: "optionFullscreen",
|
|
838
856
|
fn: X(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
839
|
-
|
|
857
|
+
U(l.$slots, "optionFullscreen", pe(fe({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
840
858
|
]),
|
|
841
859
|
key: "6"
|
|
842
860
|
} : void 0,
|
|
843
861
|
l.$slots.optionAnnotator ? {
|
|
844
862
|
name: "optionAnnotator",
|
|
845
863
|
fn: X(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
846
|
-
|
|
864
|
+
U(l.$slots, "optionAnnotator", pe(fe({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
847
865
|
]),
|
|
848
866
|
key: "7"
|
|
849
867
|
} : void 0
|
|
850
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
868
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
851
869
|
(r(), y("svg", {
|
|
852
870
|
ref_key: "svgRef",
|
|
853
|
-
ref:
|
|
854
|
-
xmlns: c(
|
|
855
|
-
class:
|
|
856
|
-
viewBox: `0 0 ${
|
|
857
|
-
style:
|
|
858
|
-
onMouseleave:
|
|
871
|
+
ref: Me,
|
|
872
|
+
xmlns: c(Sl),
|
|
873
|
+
class: Tt({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
874
|
+
viewBox: `0 0 ${E.value.width <= 0 ? 10 : E.value.width} ${E.value.height <= 0 ? 10 : E.value.height}`,
|
|
875
|
+
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
876
|
+
onMouseleave: qe
|
|
859
877
|
}, [
|
|
860
878
|
$e(c(jt)),
|
|
861
879
|
l.$slots["chart-background"] ? (r(), y("foreignObject", {
|
|
862
880
|
key: 0,
|
|
863
881
|
x: 0,
|
|
864
882
|
y: 0,
|
|
865
|
-
width:
|
|
866
|
-
height:
|
|
883
|
+
width: E.value.width <= 0 ? 10 : E.value.width,
|
|
884
|
+
height: E.value.height <= 0 ? 10 : E.value.height,
|
|
867
885
|
style: {
|
|
868
886
|
pointerEvents: "none"
|
|
869
887
|
}
|
|
870
888
|
}, [
|
|
871
|
-
|
|
872
|
-
], 8,
|
|
873
|
-
e.value.style.layout.axis.show ? (r(), y("g",
|
|
889
|
+
U(l.$slots, "chart-background", {}, void 0, !0)
|
|
890
|
+
], 8, Jl)) : x("", !0),
|
|
891
|
+
e.value.style.layout.axis.show ? (r(), y("g", Kl, [
|
|
874
892
|
w("line", {
|
|
875
|
-
x1:
|
|
876
|
-
x2:
|
|
893
|
+
x1: F.value.x,
|
|
894
|
+
x2: F.value.x,
|
|
877
895
|
y1: n.value.top,
|
|
878
896
|
y2: n.value.bottom,
|
|
879
897
|
stroke: e.value.style.layout.axis.stroke,
|
|
880
898
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
881
899
|
"stroke-linecap": "round"
|
|
882
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, Ql),
|
|
883
901
|
w("line", {
|
|
884
902
|
x1: n.value.left,
|
|
885
903
|
x2: n.value.right,
|
|
886
|
-
y1:
|
|
887
|
-
y2:
|
|
904
|
+
y1: F.value.y,
|
|
905
|
+
y2: F.value.y,
|
|
888
906
|
stroke: e.value.style.layout.axis.stroke,
|
|
889
907
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
890
908
|
"stroke-linecap": "round"
|
|
891
|
-
}, null, 8,
|
|
909
|
+
}, null, 8, ea)
|
|
892
910
|
])) : x("", !0),
|
|
893
|
-
e.value.style.layout.marginalBars.show ? (r(), y("g",
|
|
911
|
+
e.value.style.layout.marginalBars.show ? (r(), y("g", ta, [
|
|
894
912
|
w("defs", null, [
|
|
895
913
|
w("linearGradient", {
|
|
896
914
|
id: `marginal_x_${W.value}`,
|
|
@@ -902,12 +920,12 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
902
920
|
w("stop", {
|
|
903
921
|
offset: "0%",
|
|
904
922
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
905
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, aa),
|
|
906
924
|
w("stop", {
|
|
907
925
|
offset: "100%",
|
|
908
926
|
"stop-color": e.value.style.backgroundColor
|
|
909
|
-
}, null, 8,
|
|
910
|
-
], 8,
|
|
927
|
+
}, null, 8, oa)
|
|
928
|
+
], 8, la),
|
|
911
929
|
w("linearGradient", {
|
|
912
930
|
id: `marginal_y_${W.value}`,
|
|
913
931
|
x1: "0%",
|
|
@@ -918,12 +936,12 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
918
936
|
w("stop", {
|
|
919
937
|
offset: "0%",
|
|
920
938
|
"stop-color": e.value.style.backgroundColor
|
|
921
|
-
}, null, 8,
|
|
939
|
+
}, null, 8, na),
|
|
922
940
|
w("stop", {
|
|
923
941
|
offset: "100%",
|
|
924
942
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
925
|
-
}, null, 8,
|
|
926
|
-
], 8,
|
|
943
|
+
}, null, 8, ua)
|
|
944
|
+
], 8, sa)
|
|
927
945
|
]),
|
|
928
946
|
(r(!0), y(Z, null, K(A.value.x, (t, o) => (r(), y("g", null, [
|
|
929
947
|
t && A.value.avgX[o] ? (r(), y("rect", {
|
|
@@ -933,11 +951,11 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
933
951
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
934
952
|
height: t / A.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxX * e.value.style.layout.marginalBars.size,
|
|
935
953
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${W.value})` : e.value.style.layout.marginalBars.fill,
|
|
936
|
-
style:
|
|
954
|
+
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
937
955
|
stroke: e.value.style.backgroundColor,
|
|
938
956
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
939
957
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
940
|
-
}, null, 12,
|
|
958
|
+
}, null, 12, ia)) : x("", !0),
|
|
941
959
|
A.value.avgX[o] ? (r(), y("rect", {
|
|
942
960
|
key: 1,
|
|
943
961
|
x: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
@@ -945,10 +963,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
945
963
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
946
964
|
height: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
947
965
|
fill: "transparent",
|
|
948
|
-
onMouseenter: (a) =>
|
|
949
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
950
|
-
}, null, 40,
|
|
951
|
-
A.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g",
|
|
966
|
+
onMouseenter: (a) => ll(o),
|
|
967
|
+
onMouseleave: s[0] || (s[0] = (a) => qe())
|
|
968
|
+
}, null, 40, ra)) : x("", !0),
|
|
969
|
+
A.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g", va, [
|
|
952
970
|
w("rect", {
|
|
953
971
|
x: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
954
972
|
y: n.value.top,
|
|
@@ -956,7 +974,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
956
974
|
height: n.value.height,
|
|
957
975
|
fill: e.value.style.layout.marginalBars.highlighter.color,
|
|
958
976
|
"fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
|
|
959
|
-
}, null, 8,
|
|
977
|
+
}, null, 8, ya),
|
|
960
978
|
w("line", {
|
|
961
979
|
x1: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
962
980
|
x2: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
@@ -966,7 +984,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
966
984
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
967
985
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
968
986
|
style: { transition: "none !important", animation: "none !important" }
|
|
969
|
-
}, null, 8,
|
|
987
|
+
}, null, 8, ca),
|
|
970
988
|
w("line", {
|
|
971
989
|
x1: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
972
990
|
x2: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
@@ -976,7 +994,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
976
994
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
977
995
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
978
996
|
style: { transition: "none !important", animation: "none !important" }
|
|
979
|
-
}, null, 8,
|
|
997
|
+
}, null, 8, da)
|
|
980
998
|
])) : x("", !0)
|
|
981
999
|
]))), 256)),
|
|
982
1000
|
(r(!0), y(Z, null, K(A.value.y, (t, o) => (r(), y("g", null, [
|
|
@@ -987,11 +1005,11 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
987
1005
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
988
1006
|
width: t / A.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxY * e.value.style.layout.marginalBars.size,
|
|
989
1007
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${W.value})` : e.value.style.layout.marginalBars.fill,
|
|
990
|
-
style:
|
|
1008
|
+
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
991
1009
|
stroke: e.value.style.backgroundColor,
|
|
992
1010
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
993
1011
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
994
|
-
}, null, 12,
|
|
1012
|
+
}, null, 12, ha)) : x("", !0),
|
|
995
1013
|
A.value.avgY[o] ? (r(), y("rect", {
|
|
996
1014
|
key: 1,
|
|
997
1015
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
@@ -999,10 +1017,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
999
1017
|
width: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
1000
1018
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
1001
1019
|
fill: "transparent",
|
|
1002
|
-
onMouseenter: (a) =>
|
|
1003
|
-
onMouseleave: s[1] || (s[1] = (a) =>
|
|
1004
|
-
}, null, 40,
|
|
1005
|
-
A.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g",
|
|
1020
|
+
onMouseenter: (a) => al(o),
|
|
1021
|
+
onMouseleave: s[1] || (s[1] = (a) => qe())
|
|
1022
|
+
}, null, 40, pa)) : x("", !0),
|
|
1023
|
+
A.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g", fa, [
|
|
1006
1024
|
w("rect", {
|
|
1007
1025
|
x: n.value.left,
|
|
1008
1026
|
y: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
@@ -1010,31 +1028,31 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1010
1028
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
1011
1029
|
fill: e.value.style.layout.marginalBars.highlighter.color,
|
|
1012
1030
|
"fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
|
|
1013
|
-
}, null, 8,
|
|
1031
|
+
}, null, 8, ga),
|
|
1014
1032
|
w("line", {
|
|
1015
1033
|
x1: n.value.left,
|
|
1016
|
-
x2:
|
|
1034
|
+
x2: E.value.width,
|
|
1017
1035
|
y1: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
1018
1036
|
y2: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
1019
1037
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
1020
1038
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1021
1039
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1022
1040
|
style: { transition: "none !important", animation: "none !important" }
|
|
1023
|
-
}, null, 8,
|
|
1041
|
+
}, null, 8, ma),
|
|
1024
1042
|
w("line", {
|
|
1025
1043
|
x1: n.value.left,
|
|
1026
|
-
x2:
|
|
1044
|
+
x2: E.value.width,
|
|
1027
1045
|
y1: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1028
1046
|
y2: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1029
1047
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
1030
1048
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1031
1049
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1032
1050
|
style: { transition: "none !important", animation: "none !important" }
|
|
1033
|
-
}, null, 8,
|
|
1051
|
+
}, null, 8, xa)
|
|
1034
1052
|
])) : x("", !0)
|
|
1035
1053
|
]))), 256)),
|
|
1036
|
-
e.value.style.layout.marginalBars.showLines ? (r(), y("g",
|
|
1037
|
-
(r(!0), y(Z, null, K(
|
|
1054
|
+
e.value.style.layout.marginalBars.showLines ? (r(), y("g", ba, [
|
|
1055
|
+
(r(!0), y(Z, null, K(el.value, (t) => (r(), y(Z, null, [
|
|
1038
1056
|
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1039
1057
|
key: 0,
|
|
1040
1058
|
d: `M ${t.dX}`,
|
|
@@ -1043,7 +1061,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1043
1061
|
"stroke-linecap": "round",
|
|
1044
1062
|
"stroke-linejoin": "round",
|
|
1045
1063
|
fill: "none"
|
|
1046
|
-
}, null, 8,
|
|
1064
|
+
}, null, 8, ka)),
|
|
1047
1065
|
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1048
1066
|
key: 1,
|
|
1049
1067
|
d: `M ${t.dX}`,
|
|
@@ -1052,7 +1070,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1052
1070
|
"stroke-linecap": "round",
|
|
1053
1071
|
"stroke-linejoin": "round",
|
|
1054
1072
|
fill: "none"
|
|
1055
|
-
}, null, 8,
|
|
1073
|
+
}, null, 8, wa)),
|
|
1056
1074
|
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1057
1075
|
key: 2,
|
|
1058
1076
|
d: `M ${t.dY}`,
|
|
@@ -1061,7 +1079,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1061
1079
|
"stroke-linecap": "round",
|
|
1062
1080
|
"stroke-linejoin": "round",
|
|
1063
1081
|
fill: "none"
|
|
1064
|
-
}, null, 8,
|
|
1082
|
+
}, null, 8, _a)),
|
|
1065
1083
|
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1066
1084
|
key: 3,
|
|
1067
1085
|
d: `M ${t.dY}`,
|
|
@@ -1070,50 +1088,50 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1070
1088
|
"stroke-linecap": "round",
|
|
1071
1089
|
"stroke-linejoin": "round",
|
|
1072
1090
|
fill: "none"
|
|
1073
|
-
}, null, 8,
|
|
1091
|
+
}, null, 8, $a))
|
|
1074
1092
|
], 64))), 256))
|
|
1075
1093
|
])) : x("", !0)
|
|
1076
1094
|
])) : x("", !0),
|
|
1077
|
-
e.value.style.layout.plots.giftWrap.show ? (r(), y("g",
|
|
1078
|
-
(r(!0), y(Z, null, K(
|
|
1095
|
+
e.value.style.layout.plots.giftWrap.show ? (r(), y("g", Ma, [
|
|
1096
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1079
1097
|
t.plots.length > 2 ? (r(), y("polygon", {
|
|
1080
1098
|
key: 0,
|
|
1081
|
-
points: c(
|
|
1082
|
-
fill: c(
|
|
1099
|
+
points: c(Ll)({ series: t.plots }),
|
|
1100
|
+
fill: c(ze)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
1083
1101
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
1084
1102
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
1085
1103
|
stroke: t.color,
|
|
1086
1104
|
"stroke-linejoin": "round",
|
|
1087
1105
|
"stroke-linecap": "round"
|
|
1088
|
-
}, null, 8,
|
|
1106
|
+
}, null, 8, Ca)) : x("", !0)
|
|
1089
1107
|
]))), 256))
|
|
1090
1108
|
])) : x("", !0),
|
|
1091
|
-
e.value.usePerformanceMode ? x("", !0) : (r(!0), y(Z, { key: 4 }, K(
|
|
1092
|
-
!t.shape || t.shape === "circle" ? (r(), y("g",
|
|
1109
|
+
e.value.usePerformanceMode ? x("", !0) : (r(!0), y(Z, { key: 4 }, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1110
|
+
!t.shape || t.shape === "circle" ? (r(), y("g", Aa, [
|
|
1093
1111
|
(r(!0), y(Z, null, K(t.plots, (a, u) => (r(), y("circle", {
|
|
1094
1112
|
cx: a.x,
|
|
1095
1113
|
cy: a.y,
|
|
1096
1114
|
r: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1097
|
-
fill: c(
|
|
1115
|
+
fill: c(ze)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1098
1116
|
stroke: e.value.style.layout.plots.stroke,
|
|
1099
1117
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
1100
|
-
style:
|
|
1101
|
-
onMouseover: (i) =>
|
|
1102
|
-
onMouseleave: (i) =>
|
|
1103
|
-
onClick: (i) =>
|
|
1104
|
-
}, null, 44,
|
|
1105
|
-
])) : (r(), y("g",
|
|
1118
|
+
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1119
|
+
onMouseover: (i) => Ue(a, o),
|
|
1120
|
+
onMouseleave: (i) => Ae(a, o),
|
|
1121
|
+
onClick: (i) => je(a, o)
|
|
1122
|
+
}, null, 44, Sa))), 256))
|
|
1123
|
+
])) : (r(), y("g", La, [
|
|
1106
1124
|
(r(!0), y(Z, null, K(t.plots, (a, u) => (r(), le(Qe, {
|
|
1107
1125
|
plot: { x: a.x, y: a.y },
|
|
1108
1126
|
radius: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1109
1127
|
shape: t.shape,
|
|
1110
|
-
color: c(
|
|
1128
|
+
color: c(ze)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1111
1129
|
stroke: e.value.style.layout.plots.stroke,
|
|
1112
1130
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
1113
|
-
style:
|
|
1114
|
-
onMouseover: (i) =>
|
|
1115
|
-
onMouseleave: (i) =>
|
|
1116
|
-
onClick: (i) =>
|
|
1131
|
+
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1132
|
+
onMouseover: (i) => Ue(a, o),
|
|
1133
|
+
onMouseleave: (i) => Ae(a, o),
|
|
1134
|
+
onClick: (i) => je(a, o)
|
|
1117
1135
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
1118
1136
|
]))
|
|
1119
1137
|
]))), 256)),
|
|
@@ -1121,7 +1139,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1121
1139
|
w("g", {
|
|
1122
1140
|
"clip-path": `url(#clip_path_${W.value})`
|
|
1123
1141
|
}, [
|
|
1124
|
-
(r(!0), y(Z, null, K(
|
|
1142
|
+
(r(!0), y(Z, null, K(sl.value, (t) => (r(), y("path", {
|
|
1125
1143
|
key: t.id,
|
|
1126
1144
|
d: t.d,
|
|
1127
1145
|
fill: t.fill,
|
|
@@ -1130,9 +1148,9 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1130
1148
|
"stroke-opacity": t.strokeOpacity,
|
|
1131
1149
|
"vector-effect": "non-scaling-stroke",
|
|
1132
1150
|
"paint-order": "fill"
|
|
1133
|
-
}, null, 8,
|
|
1134
|
-
], 8,
|
|
1135
|
-
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g",
|
|
1151
|
+
}, null, 8, Ta))), 128))
|
|
1152
|
+
], 8, Ba),
|
|
1153
|
+
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", za, [
|
|
1136
1154
|
$e(Qe, {
|
|
1137
1155
|
shape: f.value.shape || "circle",
|
|
1138
1156
|
color: f.value.color,
|
|
@@ -1149,13 +1167,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1149
1167
|
height: Math.max(1e-4, n.value.height),
|
|
1150
1168
|
fill: "transparent",
|
|
1151
1169
|
onMousemove: s[2] || (s[2] = (...t) => c(At) && c(At)(...t)),
|
|
1152
|
-
onMouseleave:
|
|
1153
|
-
onClick:
|
|
1154
|
-
}, null, 40,
|
|
1170
|
+
onMouseleave: ul,
|
|
1171
|
+
onClick: il
|
|
1172
|
+
}, null, 40, Pa)
|
|
1155
1173
|
], 64)) : x("", !0),
|
|
1156
|
-
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g",
|
|
1174
|
+
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Oa, [
|
|
1157
1175
|
w("line", {
|
|
1158
|
-
x1:
|
|
1176
|
+
x1: F.value.x,
|
|
1159
1177
|
x2: f.value.x,
|
|
1160
1178
|
y1: f.value.y,
|
|
1161
1179
|
y2: f.value.y,
|
|
@@ -1164,86 +1182,86 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1164
1182
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
1165
1183
|
"stroke-linecap": "round",
|
|
1166
1184
|
class: "line-pointer"
|
|
1167
|
-
}, null, 8,
|
|
1185
|
+
}, null, 8, Da),
|
|
1168
1186
|
w("line", {
|
|
1169
1187
|
x1: f.value.x,
|
|
1170
1188
|
x2: f.value.x,
|
|
1171
|
-
y1:
|
|
1189
|
+
y1: F.value.y,
|
|
1172
1190
|
y2: f.value.y,
|
|
1173
1191
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1174
1192
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
1175
1193
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
1176
1194
|
"stroke-linecap": "round",
|
|
1177
1195
|
class: "line-pointer"
|
|
1178
|
-
}, null, 8,
|
|
1196
|
+
}, null, 8, Ea),
|
|
1179
1197
|
w("text", {
|
|
1180
|
-
x:
|
|
1198
|
+
x: F.value.x + (f.value.x > F.value.x ? -6 : 6),
|
|
1181
1199
|
y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
1182
1200
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1183
1201
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1184
1202
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1185
|
-
"text-anchor": f.value.x >
|
|
1186
|
-
},
|
|
1203
|
+
"text-anchor": f.value.x > F.value.x ? "end" : "start"
|
|
1204
|
+
}, G(c(ie)(
|
|
1187
1205
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1188
|
-
c(
|
|
1206
|
+
c(q)(f.value.v.y),
|
|
1189
1207
|
c(Q)({
|
|
1190
1208
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1191
|
-
v: c(
|
|
1209
|
+
v: c(q)(f.value.v.y),
|
|
1192
1210
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1193
1211
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1194
1212
|
}),
|
|
1195
1213
|
{ datapoint: f.value }
|
|
1196
|
-
)), 9,
|
|
1214
|
+
)), 9, Fa),
|
|
1197
1215
|
w("text", {
|
|
1198
1216
|
x: f.value.x,
|
|
1199
|
-
y:
|
|
1217
|
+
y: F.value.y + (f.value.y > F.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
1200
1218
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1201
1219
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1202
1220
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1203
1221
|
"text-anchor": "middle"
|
|
1204
|
-
},
|
|
1222
|
+
}, G(c(ie)(
|
|
1205
1223
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1206
|
-
c(
|
|
1224
|
+
c(q)(f.value.v.x),
|
|
1207
1225
|
c(Q)({
|
|
1208
1226
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1209
|
-
v: c(
|
|
1227
|
+
v: c(q)(f.value.v.x),
|
|
1210
1228
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1211
1229
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1212
1230
|
}),
|
|
1213
1231
|
{ datapoint: f.value }
|
|
1214
|
-
)), 9,
|
|
1232
|
+
)), 9, Wa),
|
|
1215
1233
|
w("circle", {
|
|
1216
|
-
cx:
|
|
1234
|
+
cx: F.value.x,
|
|
1217
1235
|
cy: f.value.y,
|
|
1218
1236
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1219
1237
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1220
1238
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
1221
1239
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
1222
1240
|
class: "line-pointer"
|
|
1223
|
-
}, null, 8,
|
|
1241
|
+
}, null, 8, Na),
|
|
1224
1242
|
w("circle", {
|
|
1225
1243
|
cx: f.value.x,
|
|
1226
|
-
cy:
|
|
1244
|
+
cy: F.value.y,
|
|
1227
1245
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1228
1246
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1229
1247
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
1230
1248
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
1231
1249
|
class: "line-pointer"
|
|
1232
|
-
}, null, 8,
|
|
1250
|
+
}, null, 8, Ia),
|
|
1233
1251
|
e.value.style.layout.plots.selectors.labels.showName ? (r(), y("text", {
|
|
1234
1252
|
key: 0,
|
|
1235
1253
|
x: f.value.x,
|
|
1236
|
-
y: f.value.y + (f.value.y <
|
|
1254
|
+
y: f.value.y + (f.value.y < F.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
1237
1255
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1238
1256
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1239
1257
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1240
|
-
"text-anchor": f.value.x < n.value.left + 100 ? "start" : f.value.x > n.value.right - 100 ? "end" : f.value.x >
|
|
1241
|
-
},
|
|
1258
|
+
"text-anchor": f.value.x < n.value.left + 100 ? "start" : f.value.x > n.value.right - 100 ? "end" : f.value.x > F.value.x ? "start" : "end"
|
|
1259
|
+
}, G(f.value.v.name), 9, Xa)) : x("", !0)
|
|
1242
1260
|
])) : x("", !0),
|
|
1243
1261
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
|
|
1244
1262
|
key: 7,
|
|
1245
1263
|
ref_key: "xAxisLabelLeft",
|
|
1246
|
-
ref:
|
|
1264
|
+
ref: Ee
|
|
1247
1265
|
}, [
|
|
1248
1266
|
w("text", {
|
|
1249
1267
|
id: `vue-ui-scatter-xAxis-label-${W.value}`,
|
|
@@ -1252,89 +1270,89 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1252
1270
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1253
1271
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1254
1272
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1255
|
-
},
|
|
1273
|
+
}, G(e.value.style.layout.dataLabels.xAxis.name), 9, Ya),
|
|
1256
1274
|
w("text", {
|
|
1257
1275
|
"text-anchor": "middle",
|
|
1258
1276
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1259
1277
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1260
|
-
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${
|
|
1261
|
-
},
|
|
1278
|
+
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${F.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
1279
|
+
}, G(c(ie)(
|
|
1262
1280
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1263
|
-
c(
|
|
1281
|
+
c(q)(P.value.xMin),
|
|
1264
1282
|
c(Q)({
|
|
1265
1283
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1266
|
-
v: c(
|
|
1284
|
+
v: c(q)(P.value.xMin),
|
|
1267
1285
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1268
1286
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1269
1287
|
})
|
|
1270
|
-
)), 9,
|
|
1288
|
+
)), 9, Ra)
|
|
1271
1289
|
], 512)) : x("", !0),
|
|
1272
1290
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("text", {
|
|
1273
1291
|
key: 8,
|
|
1274
1292
|
ref_key: "xAxisLabelRight",
|
|
1275
1293
|
ref: qt,
|
|
1276
1294
|
"text-anchor": "middle",
|
|
1277
|
-
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${
|
|
1295
|
+
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${F.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
1278
1296
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1279
1297
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1280
|
-
},
|
|
1298
|
+
}, G(c(ie)(
|
|
1281
1299
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1282
|
-
c(
|
|
1300
|
+
c(q)(P.value.xMax),
|
|
1283
1301
|
c(Q)({
|
|
1284
1302
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1285
|
-
v: c(
|
|
1303
|
+
v: c(q)(P.value.xMax),
|
|
1286
1304
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1287
1305
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1288
1306
|
})
|
|
1289
|
-
)), 9,
|
|
1307
|
+
)), 9, Ua)) : x("", !0),
|
|
1290
1308
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("text", {
|
|
1291
1309
|
key: 9,
|
|
1292
1310
|
ref_key: "yAxisLabelTop",
|
|
1293
|
-
ref:
|
|
1294
|
-
x:
|
|
1311
|
+
ref: Ht,
|
|
1312
|
+
x: F.value.x,
|
|
1295
1313
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1296
1314
|
"text-anchor": "middle",
|
|
1297
1315
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1298
1316
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1299
|
-
},
|
|
1317
|
+
}, G(c(ie)(
|
|
1300
1318
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1301
|
-
c(
|
|
1319
|
+
c(q)(P.value.yMax),
|
|
1302
1320
|
c(Q)({
|
|
1303
1321
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1304
|
-
v: c(
|
|
1322
|
+
v: c(q)(P.value.yMax),
|
|
1305
1323
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1306
1324
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1307
1325
|
})
|
|
1308
|
-
)), 9,
|
|
1326
|
+
)), 9, ja)) : x("", !0),
|
|
1309
1327
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
|
|
1310
1328
|
key: 10,
|
|
1311
1329
|
ref_key: "yAxisLabelBottom",
|
|
1312
|
-
ref:
|
|
1330
|
+
ref: Fe
|
|
1313
1331
|
}, [
|
|
1314
1332
|
w("text", {
|
|
1315
|
-
x:
|
|
1316
|
-
y:
|
|
1333
|
+
x: F.value.x,
|
|
1334
|
+
y: E.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
1317
1335
|
"text-anchor": "middle",
|
|
1318
1336
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1319
1337
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1320
|
-
},
|
|
1338
|
+
}, G(c(ie)(
|
|
1321
1339
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1322
|
-
c(
|
|
1340
|
+
c(q)(P.value.yMin),
|
|
1323
1341
|
c(Q)({
|
|
1324
1342
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1325
|
-
v: c(
|
|
1343
|
+
v: c(q)(P.value.yMin),
|
|
1326
1344
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1327
1345
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1328
1346
|
})
|
|
1329
|
-
)), 9,
|
|
1347
|
+
)), 9, Va),
|
|
1330
1348
|
w("text", {
|
|
1331
1349
|
"text-anchor": "middle",
|
|
1332
1350
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1333
1351
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
1334
1352
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1335
1353
|
x: n.value.left + n.value.width / 2,
|
|
1336
|
-
y:
|
|
1337
|
-
},
|
|
1354
|
+
y: E.value.height
|
|
1355
|
+
}, G(e.value.style.layout.dataLabels.yAxis.name), 9, Ga)
|
|
1338
1356
|
], 512)) : x("", !0),
|
|
1339
1357
|
w("clipPath", {
|
|
1340
1358
|
id: `clip_path_${W.value}`
|
|
@@ -1344,10 +1362,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1344
1362
|
y: n.value.top,
|
|
1345
1363
|
width: n.value.width <= 0 ? 1e-4 : n.value.width,
|
|
1346
1364
|
height: n.value.height <= 0 ? 1e-4 : n.value.height
|
|
1347
|
-
}, null, 8,
|
|
1348
|
-
], 8,
|
|
1349
|
-
e.value.style.layout.correlation.show ? (r(), y("g",
|
|
1350
|
-
(r(!0), y(Z, null, K(
|
|
1365
|
+
}, null, 8, Ha)
|
|
1366
|
+
], 8, qa),
|
|
1367
|
+
e.value.style.layout.correlation.show ? (r(), y("g", Za, [
|
|
1368
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("line", {
|
|
1351
1369
|
x1: t.correlation.x1,
|
|
1352
1370
|
x2: t.correlation.x2,
|
|
1353
1371
|
y1: t.correlation.y1,
|
|
@@ -1356,8 +1374,8 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1356
1374
|
stroke: t.color,
|
|
1357
1375
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1358
1376
|
"clip-path": `url(#clip_path_${W.value})`
|
|
1359
|
-
}, null, 8,
|
|
1360
|
-
(r(!0), y(Z, null, K(
|
|
1377
|
+
}, null, 8, Ja))), 256)),
|
|
1378
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1361
1379
|
e.value.style.layout.correlation.label.show ? (r(), y("text", {
|
|
1362
1380
|
key: 0,
|
|
1363
1381
|
x: t.correlation.x2,
|
|
@@ -1366,21 +1384,21 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1366
1384
|
"text-anchor": "end",
|
|
1367
1385
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
1368
1386
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
1369
|
-
},
|
|
1370
|
-
v: c(
|
|
1387
|
+
}, G(c(Q)({
|
|
1388
|
+
v: c(q)(t.correlation.coefficient),
|
|
1371
1389
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
1372
|
-
})), 9,
|
|
1390
|
+
})), 9, Ka)) : x("", !0)
|
|
1373
1391
|
]))), 256))
|
|
1374
1392
|
])) : x("", !0),
|
|
1375
|
-
|
|
1376
|
-
], 46,
|
|
1377
|
-
l.$slots.watermark ? (r(), y("div",
|
|
1378
|
-
|
|
1393
|
+
U(l.$slots, "svg", { svg: E.value }, void 0, !0)
|
|
1394
|
+
], 46, Zl)),
|
|
1395
|
+
l.$slots.watermark ? (r(), y("div", Qa, [
|
|
1396
|
+
U(l.$slots, "watermark", pe(fe({ isPrinting: c(pt) || c(ft) })), void 0, !0)
|
|
1379
1397
|
])) : x("", !0),
|
|
1380
1398
|
w("div", {
|
|
1381
1399
|
id: `legend-bottom-${W.value}`
|
|
1382
|
-
}, null, 8,
|
|
1383
|
-
rt.value ? (r(), le(
|
|
1400
|
+
}, null, 8, eo),
|
|
1401
|
+
rt.value ? (r(), le(gl, {
|
|
1384
1402
|
key: 5,
|
|
1385
1403
|
to: e.value.style.legend.position === "top" ? `#legend-top-${W.value}` : `#legend-bottom-${W.value}`
|
|
1386
1404
|
}, [
|
|
@@ -1388,22 +1406,22 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1388
1406
|
ref_key: "chartLegend",
|
|
1389
1407
|
ref: at
|
|
1390
1408
|
}, [
|
|
1391
|
-
e.value.style.legend.show ? (r(), le(
|
|
1409
|
+
e.value.style.legend.show ? (r(), le(Ul, {
|
|
1392
1410
|
key: `legend_${it.value}`,
|
|
1393
|
-
legendSet:
|
|
1394
|
-
config:
|
|
1411
|
+
legendSet: oe.value,
|
|
1412
|
+
config: Kt.value,
|
|
1395
1413
|
onClickMarker: s[3] || (s[3] = ({ legend: t }) => wt(t.id))
|
|
1396
1414
|
}, {
|
|
1397
1415
|
item: X(({ legend: t }) => [
|
|
1398
1416
|
w("div", {
|
|
1399
1417
|
onClick: (o) => t.segregate(),
|
|
1400
|
-
style:
|
|
1401
|
-
},
|
|
1418
|
+
style: ue(`opacity:${N.value.includes(t.id) ? 0.5 : 1}`)
|
|
1419
|
+
}, G(t.name), 13, to)
|
|
1402
1420
|
]),
|
|
1403
1421
|
_: 1
|
|
1404
|
-
}, 8, ["legendSet", "config"])) :
|
|
1422
|
+
}, 8, ["legendSet", "config"])) : U(l.$slots, "legend", {
|
|
1405
1423
|
key: 1,
|
|
1406
|
-
legend:
|
|
1424
|
+
legend: oe.value
|
|
1407
1425
|
}, void 0, !0)
|
|
1408
1426
|
], 512)
|
|
1409
1427
|
], 8, ["to"])) : x("", !0),
|
|
@@ -1413,10 +1431,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1413
1431
|
ref: ot,
|
|
1414
1432
|
dir: "auto"
|
|
1415
1433
|
}, [
|
|
1416
|
-
|
|
1434
|
+
U(l.$slots, "source", {}, void 0, !0)
|
|
1417
1435
|
], 512)) : x("", !0),
|
|
1418
|
-
$e(c(
|
|
1419
|
-
show: H.value.showTooltip &&
|
|
1436
|
+
$e(c(Nt), {
|
|
1437
|
+
show: H.value.showTooltip && Pe.value,
|
|
1420
1438
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1421
1439
|
color: e.value.style.tooltip.color,
|
|
1422
1440
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1427,7 +1445,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1427
1445
|
position: e.value.style.tooltip.position,
|
|
1428
1446
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1429
1447
|
parent: te.value,
|
|
1430
|
-
content:
|
|
1448
|
+
content: Oe.value,
|
|
1431
1449
|
isFullscreen: re.value,
|
|
1432
1450
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1433
1451
|
smooth: e.value.style.tooltip.smooth,
|
|
@@ -1436,14 +1454,14 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1436
1454
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1437
1455
|
}, {
|
|
1438
1456
|
"tooltip-before": X(() => [
|
|
1439
|
-
|
|
1457
|
+
U(l.$slots, "tooltip-before", pe(fe({ ...Re.value })), void 0, !0)
|
|
1440
1458
|
]),
|
|
1441
1459
|
"tooltip-after": X(() => [
|
|
1442
|
-
|
|
1460
|
+
U(l.$slots, "tooltip-after", pe(fe({ ...Re.value })), void 0, !0)
|
|
1443
1461
|
]),
|
|
1444
1462
|
default: X(() => [
|
|
1445
|
-
e.value.style.tooltip.showShape ? (r(), y("div",
|
|
1446
|
-
(r(), y("svg",
|
|
1463
|
+
e.value.style.tooltip.showShape ? (r(), y("div", lo, [
|
|
1464
|
+
(r(), y("svg", ao, [
|
|
1447
1465
|
$e(Qe, {
|
|
1448
1466
|
shape: f.value.shape,
|
|
1449
1467
|
color: f.value.color,
|
|
@@ -1455,32 +1473,32 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1455
1473
|
]),
|
|
1456
1474
|
_: 3
|
|
1457
1475
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1458
|
-
et.value && e.value.userOptions.buttons.table ? (r(), le(
|
|
1476
|
+
et.value && e.value.userOptions.buttons.table ? (r(), le(ml(be.value.component), xl({ key: 7 }, be.value.props, {
|
|
1459
1477
|
ref_key: "tableUnit",
|
|
1460
1478
|
ref: xe,
|
|
1461
1479
|
onClose: St
|
|
1462
|
-
}),
|
|
1480
|
+
}), zt({
|
|
1463
1481
|
content: X(() => [
|
|
1464
|
-
(r(), le(c(
|
|
1482
|
+
(r(), le(c(Yt), {
|
|
1465
1483
|
key: `table_${ut.value}`,
|
|
1466
|
-
colNames:
|
|
1467
|
-
head:
|
|
1468
|
-
body:
|
|
1469
|
-
config:
|
|
1484
|
+
colNames: Se.value.colNames,
|
|
1485
|
+
head: Se.value.head,
|
|
1486
|
+
body: Se.value.body,
|
|
1487
|
+
config: Se.value.config,
|
|
1470
1488
|
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1471
1489
|
withCloseButton: !e.value.table.useDialog,
|
|
1472
1490
|
onClose: St
|
|
1473
1491
|
}, {
|
|
1474
1492
|
th: X(({ th: t }) => [
|
|
1475
|
-
|
|
1493
|
+
Pt(G(t), 1)
|
|
1476
1494
|
]),
|
|
1477
1495
|
td: X(({ td: t }) => [
|
|
1478
|
-
t.shape ? (r(), y("div",
|
|
1479
|
-
w("span", null,
|
|
1496
|
+
t.shape ? (r(), y("div", oo, [
|
|
1497
|
+
w("span", null, G(t.content), 1)
|
|
1480
1498
|
])) : (r(), y("div", {
|
|
1481
1499
|
key: 1,
|
|
1482
1500
|
innerHTML: t
|
|
1483
|
-
}, null, 8,
|
|
1501
|
+
}, null, 8, so))
|
|
1484
1502
|
]),
|
|
1485
1503
|
_: 1
|
|
1486
1504
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1490,7 +1508,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1490
1508
|
e.value.table.useDialog ? {
|
|
1491
1509
|
name: "title",
|
|
1492
1510
|
fn: X(() => [
|
|
1493
|
-
|
|
1511
|
+
Pt(G(be.value.title), 1)
|
|
1494
1512
|
]),
|
|
1495
1513
|
key: "0"
|
|
1496
1514
|
} : void 0,
|
|
@@ -1502,7 +1520,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1502
1520
|
class: "vue-ui-user-options-button",
|
|
1503
1521
|
onClick: s[4] || (s[4] = (t) => Ve(e.value.userOptions.callbacks.csv))
|
|
1504
1522
|
}, [
|
|
1505
|
-
$e(c(
|
|
1523
|
+
$e(c(It), {
|
|
1506
1524
|
name: "excel",
|
|
1507
1525
|
stroke: be.value.props.color
|
|
1508
1526
|
}, null, 8, ["stroke"])
|
|
@@ -1511,10 +1529,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1511
1529
|
key: "1"
|
|
1512
1530
|
} : void 0
|
|
1513
1531
|
]), 1040)) : x("", !0),
|
|
1514
|
-
c(vt) ? (r(), le(
|
|
1515
|
-
], 46,
|
|
1532
|
+
c(vt) ? (r(), le(Wl, { key: 8 })) : x("", !0)
|
|
1533
|
+
], 46, ql));
|
|
1516
1534
|
}
|
|
1517
|
-
},
|
|
1535
|
+
}, _o = /* @__PURE__ */ Gl(no, [["__scopeId", "data-v-33f7d698"]]);
|
|
1518
1536
|
export {
|
|
1519
|
-
|
|
1537
|
+
_o as default
|
|
1520
1538
|
};
|