vue-data-ui 3.22.4 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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 +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-dag.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-geo.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-stackline.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as a } from "./useConfig-
|
|
4
|
-
import { t as o } from "./usePrinter-
|
|
5
|
-
import { t as s } from "./dom-to-png-
|
|
2
|
+
import { W as t, Wt as n, kt as r, x as i } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as a } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as o } from "./usePrinter-CRp5IW3v.js";
|
|
5
|
+
import { t as s } from "./dom-to-png-CVJfsfwL.js";
|
|
6
6
|
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as l } from "./BaseIcon-
|
|
8
|
-
import { t as ee } from "./vue-ui-accordion-
|
|
9
|
-
import { t as te } from "./ColorPicker-
|
|
7
|
+
import { t as l } from "./BaseIcon-DcUvOfxf.js";
|
|
8
|
+
import { t as ee } from "./vue-ui-accordion-CfMrbDoq.js";
|
|
9
|
+
import { t as te } from "./ColorPicker-UVDPcrjE.js";
|
|
10
10
|
import { Fragment as ne, Teleport as re, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, nextTick as ie, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as ae, onMounted as oe, openBlock as y, ref as b, renderList as se, renderSlot as ce, toDisplayString as x, unref as le, vModelCheckbox as ue, vModelText as de, watch as fe, withCtx as S, withDirectives as pe, withModifiers as me } from "vue";
|
|
11
11
|
//#region src/registerAnnotatorShortcuts.js
|
|
12
12
|
function he(e) {
|
|
@@ -299,7 +299,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
299
299
|
},
|
|
300
300
|
emits: ["toggleOpenState", "saveAnnotations"],
|
|
301
301
|
setup(e, { emit: c }) {
|
|
302
|
-
let re = e, ge = c, _e = b(
|
|
302
|
+
let re = e, ge = c, _e = b(t()), { isImaging: vt, generateImage: yt } = o({
|
|
303
303
|
elementId: _e.value,
|
|
304
304
|
fileName: _t
|
|
305
305
|
}), w = b(void 0), bt = b(1), T = b({
|
|
@@ -334,7 +334,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
334
334
|
height: 12,
|
|
335
335
|
width: 12
|
|
336
336
|
}
|
|
337
|
-
}), Pt = b("#1A1A1A"), V = b(!1), Ft = b(1), It = b(void 0), Lt = b(1), Rt = b(1), H = b("start"), zt = b(20), Bt = b(100), Vt =
|
|
337
|
+
}), Pt = b("#1A1A1A"), V = b(!1), Ft = b(1), It = b(void 0), Lt = b(1), Rt = b(1), H = b("start"), zt = b(20), Bt = b(100), Vt = r, Ht = b(null), U = b(!1), W = b(null), G = b({
|
|
338
338
|
x: 0,
|
|
339
339
|
y: 0
|
|
340
340
|
}), Ut = b(null), K = b([]), Wt = b(!1), Gt = b(null), Kt = b({
|
|
@@ -931,7 +931,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
931
931
|
if (!I.value?.id) return;
|
|
932
932
|
let e = {
|
|
933
933
|
...I.value,
|
|
934
|
-
id: `${I.value.id}_copy_${
|
|
934
|
+
id: `${I.value.id}_copy_${t()}`,
|
|
935
935
|
x: I.value.x - 100 < 0 ? 1 : I.value.x - 100,
|
|
936
936
|
y: I.value.y - 100 < 0 ? 1 : I.value.y - 100
|
|
937
937
|
};
|
|
@@ -946,10 +946,10 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
946
946
|
function gn(e) {
|
|
947
947
|
if (k.value) return;
|
|
948
948
|
e.preventDefault(), e.stopPropagation(), hn(), P.value ? (F.value = !0, V.value = !0) : (F.value = !1, V.value = !1, P.value = !1);
|
|
949
|
-
let
|
|
949
|
+
let n = `text_${t()}`;
|
|
950
950
|
if (F.value) {
|
|
951
951
|
K.value?.begin(), z.value.push({
|
|
952
|
-
id:
|
|
952
|
+
id: n,
|
|
953
953
|
type: "text",
|
|
954
954
|
lines: 0,
|
|
955
955
|
x: L.value.x,
|
|
@@ -965,21 +965,21 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
965
965
|
}), E.value = z.value.at(-1), I.value = z.value.at(-1), K.value?.end();
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
|
-
let
|
|
968
|
+
let r = () => {
|
|
969
969
|
St.value = z.value.find((t) => t.id === e.target.id).isDash;
|
|
970
970
|
}, i = () => {
|
|
971
971
|
bt.value = z.value.find((t) => t.id === e.target.id).strokeWidth;
|
|
972
972
|
};
|
|
973
973
|
if (N.value = !1, e.target.id.includes("arrow")) {
|
|
974
|
-
w.value = "arrow",
|
|
974
|
+
w.value = "arrow", r(), i();
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
977
|
if (e.target.id.includes("circle")) {
|
|
978
|
-
w.value = "circle", B.value.circle.filled = z.value.find((t) => t.id === e.target.id).isFilled,
|
|
978
|
+
w.value = "circle", B.value.circle.filled = z.value.find((t) => t.id === e.target.id).isFilled, r(), i();
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
981
981
|
if (e.target.id.includes("rect")) {
|
|
982
|
-
w.value = "rect", B.value.rect.filled = z.value.find((t) => t.id === e.target.id).isFilled,
|
|
982
|
+
w.value = "rect", B.value.rect.filled = z.value.find((t) => t.id === e.target.id).isFilled, r(), i();
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
985
|
if (e.target.id.includes("line")) {
|
|
@@ -1087,78 +1087,78 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1087
1087
|
diffEndX: t.endX ? t.endX - e.x : 0,
|
|
1088
1088
|
diffEndY: t.endY ? t.endY - e.y : 0
|
|
1089
1089
|
})), e.source = R.value, R.value.length > 1) {
|
|
1090
|
-
let
|
|
1091
|
-
z.value = z.value.filter((e) => !
|
|
1090
|
+
let n = Z(R.value).map((e) => e.oldId);
|
|
1091
|
+
z.value = z.value.filter((e) => !n.includes(e.id)), R.value.forEach((n) => {
|
|
1092
1092
|
switch (!0) {
|
|
1093
|
-
case
|
|
1093
|
+
case n.type === "circle":
|
|
1094
1094
|
e.content += `
|
|
1095
1095
|
<circle
|
|
1096
|
-
id="${
|
|
1097
|
-
cx="${
|
|
1098
|
-
cy="${
|
|
1099
|
-
r="${
|
|
1100
|
-
fill="${
|
|
1101
|
-
stroke="${
|
|
1102
|
-
stroke-width="${
|
|
1103
|
-
style="${
|
|
1096
|
+
id="${n.id}"
|
|
1097
|
+
cx="${n.x}"
|
|
1098
|
+
cy="${n.y}"
|
|
1099
|
+
r="${n.circleRadius ? n.circleRadius : Number.MIN_VALUE}"
|
|
1100
|
+
fill="${n.isFilled ? n.color + n.alpha : "rgba(255,255,255,0.001)"}"
|
|
1101
|
+
stroke="${n.color + n.alpha}"
|
|
1102
|
+
stroke-width="${n.strokeWidth}"
|
|
1103
|
+
style="${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1104
1104
|
/>
|
|
1105
1105
|
`;
|
|
1106
1106
|
break;
|
|
1107
|
-
case
|
|
1107
|
+
case n.type === "rect":
|
|
1108
1108
|
e.content += `
|
|
1109
1109
|
<rect
|
|
1110
|
-
id="${M.value ? "" :
|
|
1111
|
-
x="${
|
|
1112
|
-
y="${
|
|
1113
|
-
fill="${
|
|
1114
|
-
height="${
|
|
1115
|
-
width="${
|
|
1116
|
-
stroke="${
|
|
1117
|
-
stroke-width="${
|
|
1118
|
-
style="rx:1 !important; ry:1 !important; ${
|
|
1110
|
+
id="${M.value ? "" : n.id}"
|
|
1111
|
+
x="${n.x}"
|
|
1112
|
+
y="${n.y}"
|
|
1113
|
+
fill="${n.isFilled ? n.color + n.alpha : "rgba(255,255,255,0.001)"}"
|
|
1114
|
+
height="${n.rectHeight}"
|
|
1115
|
+
width="${n.rectWidth}"
|
|
1116
|
+
stroke="${n.color + n.alpha}"
|
|
1117
|
+
stroke-width="${n.strokeWidth}"
|
|
1118
|
+
style="rx:1 !important; ry:1 !important; ${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1119
1119
|
/>
|
|
1120
1120
|
`;
|
|
1121
1121
|
break;
|
|
1122
|
-
case
|
|
1123
|
-
let
|
|
1122
|
+
case n.type === "arrow":
|
|
1123
|
+
let r = n.strokeWidth > 3 ? 5 : 10, i = n.strokeWidth > 3 ? 2.5 : 5, a = t();
|
|
1124
1124
|
e.content += `
|
|
1125
|
-
<g id="${
|
|
1125
|
+
<g id="${n.id}">
|
|
1126
1126
|
<defs>
|
|
1127
1127
|
<marker
|
|
1128
1128
|
id="${a}"
|
|
1129
|
-
markerWidth="${
|
|
1130
|
-
markerHeight="${
|
|
1129
|
+
markerWidth="${r}"
|
|
1130
|
+
markerHeight="${r}"
|
|
1131
1131
|
refX="0"
|
|
1132
1132
|
refY="${i}"
|
|
1133
1133
|
orient="auto"
|
|
1134
1134
|
>
|
|
1135
1135
|
<polygon
|
|
1136
|
-
points="0 0,${
|
|
1137
|
-
fill="${
|
|
1136
|
+
points="0 0,${r} ${i}, 0 ${r}"
|
|
1137
|
+
fill="${n.color}"
|
|
1138
1138
|
/>
|
|
1139
1139
|
</marker>
|
|
1140
1140
|
</defs>
|
|
1141
1141
|
|
|
1142
1142
|
<path
|
|
1143
|
-
style="stroke-linecap: round !important; ${
|
|
1144
|
-
stroke="${
|
|
1145
|
-
id="${
|
|
1146
|
-
d="M${
|
|
1147
|
-
stroke-width="${
|
|
1143
|
+
style="stroke-linecap: round !important; ${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1144
|
+
stroke="${n.color}"
|
|
1145
|
+
id="${n.id}"
|
|
1146
|
+
d="M${n.x},${n.y} ${n.endX},${n.endY}"
|
|
1147
|
+
stroke-width="${n.strokeWidth}"
|
|
1148
1148
|
marker-end="url(#${a})"
|
|
1149
1149
|
/>
|
|
1150
1150
|
</g>
|
|
1151
1151
|
`;
|
|
1152
1152
|
break;
|
|
1153
|
-
case
|
|
1154
|
-
let o =
|
|
1153
|
+
case n.type === "text":
|
|
1154
|
+
let o = n.textContent.split(""), s = [];
|
|
1155
1155
|
for (let e = 0; e < o.length; e += 1) s.push(`
|
|
1156
|
-
${
|
|
1157
|
-
<tspan id="${
|
|
1156
|
+
${n.isBulletTextMode ? `<tspan x="${n.x - n.fontSize}" y="${n.y + n.fontSize * e}" id="${n.id}" font-size="${n.fontSize / 2}">⬤</tspan>` : ""}
|
|
1157
|
+
<tspan id="${n.id}" x="${n.x}" y="${n.y + n.fontSize * e}">
|
|
1158
1158
|
${o[e]}
|
|
1159
1159
|
</tspan>`);
|
|
1160
1160
|
e.content += `
|
|
1161
|
-
${nn(
|
|
1161
|
+
${nn(n, s, n.isBulletTextMode)}
|
|
1162
1162
|
`;
|
|
1163
1163
|
break;
|
|
1164
1164
|
default: break;
|
|
@@ -1168,15 +1168,15 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1168
1168
|
}
|
|
1169
1169
|
function Cn(e) {
|
|
1170
1170
|
e.content = "";
|
|
1171
|
-
let
|
|
1171
|
+
let n = e.x || 0, r = e.y || 0;
|
|
1172
1172
|
(e.source || []).forEach((i) => {
|
|
1173
1173
|
switch (i.type) {
|
|
1174
1174
|
case "circle": {
|
|
1175
|
-
let
|
|
1175
|
+
let t = n + i.diffX, a = r + i.diffY;
|
|
1176
1176
|
e.content += `
|
|
1177
1177
|
<circle
|
|
1178
1178
|
id="${i.id}"
|
|
1179
|
-
cx="${
|
|
1179
|
+
cx="${t}"
|
|
1180
1180
|
cy="${a}"
|
|
1181
1181
|
r="${i.circleRadius ? i.circleRadius : Number.MIN_VALUE}"
|
|
1182
1182
|
fill="${i.isFilled ? i.color + i.alpha : "rgba(255,255,255,0.001)"}"
|
|
@@ -1188,11 +1188,11 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1188
1188
|
break;
|
|
1189
1189
|
}
|
|
1190
1190
|
case "rect": {
|
|
1191
|
-
let
|
|
1191
|
+
let t = n + i.diffX, a = r + i.diffY;
|
|
1192
1192
|
e.content += `
|
|
1193
1193
|
<rect
|
|
1194
1194
|
id="${M.value ? "" : i.id}"
|
|
1195
|
-
x="${
|
|
1195
|
+
x="${t}"
|
|
1196
1196
|
y="${a}"
|
|
1197
1197
|
fill="${i.isFilled ? i.color + i.alpha : "rgba(255,255,255,0.001)"}"
|
|
1198
1198
|
height="${i.rectHeight}"
|
|
@@ -1205,7 +1205,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1205
1205
|
break;
|
|
1206
1206
|
}
|
|
1207
1207
|
case "arrow": {
|
|
1208
|
-
let a =
|
|
1208
|
+
let a = n + i.diffX, o = r + i.diffY, s = n + i.diffEndX, c = r + i.diffEndY, l = i.strokeWidth > 3 ? 5 : 10, ee = i.strokeWidth > 3 ? 2.5 : 5, te = `m_${i.id}_${t()}`;
|
|
1209
1209
|
e.content += `
|
|
1210
1210
|
<g id="${i.id}">
|
|
1211
1211
|
<defs>
|
|
@@ -1232,9 +1232,9 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1232
1232
|
break;
|
|
1233
1233
|
}
|
|
1234
1234
|
case "text": {
|
|
1235
|
-
let
|
|
1236
|
-
${i.isBulletTextMode ? `<tspan x="${
|
|
1237
|
-
<tspan id="${i.id}" x="${
|
|
1235
|
+
let t = (i.textContent || "").split("").map((e, t) => `
|
|
1236
|
+
${i.isBulletTextMode ? `<tspan x="${n + i.diffX - i.fontSize}" y="${r + i.diffY + i.fontSize * t}" id="${i.id}" font-size="${i.fontSize / 2}">⬤</tspan>` : ""}
|
|
1237
|
+
<tspan id="${i.id}" x="${n + i.diffX}" y="${r + i.diffY + i.fontSize * t}">
|
|
1238
1238
|
${e}
|
|
1239
1239
|
</tspan>
|
|
1240
1240
|
`).join("");
|
|
@@ -1243,15 +1243,15 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1243
1243
|
<text
|
|
1244
1244
|
style="user-select:none; height:100px;"
|
|
1245
1245
|
id="${i.id}"
|
|
1246
|
-
x="${
|
|
1247
|
-
y="${
|
|
1246
|
+
x="${n + i.diffX}"
|
|
1247
|
+
y="${r + i.diffY}"
|
|
1248
1248
|
text-anchor="${i.textAlign}"
|
|
1249
1249
|
font-size="${i.fontSize}"
|
|
1250
1250
|
fill="${i.color}"
|
|
1251
1251
|
font-weight="${i.isBold ? "bold" : "normal"}"
|
|
1252
1252
|
font-style="${i.isItalic ? "italic" : "normal"}"
|
|
1253
1253
|
text-decoration="${i.isUnderline ? "underline" : "none"}">
|
|
1254
|
-
${
|
|
1254
|
+
${t}
|
|
1255
1255
|
</text>
|
|
1256
1256
|
</g>
|
|
1257
1257
|
`;
|
|
@@ -1270,7 +1270,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1270
1270
|
x: L.value.x,
|
|
1271
1271
|
y: L.value.y
|
|
1272
1272
|
};
|
|
1273
|
-
let e = `${N.value ? "group" : w.value}_${
|
|
1273
|
+
let e = `${N.value ? "group" : w.value}_${t()}`;
|
|
1274
1274
|
switch (!0) {
|
|
1275
1275
|
case w.value === "arrow":
|
|
1276
1276
|
z.value.push({
|
|
@@ -1332,7 +1332,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1332
1332
|
case w.value === "group":
|
|
1333
1333
|
z.value.push({
|
|
1334
1334
|
alpha: 1,
|
|
1335
|
-
id: `group_${
|
|
1335
|
+
id: `group_${t()}`,
|
|
1336
1336
|
x: L.value.x,
|
|
1337
1337
|
y: L.value.y,
|
|
1338
1338
|
isFilled: !1,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ie } from "./useConfig-
|
|
4
|
-
import { t as ae } from "./usePrinter-
|
|
2
|
+
import { Dt as t, Q as n, W as r, Wt as i, b as a, h as ee, i as o, lt as te, q as s, t as ne, wt as re } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ae } from "./usePrinter-CRp5IW3v.js";
|
|
5
5
|
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as ce } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as c } from "./useNestedProp-
|
|
7
|
+
import { t as c } from "./useNestedProp-BEo2N1Db.js";
|
|
8
8
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ue } from "./img-
|
|
10
|
-
import { n as de } from "./Title-
|
|
9
|
+
import { t as ue } from "./img-B_y5qDdm.js";
|
|
10
|
+
import { n as de } from "./Title-C-p0ilWB.js";
|
|
11
11
|
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as pe } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as me } from "./useResponsive-BfnK0KxU.js";
|
|
14
14
|
import { t as he } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
15
|
import { t as ge } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as _e } from "./Legend-
|
|
16
|
+
import { t as _e } from "./Legend-D-635Kag.js";
|
|
17
17
|
import { t as ve } from "./vue_ui_bullet-ClzdLoOv.js";
|
|
18
18
|
import { Fragment as l, Teleport as ye, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as be, createVNode as xe, defineAsyncComponent as h, guardReactiveProps as g, nextTick as Se, normalizeClass as Ce, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as we, onMounted as Te, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, toRefs as Ee, unref as w, watch as De, withCtx as T } from "vue";
|
|
19
19
|
//#region src/components/vue-ui-bullet.vue
|
|
@@ -103,7 +103,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["copyAlt"],
|
|
105
105
|
setup(e, { expose: fe, emit: Oe }) {
|
|
106
|
-
let E = h(() => import("./PackageVersion-
|
|
106
|
+
let E = h(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), Xe = h(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), Ze = h(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), { vue_ui_bullet: Qe } = ie(), { isThemeValid: $e, warnInvalidTheme: et } = le(), D = e, tt = Oe, O = b(null), nt = b(null), rt = b(0), it = b(null), at = b(null), ot = b(0), k = b(null), A = b(null), st = b(!1), j = b(!1), M = b(!1), N = u({
|
|
107
107
|
get: () => z.value.hasOwnProperty("value"),
|
|
108
108
|
set: (e) => e
|
|
109
109
|
}), P = u(() => z.value.segments ? Array.isArray(z.value.segments) ? z.value.segments.length ? !0 : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), N.value = !1, !1) : (console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n] \n "), N.value = !1, !1) : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), N.value = !1, !1)), ct = u(() => !!L.value.debug), lt = u(() => {
|
|
@@ -116,12 +116,12 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
118
|
function ut() {
|
|
119
|
-
if (
|
|
119
|
+
if (t(z.value) ? (n({
|
|
120
120
|
componentName: "VueUiBullet",
|
|
121
121
|
type: "dataset",
|
|
122
122
|
debug: ct.value
|
|
123
123
|
}), B.value = !0) : P.value ? z.value.segments.forEach((e, t) => {
|
|
124
|
-
|
|
124
|
+
te({
|
|
125
125
|
datasetObject: e,
|
|
126
126
|
requiredAttributes: [
|
|
127
127
|
"name",
|
|
@@ -129,7 +129,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
129
129
|
"to"
|
|
130
130
|
]
|
|
131
131
|
}).forEach((e) => {
|
|
132
|
-
N.value = !1,
|
|
132
|
+
N.value = !1, n({
|
|
133
133
|
componentName: "VueUiBullet segment",
|
|
134
134
|
type: "datasetSerieAttribute",
|
|
135
135
|
property: e,
|
|
@@ -137,7 +137,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
137
137
|
debug: ct.value
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
|
-
}) : (N.value = !1, B.value = !0),
|
|
140
|
+
}) : (N.value = !1, B.value = !0), t(z.value) || (B.value = L.value.loading), L.value.responsive) {
|
|
141
141
|
let e = pe(() => {
|
|
142
142
|
let { width: e, height: t } = me({
|
|
143
143
|
chart: O.value,
|
|
@@ -157,7 +157,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
157
157
|
Te(() => {
|
|
158
158
|
st.value = !0, ut();
|
|
159
159
|
});
|
|
160
|
-
let F = b(
|
|
160
|
+
let F = b(r());
|
|
161
161
|
function I() {
|
|
162
162
|
let e = c({
|
|
163
163
|
userConfig: D.config,
|
|
@@ -174,7 +174,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
174
174
|
defaultConfig: n
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
let L = b(I()), dt = u(() => L.value.userOptions.useCursorPointer), ft = u(() =>
|
|
177
|
+
let L = b(I()), dt = u(() => L.value.userOptions.useCursorPointer), ft = u(() => i({
|
|
178
178
|
defaultConfig: {
|
|
179
179
|
userOptions: { show: !1 },
|
|
180
180
|
style: { chart: {
|
|
@@ -215,7 +215,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
215
215
|
}
|
|
216
216
|
]
|
|
217
217
|
},
|
|
218
|
-
skeletonConfig:
|
|
218
|
+
skeletonConfig: i({
|
|
219
219
|
defaultConfig: L.value,
|
|
220
220
|
userConfig: ft.value
|
|
221
221
|
})
|
|
@@ -241,7 +241,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
241
241
|
}), _t = u(() => {
|
|
242
242
|
if (!P.value) return [];
|
|
243
243
|
let e = [];
|
|
244
|
-
for (let t = 0; t < z.value.segments.length; t += 1) e.push(
|
|
244
|
+
for (let t = 0; t < z.value.segments.length; t += 1) e.push(re(L.value.style.chart.segments.baseColor, t / z.value.segments.length));
|
|
245
245
|
return e;
|
|
246
246
|
}), G = u(() => P.value ? {
|
|
247
247
|
min: Math.min(...z.value.segments.map((e) => e.from)),
|
|
@@ -269,7 +269,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
269
269
|
});
|
|
270
270
|
let q = u(() => {
|
|
271
271
|
if (!P.value) return [];
|
|
272
|
-
let e =
|
|
272
|
+
let e = ee(G.value.min, G.value.max, L.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
273
273
|
return {
|
|
274
274
|
scale: e,
|
|
275
275
|
target: { x: W.value.left + (z.value.target + t) / (e.max + t) * W.value.chartWidth - L.value.style.chart.target.width / 2 },
|
|
@@ -281,7 +281,7 @@ var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
|
|
|
281
281
|
})),
|
|
282
282
|
chunks: z.value.segments.map((n, r) => ({
|
|
283
283
|
...n,
|
|
284
|
-
color: n.color ?
|
|
284
|
+
color: n.color ? a(n.color) : _t.value[r],
|
|
285
285
|
x: W.value.left + W.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
286
286
|
y: W.value.top,
|
|
287
287
|
height: W.value.chartHeight,
|