vue-data-ui 3.22.2 → 3.22.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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.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 +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -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 { At as t, Gt as n, W as r, x as i } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as a } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as o } from "./usePrinter-C0wAS8yc.js";
|
|
5
|
+
import { t as s } from "./dom-to-png-ZOysoMwu.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-xBuW2jjI.js";
|
|
8
|
+
import { t as ee } from "./vue-ui-accordion-B64IJyPU.js";
|
|
9
|
+
import { t as te } from "./ColorPicker-Usv7badH.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(r()), { 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 = t, 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({
|
|
@@ -344,7 +344,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
344
344
|
b(null), b(null);
|
|
345
345
|
let Jt = b(null), q = u(() => {
|
|
346
346
|
let e = a().vue_ui_annotator;
|
|
347
|
-
return Object.keys(re.config || {}).length ? i(
|
|
347
|
+
return Object.keys(re.config || {}).length ? i(n({
|
|
348
348
|
defaultConfig: e,
|
|
349
349
|
userConfig: re.config
|
|
350
350
|
})) : e;
|
|
@@ -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_${r()}`,
|
|
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 t = `text_${r()}`;
|
|
950
950
|
if (F.value) {
|
|
951
951
|
K.value?.begin(), z.value.push({
|
|
952
|
-
id:
|
|
952
|
+
id: t,
|
|
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 n = () => {
|
|
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", n(), 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, n(), 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, n(), 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 t = Z(R.value).map((e) => e.oldId);
|
|
1091
|
+
z.value = z.value.filter((e) => !t.includes(e.id)), R.value.forEach((t) => {
|
|
1092
1092
|
switch (!0) {
|
|
1093
|
-
case
|
|
1093
|
+
case t.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="${t.id}"
|
|
1097
|
+
cx="${t.x}"
|
|
1098
|
+
cy="${t.y}"
|
|
1099
|
+
r="${t.circleRadius ? t.circleRadius : Number.MIN_VALUE}"
|
|
1100
|
+
fill="${t.isFilled ? t.color + t.alpha : "rgba(255,255,255,0.001)"}"
|
|
1101
|
+
stroke="${t.color + t.alpha}"
|
|
1102
|
+
stroke-width="${t.strokeWidth}"
|
|
1103
|
+
style="${t.isDash ? `stroke-dasharray: ${t.strokeWidth * 3}` : ""}"
|
|
1104
1104
|
/>
|
|
1105
1105
|
`;
|
|
1106
1106
|
break;
|
|
1107
|
-
case
|
|
1107
|
+
case t.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 ? "" : t.id}"
|
|
1111
|
+
x="${t.x}"
|
|
1112
|
+
y="${t.y}"
|
|
1113
|
+
fill="${t.isFilled ? t.color + t.alpha : "rgba(255,255,255,0.001)"}"
|
|
1114
|
+
height="${t.rectHeight}"
|
|
1115
|
+
width="${t.rectWidth}"
|
|
1116
|
+
stroke="${t.color + t.alpha}"
|
|
1117
|
+
stroke-width="${t.strokeWidth}"
|
|
1118
|
+
style="rx:1 !important; ry:1 !important; ${t.isDash ? `stroke-dasharray: ${t.strokeWidth * 3}` : ""}"
|
|
1119
1119
|
/>
|
|
1120
1120
|
`;
|
|
1121
1121
|
break;
|
|
1122
|
-
case
|
|
1123
|
-
let
|
|
1122
|
+
case t.type === "arrow":
|
|
1123
|
+
let n = t.strokeWidth > 3 ? 5 : 10, i = t.strokeWidth > 3 ? 2.5 : 5, a = r();
|
|
1124
1124
|
e.content += `
|
|
1125
|
-
<g id="${
|
|
1125
|
+
<g id="${t.id}">
|
|
1126
1126
|
<defs>
|
|
1127
1127
|
<marker
|
|
1128
1128
|
id="${a}"
|
|
1129
|
-
markerWidth="${
|
|
1130
|
-
markerHeight="${
|
|
1129
|
+
markerWidth="${n}"
|
|
1130
|
+
markerHeight="${n}"
|
|
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,${n} ${i}, 0 ${n}"
|
|
1137
|
+
fill="${t.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; ${t.isDash ? `stroke-dasharray: ${t.strokeWidth * 3}` : ""}"
|
|
1144
|
+
stroke="${t.color}"
|
|
1145
|
+
id="${t.id}"
|
|
1146
|
+
d="M${t.x},${t.y} ${t.endX},${t.endY}"
|
|
1147
|
+
stroke-width="${t.strokeWidth}"
|
|
1148
1148
|
marker-end="url(#${a})"
|
|
1149
1149
|
/>
|
|
1150
1150
|
</g>
|
|
1151
1151
|
`;
|
|
1152
1152
|
break;
|
|
1153
|
-
case
|
|
1154
|
-
let o =
|
|
1153
|
+
case t.type === "text":
|
|
1154
|
+
let o = t.textContent.split(""), s = [];
|
|
1155
1155
|
for (let e = 0; e < o.length; e += 1) s.push(`
|
|
1156
|
-
${
|
|
1157
|
-
<tspan id="${
|
|
1156
|
+
${t.isBulletTextMode ? `<tspan x="${t.x - t.fontSize}" y="${t.y + t.fontSize * e}" id="${t.id}" font-size="${t.fontSize / 2}">⬤</tspan>` : ""}
|
|
1157
|
+
<tspan id="${t.id}" x="${t.x}" y="${t.y + t.fontSize * e}">
|
|
1158
1158
|
${o[e]}
|
|
1159
1159
|
</tspan>`);
|
|
1160
1160
|
e.content += `
|
|
1161
|
-
${nn(
|
|
1161
|
+
${nn(t, s, t.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 t = e.x || 0, n = e.y || 0;
|
|
1172
1172
|
(e.source || []).forEach((i) => {
|
|
1173
1173
|
switch (i.type) {
|
|
1174
1174
|
case "circle": {
|
|
1175
|
-
let
|
|
1175
|
+
let r = t + i.diffX, a = n + i.diffY;
|
|
1176
1176
|
e.content += `
|
|
1177
1177
|
<circle
|
|
1178
1178
|
id="${i.id}"
|
|
1179
|
-
cx="${
|
|
1179
|
+
cx="${r}"
|
|
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 r = t + i.diffX, a = n + i.diffY;
|
|
1192
1192
|
e.content += `
|
|
1193
1193
|
<rect
|
|
1194
1194
|
id="${M.value ? "" : i.id}"
|
|
1195
|
-
x="${
|
|
1195
|
+
x="${r}"
|
|
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 = t + i.diffX, o = n + i.diffY, s = t + i.diffEndX, c = n + i.diffEndY, l = i.strokeWidth > 3 ? 5 : 10, ee = i.strokeWidth > 3 ? 2.5 : 5, te = `m_${i.id}_${r()}`;
|
|
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 r = (i.textContent || "").split("").map((e, r) => `
|
|
1236
|
+
${i.isBulletTextMode ? `<tspan x="${t + i.diffX - i.fontSize}" y="${n + i.diffY + i.fontSize * r}" id="${i.id}" font-size="${i.fontSize / 2}">⬤</tspan>` : ""}
|
|
1237
|
+
<tspan id="${i.id}" x="${t + i.diffX}" y="${n + i.diffY + i.fontSize * r}">
|
|
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="${t + i.diffX}"
|
|
1247
|
+
y="${n + 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
|
+
${r}
|
|
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}_${r()}`;
|
|
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_${r()}`,
|
|
1336
1336
|
x: L.value.x,
|
|
1337
1337
|
y: L.value.y,
|
|
1338
1338
|
isFilled: !1,
|