vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, Kt as n, jt as r, x as i } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as a } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as o } from "./usePrinter-
|
|
5
|
-
import { t as s } from "./dom-to-png-
|
|
4
|
+
import { t as o } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { t as s } from "./dom-to-png-BbwhsRIr.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-C2qlyHc7.js";
|
|
8
|
+
import { t as ee } from "./vue-ui-accordion-YyosvEPo.js";
|
|
9
|
+
import { t as te } from "./ColorPicker-CK2-h611.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,
|