vue-data-ui 3.22.7 → 3.22.9
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-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- 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-trvJ26nz.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-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.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-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.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--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- 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-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- 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-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- 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-UdRAvP2h.js";
|
|
8
|
+
import { t as ee } from "./vue-ui-accordion-CjAGqEJg.js";
|
|
9
|
+
import { t as te } from "./ColorPicker-DR_ummtM.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,
|