vue-data-ui 3.2.2 → 3.2.4
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-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-x4hg0tYe.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.js} +2 -2
- 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 +5 -0
- 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-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +15 -4
- package/dist/types/vue-ui-annotator.d.ts +14 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-boJG_PFN.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-HrbA4DmH.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CS5384rT.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-DaauvX3a.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DQXu21Mp.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-Bh8Vb6ce.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-BgmAUlUz.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-3NX_jwG_.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-Berb37Aa.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BzU-96mz.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BBQNmH5y.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-BD3_nxd1.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-Ct-YAkFg.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-CVHjWM9l.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-Co79mdnX.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-D-XFEUfD.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-Cx6eQ1nL.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-D2PHxbS3.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-D4KCpMN3.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-Q_Q9g2Es.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-Bxs72uED.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-B5wYN9tI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-pt6KriAc.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-C8jid2_q.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-06wFGFFV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B2dS6aSz.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-CrkR07qv.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-CkAX2pUE.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-eROPsns9.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-AkXpQ6zB.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-DEwCnnwC.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-DzojJVhb.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-Bp8Ao16B.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-DqKebrx9.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BShmZ5Vp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-NX3Z_bFF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-TBxquo5S.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-Bw4jxjxk.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-D8YGkrZ9.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-0Kag52U5.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-CU0tiCsd.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-B4BTGeKs.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-BnqMY5lk.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-Ct3Sr0M1.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-DsAVvm1H.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-DKNpl_8J.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-Jdea_p8r.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-DE42y9ZI.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-CrYeU7zd.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-B4Be4Ol6.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-9QkLvAgs.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DTwfuIIZ.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-BKzt6d8T.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-BGzMXziC.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as Ie, t as Jt, b as Kt, p as ge, o as ea, f as ft, g as ta, e as aa, h as oa, X as la,
|
|
1
|
+
import { useCssVars as Ht, defineAsyncComponent as W, ref as v, shallowRef as rt, toRefs as qt, watch as xe, computed as $, onMounted as ut, onBeforeUnmount as it, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ae, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as ct, createVNode as fe, Fragment as z, renderList as H, mergeProps as vt, toDisplayString as q, Teleport as Qt, resolveDynamicComponent as Zt, createTextVNode as dt, nextTick as ht } from "vue";
|
|
2
|
+
import { c as Ie, t as Jt, b as Kt, p as ge, o as ea, f as ft, g as ta, e as aa, h as oa, X as la, E as na, d as _e, H as sa, ac as ra, x as ua, y as ia, a as ca } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ha, a as gt } from "./useNestedProp-
|
|
4
|
+
import { u as ha, a as gt } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
5
|
import { u as fa, B as ga } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as ba } from "./usePrinter-
|
|
6
|
+
import { u as ba } from "./usePrinter-w23K-ezx.js";
|
|
7
7
|
import { u as pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as ma } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import ya from "./img-
|
|
10
|
-
import { _ as ka } from "./Shape-
|
|
11
|
-
import $a from "./Title-
|
|
9
|
+
import ya from "./img-DjWwQXVS.js";
|
|
10
|
+
import { _ as ka } from "./Shape-C_C_OmqR.js";
|
|
11
|
+
import $a from "./Title-C__lOIPC.js";
|
|
12
12
|
import { t as wa } from "./themes-D3cUNuKw.js";
|
|
13
|
-
import Ca from "./Legend-
|
|
13
|
+
import Ca from "./Legend-BpoFJ8fc.js";
|
|
14
14
|
import { _ as Ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"],
|
|
15
|
+
const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ya = { key: 1 }, Ga = ["font-size", "font-weight", "fill"], Wa = ["href"], Ha = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], qa = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, Qa = ["id"], Za = ["onClick"], Ja = {
|
|
@@ -37,11 +37,11 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
39
39
|
setup(bt, { expose: pt, emit: mt }) {
|
|
40
|
-
|
|
40
|
+
Ht((t) => ({
|
|
41
41
|
v9b041f44: t.slicerColor
|
|
42
42
|
}));
|
|
43
|
-
const yt = W(() => import("./vue-ui-accordion-
|
|
44
|
-
...
|
|
43
|
+
const yt = W(() => import("./vue-ui-accordion-Cv7OaVUI.js")), Pe = W(() => import("./BaseIcon-Bz-1GQhu.js")), kt = W(() => import("./DataTable-BvjacRbw.js")), $t = W(() => import("./PackageVersion-x4hg0tYe.js")), wt = W(() => import("./PenAndPaper-CR8q353D.js")), Ct = W(() => import("./UserOptions-DsTgvAok.js")), Mt = W(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_chord: xt } = ha(), S = bt, ne = mt, E = v(!!S.dataset && Object.hasOwn(S.dataset, "matrix")), k = v(Ie()), C = v(null), p = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Se = v(null), Oe = v(null), Le = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = rt(null), Z = rt(null), De = v(!1), J = v(null), ye = v(null), e = v($e()), { loading: Ee, FINAL_DATASET: M, manualLoading: K } = fa({
|
|
44
|
+
...qt(S),
|
|
45
45
|
FINAL_CONFIG: e,
|
|
46
46
|
prepareConfig: $e,
|
|
47
47
|
callback: () => {
|
|
@@ -174,7 +174,7 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
|
174
174
|
}, 100);
|
|
175
175
|
U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect()), U.value = new ResizeObserver(t), Z.value = O.value.parentNode, U.value.observe(Z.value), t();
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
Ye.value = setTimeout(() => {
|
|
178
178
|
Q.value = !0;
|
|
179
179
|
}, 500);
|
|
180
180
|
}
|
|
@@ -194,7 +194,7 @@ matrix:[
|
|
|
194
194
|
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${M.value.matrix.length})`), E.value = !1);
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const Ye = v(null);
|
|
198
198
|
ut(() => {
|
|
199
199
|
De.value = !0, we();
|
|
200
200
|
});
|
|
@@ -236,20 +236,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
236
236
|
y.sort((D, X) => X.v - D.v);
|
|
237
237
|
let B = f[c].startAngle;
|
|
238
238
|
for (const { j: D, v: X } of y) {
|
|
239
|
-
const
|
|
239
|
+
const G = B, le = G + X * u;
|
|
240
240
|
T.push({
|
|
241
241
|
index: c,
|
|
242
242
|
subIndex: D,
|
|
243
243
|
pattern: `pattern_${k.value}_${c}`,
|
|
244
|
-
startAngle:
|
|
244
|
+
startAngle: G,
|
|
245
245
|
endAngle: le,
|
|
246
246
|
value: X,
|
|
247
247
|
groupName: m.value.labels[c],
|
|
248
248
|
groupId: f[c].id,
|
|
249
249
|
groupColor: m.value.colors[c],
|
|
250
|
-
midAngle: (
|
|
251
|
-
midBaseX: Math.cos((
|
|
252
|
-
midBaseY: Math.sin((
|
|
250
|
+
midAngle: (G + le) / 2,
|
|
251
|
+
midBaseX: Math.cos((G + le) / 2 - Math.PI / 2) * l,
|
|
252
|
+
midBaseY: Math.sin((G + le) / 2 - Math.PI / 2) * l
|
|
253
253
|
}), B = le;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -340,13 +340,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
340
340
|
}
|
|
341
341
|
return t;
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function Ge(t, o, a, l) {
|
|
344
344
|
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, T = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, y = Math.cos(s) * l, B = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
|
|
345
345
|
return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${T} L${N},${c} A${l},${l} 0 ${D} 0 ${y},${B} Z`;
|
|
346
346
|
}
|
|
347
347
|
function se(t, o) {
|
|
348
|
-
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0,
|
|
349
|
-
return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${
|
|
348
|
+
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, G = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
349
|
+
return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${G} 1 ${B},${D}Q0,0 ${f},${P}Z`;
|
|
350
350
|
}
|
|
351
351
|
const We = $(() => _.value * Math.PI / 180);
|
|
352
352
|
function Ot(t) {
|
|
@@ -368,18 +368,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
368
368
|
return `M${n},${u} A${a},${a} 0 ${T} 1 ${f},${P}`;
|
|
369
369
|
}
|
|
370
370
|
const _ = v(e.value.initialRotation), te = v(!1);
|
|
371
|
-
let
|
|
371
|
+
let He = 0, qe = 0;
|
|
372
372
|
function Qe(t) {
|
|
373
373
|
const o = ee.value.getBoundingClientRect(), a = o.left + o.width / 2, l = o.top + o.height / 2, s = t.clientX ?? t.touches[0].clientX, n = t.clientY ?? t.touches[0].clientY;
|
|
374
374
|
return Math.atan2(n - l, s - a);
|
|
375
375
|
}
|
|
376
376
|
function Ze(t) {
|
|
377
|
-
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0,
|
|
377
|
+
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0, He = _.value, qe = Qe(t));
|
|
378
378
|
}
|
|
379
379
|
function re(t) {
|
|
380
380
|
if (!te.value) return;
|
|
381
381
|
const o = Qe(t);
|
|
382
|
-
_.value =
|
|
382
|
+
_.value = He + (o - qe) * 180 / Math.PI;
|
|
383
383
|
}
|
|
384
384
|
function ue() {
|
|
385
385
|
te.value = !1;
|
|
@@ -399,7 +399,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
399
399
|
ut(() => {
|
|
400
400
|
window.addEventListener("mousemove", re), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", re, { passive: !1 }), window.addEventListener("touchend", ue);
|
|
401
401
|
}), it(() => {
|
|
402
|
-
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(
|
|
402
|
+
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(Ye.value), U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect());
|
|
403
403
|
});
|
|
404
404
|
const ie = v(!1);
|
|
405
405
|
function Ke(t) {
|
|
@@ -439,17 +439,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
439
439
|
function jt() {
|
|
440
440
|
return A.value;
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const Y = v(null);
|
|
443
443
|
function ot() {
|
|
444
444
|
const t = e.value.initialRotation;
|
|
445
|
-
|
|
445
|
+
Y.value !== null && cancelAnimationFrame(Y.value);
|
|
446
446
|
const o = () => {
|
|
447
|
-
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t,
|
|
447
|
+
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, Y.value = null) : Y.value = requestAnimationFrame(o);
|
|
448
448
|
};
|
|
449
|
-
|
|
449
|
+
Y.value = requestAnimationFrame(o);
|
|
450
450
|
}
|
|
451
451
|
it(() => {
|
|
452
|
-
|
|
452
|
+
Y.value !== null && cancelAnimationFrame(Y.value);
|
|
453
453
|
});
|
|
454
454
|
function lt(t) {
|
|
455
455
|
t === g.value ? (g.value = null, ne("selectLegend", null)) : (g.value = t, ne("selectLegend", A.value.groups.find((o) => o.id === t)));
|
|
@@ -463,7 +463,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
463
463
|
id: t.id,
|
|
464
464
|
select: () => lt(t.id),
|
|
465
465
|
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
466
|
-
}))),
|
|
466
|
+
}))), Yt = $(() => ({
|
|
467
467
|
cy: "chord-div-legend",
|
|
468
468
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
469
469
|
color: e.value.style.chart.legend.color,
|
|
@@ -516,7 +516,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
516
516
|
t ? t(l) : ia({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
async function
|
|
519
|
+
async function Gt({ scale: t = 2 } = {}) {
|
|
520
520
|
if (!O.value) return;
|
|
521
521
|
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await ya({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
522
522
|
return {
|
|
@@ -574,7 +574,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
574
574
|
}
|
|
575
575
|
return pt({
|
|
576
576
|
getData: jt,
|
|
577
|
-
getImage:
|
|
577
|
+
getImage: Gt,
|
|
578
578
|
generateCsv: Me,
|
|
579
579
|
generateImage: Xe,
|
|
580
580
|
generatePdf: Ue,
|
|
@@ -745,7 +745,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
745
745
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
746
746
|
], 8, _a)) : h("", !0),
|
|
747
747
|
e.value.style.chart.arcs.labels.curved ? (r(), i("defs", Pa, [
|
|
748
|
-
(r(!0), i(z, null,
|
|
748
|
+
(r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("path", {
|
|
749
749
|
key: `labelPath-${l}`,
|
|
750
750
|
id: `labelPath-${l}_${k.value}`,
|
|
751
751
|
d: Nt(
|
|
@@ -757,18 +757,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
757
757
|
}, null, 8, Ta))), 128))
|
|
758
758
|
])) : h("", !0),
|
|
759
759
|
t.$slots.pattern ? (r(), i("g", Ba, [
|
|
760
|
-
(r(!0), i(z, null,
|
|
760
|
+
(r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("defs", null, [
|
|
761
761
|
w(t.$slots, "pattern", vt({ ref_for: !0 }, { seriesIndex: a.index, patternId: `pattern_${k.value}_${l}` }), void 0, !0)
|
|
762
762
|
]))), 256))
|
|
763
763
|
])) : h("", !0),
|
|
764
764
|
I("g", {
|
|
765
765
|
transform: `translate(${L.value.width / 2}, ${L.value.height / 2}) rotate(${_.value})`
|
|
766
766
|
}, [
|
|
767
|
-
(r(!0), i(z, null,
|
|
767
|
+
(r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("g", null, [
|
|
768
768
|
(r(), i("path", {
|
|
769
769
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
770
770
|
key: `arc-${l}`,
|
|
771
|
-
d:
|
|
771
|
+
d: Ge(
|
|
772
772
|
a.startAngle,
|
|
773
773
|
a.endAngle,
|
|
774
774
|
b.value.outer,
|
|
@@ -789,7 +789,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
789
789
|
t.$slots.pattern ? (r(), i("path", {
|
|
790
790
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
791
791
|
key: `arc-${l}`,
|
|
792
|
-
d:
|
|
792
|
+
d: Ge(
|
|
793
793
|
a.startAngle,
|
|
794
794
|
a.endAngle,
|
|
795
795
|
b.value.outer,
|
|
@@ -807,7 +807,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
807
807
|
}, null, 14, La)) : h("", !0)
|
|
808
808
|
]))), 256)),
|
|
809
809
|
I("g", null, [
|
|
810
|
-
(r(!0), i(z, null,
|
|
810
|
+
(r(!0), i(z, null, H(C.value ? A.value.chords.filter((a) => a.source.groupId === C.value.id) : g.value ? A.value.chords.filter((a) => a.source.groupId === g.value) : A.value.chords, (a, l) => (r(), i(z, {
|
|
811
811
|
key: `ribbon-${a.id}`
|
|
812
812
|
}, [
|
|
813
813
|
a.source.value ? (r(), i("path", {
|
|
@@ -884,7 +884,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
884
884
|
}, null, 8, Fa)) : h("", !0)
|
|
885
885
|
]),
|
|
886
886
|
(C.value || p.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", za, [
|
|
887
|
-
(r(!0), i(z, null,
|
|
887
|
+
(r(!0), i(z, null, H(St.value, (a) => (r(), i(z, {
|
|
888
888
|
key: a.id
|
|
889
889
|
}, [
|
|
890
890
|
I("line", {
|
|
@@ -928,11 +928,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
928
928
|
"font-weight": e.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
929
929
|
dy: ".35em",
|
|
930
930
|
"pointer-events": "none"
|
|
931
|
-
},
|
|
931
|
+
}, q(Je(a.value)), 9, ja)
|
|
932
932
|
], 64))), 128))
|
|
933
933
|
])) : h("", !0),
|
|
934
|
-
e.value.style.chart.arcs.labels.show ? (r(), i("g",
|
|
935
|
-
e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 },
|
|
934
|
+
e.value.style.chart.arcs.labels.show ? (r(), i("g", Ya, [
|
|
935
|
+
e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, H(A.value.groups, (a, l) => (r(), i("text", {
|
|
936
936
|
class: "vue-ui-chord-label-curved",
|
|
937
937
|
key: `curved-label-${l}`,
|
|
938
938
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
@@ -943,13 +943,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
943
943
|
href: `#labelPath-${l}_${k.value}`,
|
|
944
944
|
startOffset: "50%",
|
|
945
945
|
"text-anchor": "middle"
|
|
946
|
-
},
|
|
946
|
+
}, q(m.value.labels[l]) + q(e.value.style.chart.arcs.labels.showPercentage ? d(_e)({
|
|
947
947
|
p: " (",
|
|
948
948
|
v: isNaN(a.proportion) ? 0 : a.proportion * 100,
|
|
949
949
|
s: "%)",
|
|
950
950
|
r: e.value.style.chart.arcs.labels.roundingPercentage
|
|
951
951
|
}) : ""), 9, Wa)
|
|
952
|
-
], 8,
|
|
952
|
+
], 8, Ga))), 128)) : !C.value && !p.value && !g.value ? (r(!0), i(z, { key: 1 }, H(A.value.groups, (a, l) => (r(), i("text", {
|
|
953
953
|
class: "vue-ui-chord-label-straight",
|
|
954
954
|
key: `label-${l}`,
|
|
955
955
|
transform: `
|
|
@@ -968,12 +968,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
968
968
|
x: 0,
|
|
969
969
|
y: 0
|
|
970
970
|
})
|
|
971
|
-
}, null, 8,
|
|
971
|
+
}, null, 8, Ha))), 128)) : h("", !0)
|
|
972
972
|
])) : h("", !0)
|
|
973
973
|
], 8, Sa),
|
|
974
974
|
w(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
975
975
|
], 42, Ia)),
|
|
976
|
-
t.$slots.watermark ? (r(), i("div",
|
|
976
|
+
t.$slots.watermark ? (r(), i("div", qa, [
|
|
977
977
|
w(t.$slots, "watermark", de(he({ isPrinting: d(Fe) || d(ze) })), void 0, !0)
|
|
978
978
|
])) : h("", !0),
|
|
979
979
|
I("div", {
|
|
@@ -990,7 +990,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
990
990
|
e.value.style.chart.legend.show ? (r(), V(Ca, {
|
|
991
991
|
key: `legend_${me.value}`,
|
|
992
992
|
legendSet: nt.value,
|
|
993
|
-
config:
|
|
993
|
+
config: Yt.value,
|
|
994
994
|
onClickMarker: o[0] || (o[0] = ({ legend: a }) => lt(a.id))
|
|
995
995
|
}, Ae({
|
|
996
996
|
item: x(({ legend: a }) => [
|
|
@@ -999,7 +999,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
999
999
|
opacity: g.value ? g.value === a.id ? 1 : 0.3 : 1
|
|
1000
1000
|
}),
|
|
1001
1001
|
onClick: (l) => a.select()
|
|
1002
|
-
},
|
|
1002
|
+
}, q(a.name), 13, Za)
|
|
1003
1003
|
]),
|
|
1004
1004
|
_: 2
|
|
1005
1005
|
}, [
|
|
@@ -1064,10 +1064,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1064
1064
|
onClose: st
|
|
1065
1065
|
}, {
|
|
1066
1066
|
th: x(({ th: a }) => [
|
|
1067
|
-
dt(
|
|
1067
|
+
dt(q(a.name), 1)
|
|
1068
1068
|
]),
|
|
1069
1069
|
td: x(({ td: a }) => [
|
|
1070
|
-
I("div", Ka,
|
|
1070
|
+
I("div", Ka, q(a.name ? a.name : Je(a)), 1)
|
|
1071
1071
|
]),
|
|
1072
1072
|
_: 1
|
|
1073
1073
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1077,7 +1077,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1077
1077
|
e.value.table.useDialog ? {
|
|
1078
1078
|
name: "title",
|
|
1079
1079
|
fn: x(() => [
|
|
1080
|
-
dt(
|
|
1080
|
+
dt(q(oe.value.title), 1)
|
|
1081
1081
|
]),
|
|
1082
1082
|
key: "0"
|
|
1083
1083
|
} : void 0,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useCssVars as yt, computed as _, defineAsyncComponent as N, ref as m, toRefs as bt, watch as ne, shallowRef as He, onMounted as gt, onBeforeUnmount as kt, watchEffect as wt, createElementBlock as b, openBlock as p, unref as r, normalizeStyle as se, normalizeClass as
|
|
2
|
-
import { u as _t, a as Ye } from "./useNestedProp-
|
|
3
|
-
import { c as Ze, t as zt, b as ke, p as re, o as $t, f as Tt, e as Ot, h as St, r as Je, d as we, X as Dt, m as It,
|
|
1
|
+
import { useCssVars as yt, computed as _, defineAsyncComponent as N, ref as m, toRefs as bt, watch as ne, shallowRef as He, onMounted as gt, onBeforeUnmount as kt, watchEffect as wt, createElementBlock as b, openBlock as p, unref as r, normalizeStyle as se, normalizeClass as je, createBlock as V, createCommentVNode as C, renderSlot as k, createSlots as Ge, withCtx as z, normalizeProps as J, guardReactiveProps as K, createVNode as We, Fragment as ue, renderList as xt, createElementVNode as $, mergeProps as ge, toDisplayString as H, resolveDynamicComponent as Ct, createTextVNode as qe, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as _t, a as Ye } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import { c as Ze, t as zt, b as ke, p as re, o as $t, f as Tt, e as Ot, h as St, r as Je, d as we, X as Dt, m as It, E as Q, aj as Ft, x as Pt, y as At, a as Ke } from "./lib-BEpWEyMm.js";
|
|
4
4
|
import { t as Mt, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Nt } from "./usePrinter-
|
|
5
|
+
import { u as Nt } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as Rt, B as Bt } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Vt from "./img-
|
|
10
|
-
import Ht from "./Title-
|
|
11
|
-
import { t as
|
|
12
|
-
import { _ as
|
|
9
|
+
import Vt from "./img-DjWwQXVS.js";
|
|
10
|
+
import Ht from "./Title-C__lOIPC.js";
|
|
11
|
+
import { t as jt } from "./themes-D3cUNuKw.js";
|
|
12
|
+
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function Qe(u, c = 0) {
|
|
14
14
|
const f = u.reduce((o, { x: s, r: d }) => Math.min(o, s - d - c), 1 / 0), y = u.reduce((o, { x: s, r: d }) => Math.max(o, s + d + c), -1 / 0), v = u.reduce((o, { y: s, r: d }) => Math.min(o, s - d - c), 1 / 0), n = u.reduce((o, { y: s, r: d }) => Math.max(o, s + d + c), -1 / 0);
|
|
15
15
|
return [f, v, y - f, n - v];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Wt(u, c, f) {
|
|
18
18
|
const y = u._, v = u.next._, n = y.r + v.r, o = (y.x * v.r + v.x * y.r) / n, s = (y.y * v.r + v.y * y.r) / n;
|
|
19
19
|
return Math.max(Math.abs(o * f), Math.abs(s * c));
|
|
20
20
|
}
|
|
21
21
|
function et(u, c, f) {
|
|
22
|
-
const y =
|
|
22
|
+
const y = Wt, v = u.length;
|
|
23
23
|
if (!v) return u;
|
|
24
24
|
let n, o, s;
|
|
25
25
|
if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (o = u[1], n.x = -o.r, o.x = n.r, o.y = 0, !(v > 2))) return u;
|
|
@@ -43,9 +43,9 @@ function et(u, c, f) {
|
|
|
43
43
|
}
|
|
44
44
|
while (w !== x.next);
|
|
45
45
|
s.previous = n, s.next = o, n.next = o.previous = o = s;
|
|
46
|
-
let
|
|
46
|
+
let j = y(n, f, c), O;
|
|
47
47
|
for (; (s = s.next) !== o; )
|
|
48
|
-
(O = y(s, f, c)) <
|
|
48
|
+
(O = y(s, f, c)) < j && (n = s, j = O);
|
|
49
49
|
o = n.next;
|
|
50
50
|
}
|
|
51
51
|
return u;
|
|
@@ -101,7 +101,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
101
101
|
v2a81d2d6: L.value,
|
|
102
102
|
v5d7acbce: fe.value
|
|
103
103
|
}));
|
|
104
|
-
const y = N(() => import("./BaseIcon-
|
|
104
|
+
const y = N(() => import("./BaseIcon-Bz-1GQhu.js")), v = N(() => import("./vue-ui-accordion-Cv7OaVUI.js")), n = N(() => import("./DataTable-BvjacRbw.js")), o = N(() => import("./UserOptions-DsTgvAok.js")), s = N(() => import("./PenAndPaper-CR8q353D.js")), d = N(() => import("./PackageVersion-x4hg0tYe.js")), w = N(() => import("./BaseDraggableDialog-CHhZIht2.js")), x = u, ee = f, { vue_ui_circle_pack: te } = _t(), j = _(() => !!x.dataset && x.dataset.length), O = m(Ze()), T = m(null), xe = m(null), Ce = m(null), _e = m(0), ze = m(0), $e = m(0), at = m(null), G = m(null), ce = m(null), e = m(de()), { loading: Te, FINAL_DATASET: Oe } = Rt({
|
|
105
105
|
...bt(x),
|
|
106
106
|
FINAL_CONFIG: e,
|
|
107
107
|
prepareConfig: de,
|
|
@@ -144,7 +144,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
144
144
|
});
|
|
145
145
|
return t.theme ? {
|
|
146
146
|
...Ye({
|
|
147
|
-
userConfig:
|
|
147
|
+
userConfig: jt.vue_ui_circle_pack[t.theme] || x.config,
|
|
148
148
|
defaultConfig: t
|
|
149
149
|
}),
|
|
150
150
|
customPalette: ke[t.theme] || re
|
|
@@ -165,13 +165,13 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
165
165
|
showTable: e.value.table.show
|
|
166
166
|
};
|
|
167
167
|
}, { immediate: !0 });
|
|
168
|
-
const S = He(null), R = He(null), A = m({ h: 10, w: 10 }), Ee = m(0), M = m([0, 0, 100, 100]),
|
|
168
|
+
const S = He(null), R = He(null), A = m({ h: 10, w: 10 }), Ee = m(0), M = m([0, 0, 100, 100]), W = m({ h: 0, w: 0 }), nt = _(() => e.value.debug);
|
|
169
169
|
async function he() {
|
|
170
170
|
$t(x.dataset) && Tt({
|
|
171
171
|
componentName: "VueUiCirclePack",
|
|
172
172
|
type: "dataset",
|
|
173
173
|
debug: nt.value
|
|
174
|
-
}), A.value = { h: 10, w: 10 }, M.value = [0, 0, 100, 100],
|
|
174
|
+
}), A.value = { h: 10, w: 10 }, M.value = [0, 0, 100, 100], W.value = { h: 0, w: 0 }, B.value = await et(le.value), D.value = Qe(B.value, 1).join(" "), W.value = Ne(T.value);
|
|
175
175
|
const t = Mt(() => {
|
|
176
176
|
const { width: a, height: l, heightTitle: i, heightNoTitle: g } = Et({
|
|
177
177
|
chart: T.value,
|
|
@@ -181,7 +181,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
181
181
|
Ee.value = e.value.style.chart.title.text ? i : g, requestAnimationFrame(() => {
|
|
182
182
|
A.value.w = E, A.value.h = be - Ee.value, Xe(async () => {
|
|
183
183
|
const mt = le.value.map((pt) => ({ ...pt }));
|
|
184
|
-
B.value = await et(mt, A.value.h, A.value.w), M.value = Qe(B.value, 1), D.value = M.value.join(" "),
|
|
184
|
+
B.value = await et(mt, A.value.h, A.value.w), M.value = Qe(B.value, 1), D.value = M.value.join(" "), W.value = Ne(T.value);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
});
|
|
@@ -390,7 +390,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
390
390
|
};
|
|
391
391
|
});
|
|
392
392
|
ne(() => P.value.showTable, (t) => {
|
|
393
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
393
|
+
e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
|
|
394
394
|
});
|
|
395
395
|
function Ve() {
|
|
396
396
|
P.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
|
|
@@ -406,10 +406,10 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
406
406
|
toggleFullscreen: Le
|
|
407
407
|
}), (t, a) => (p(), b("div", {
|
|
408
408
|
id: `vue-ui-circle-pack_${O.value}`,
|
|
409
|
-
class:
|
|
409
|
+
class: je(`vue-ui-circle-pack ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${r(Te) ? "loading" : ""}`),
|
|
410
410
|
ref_key: "circlePackChart",
|
|
411
411
|
ref: T,
|
|
412
|
-
style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${
|
|
412
|
+
style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${W.value.h}px; width:${W.value.w}px`),
|
|
413
413
|
onMouseenter: a[1] || (a[1] = () => r(De)(!0)),
|
|
414
414
|
onMouseleave: a[2] || (a[2] = () => r(De)(!1))
|
|
415
415
|
}, [
|
|
@@ -450,7 +450,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
450
450
|
}
|
|
451
451
|
}, null, 8, ["config"]))
|
|
452
452
|
], 512)) : C("", !0),
|
|
453
|
-
e.value.userOptions.show &&
|
|
453
|
+
e.value.userOptions.show && j.value && (r(Ie) || r(ve)) ? (p(), V(r(o), {
|
|
454
454
|
ref_key: "userOptionsRef",
|
|
455
455
|
ref: ce,
|
|
456
456
|
key: `user_option_${$e.value}`,
|
|
@@ -482,7 +482,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
482
482
|
onToggleTable: Ue,
|
|
483
483
|
onToggleAnnotator: pe,
|
|
484
484
|
style: se({ visibility: r(Ie) ? r(ve) ? "visible" : "hidden" : "visible" })
|
|
485
|
-
},
|
|
485
|
+
}, Ge({ _: 2 }, [
|
|
486
486
|
t.$slots.menuIcon ? {
|
|
487
487
|
name: "menuIcon",
|
|
488
488
|
fn: z(({ isOpen: l, color: i }) => [
|
|
@@ -540,10 +540,10 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
540
540
|
viewBox: D.value,
|
|
541
541
|
height: Math.max(10, A.value.h),
|
|
542
542
|
width: Math.max(10, A.value.w),
|
|
543
|
-
class:
|
|
543
|
+
class: je({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
544
544
|
style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
545
545
|
}, [
|
|
546
|
-
|
|
546
|
+
We(r(d)),
|
|
547
547
|
t.$slots["chart-background"] ? (p(), b("foreignObject", {
|
|
548
548
|
key: 0,
|
|
549
549
|
x: D.value.x,
|
|
@@ -697,11 +697,11 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
697
697
|
}, [
|
|
698
698
|
k(t.$slots, "source", {}, void 0, !0)
|
|
699
699
|
], 512)) : C("", !0),
|
|
700
|
-
|
|
700
|
+
j.value && e.value.userOptions.buttons.table ? (p(), V(Ct(Z.value.component), ge({ key: 6 }, Z.value.props, {
|
|
701
701
|
ref_key: "tableUnit",
|
|
702
|
-
ref:
|
|
702
|
+
ref: G,
|
|
703
703
|
onClose: Ve
|
|
704
|
-
}),
|
|
704
|
+
}), Ge({
|
|
705
705
|
content: z(() => [
|
|
706
706
|
(p(), V(r(n), {
|
|
707
707
|
key: `table_${ze.value}`,
|
|
@@ -742,7 +742,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
742
742
|
class: "vue-ui-user-options-button",
|
|
743
743
|
onClick: a[0] || (a[0] = (l) => ye(e.value.userOptions.callbacks.csv))
|
|
744
744
|
}, [
|
|
745
|
-
|
|
745
|
+
We(r(y), {
|
|
746
746
|
name: "excel",
|
|
747
747
|
stroke: Z.value.props.color
|
|
748
748
|
}, null, 8, ["stroke"])
|
|
@@ -754,7 +754,7 @@ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y",
|
|
|
754
754
|
r(Te) ? (p(), V(Bt, { key: 7 })) : C("", !0)
|
|
755
755
|
], 46, qt));
|
|
756
756
|
}
|
|
757
|
-
}, zl = /* @__PURE__ */
|
|
757
|
+
}, zl = /* @__PURE__ */ Gt(dl, [["__scopeId", "data-v-d36ab967"]]);
|
|
758
758
|
export {
|
|
759
759
|
zl as default
|
|
760
760
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
|
|
2
|
-
import { u as F, a as L } from "./useNestedProp-
|
|
3
|
-
import { c as z, X as O, s as I } from "./lib-
|
|
2
|
+
import { u as F, a as L } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import { c as z, X as O, s as I } from "./lib-BEpWEyMm.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const N = ["xmlns", "height", "width"], T = {
|
|
6
6
|
id: "follower",
|