vue-data-ui 3.10.0 → 3.10.2
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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { c as ut, aB as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { B as qt } from "./BaseZoomControls-
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { ref as C, watchEffect as cn, unref as v, defineAsyncComponent as et, toRefs as un, computed as H, onMounted as Gt, nextTick as Ae, watch as Ne, onBeforeUnmount as jt, createElementBlock as _, openBlock as y, normalizeStyle as ce, normalizeClass as Wt, createCommentVNode as L, createBlock as te, createVNode as tt, toDisplayString as Se, withCtx as F, renderSlot as M, normalizeProps as z, guardReactiveProps as V, createSlots as dn, createElementVNode as K, Fragment as ue, renderList as Le, withModifiers as Yt, mergeProps as ot, createTextVNode as fn, Transition as Ht, Teleport as Ut } from "vue";
|
|
2
|
+
import { c as ut, aB as hn, t as mn, o as gn, g as Zt, m as Xt, X as vn, as as bn } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as pn, u as wn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as yn } from "./usePanZoom-CDF7rb3o.js";
|
|
5
|
+
import { u as kn, a as nt } from "./useNestedProp-Ckf_2P_V.js";
|
|
6
|
+
import { u as Cn, B as En } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as _n } from "./usePrinter-1NmjuP-i.js";
|
|
8
|
+
import { u as xn } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as An } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Nn } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Sn } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import Ln from "./Title-NgeRXqRA.js";
|
|
13
|
+
import { B as qt } from "./BaseZoomControls-Cb-Qq9_R.js";
|
|
14
|
+
import Mn from "./img-6fNF_rG0.js";
|
|
15
|
+
import { _ as On } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Dn = "\0", de = "\0", Kt = "";
|
|
17
17
|
class oe {
|
|
18
18
|
_isDirected = !0;
|
|
19
19
|
_isMultigraph = !1;
|
|
@@ -337,7 +337,7 @@ class oe {
|
|
|
337
337
|
if (n !== void 0 && !this._isMultigraph)
|
|
338
338
|
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
339
339
|
this.setNode(t), this.setNode(o), this._edgeLabels[a] = i ? s : this._defaultEdgeLabelFn(t, o, n);
|
|
340
|
-
const l =
|
|
340
|
+
const l = Rn(this._isDirected, t, o, n);
|
|
341
341
|
return t = l.v, o = l.w, Object.freeze(l), this._edgeObjs[a] = l, Jt(this._preds[o], t), Jt(this._sucs[t], o), this._in[o][a] = l, this._out[t][a] = l, this._edgeCount++, this;
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
@@ -419,9 +419,9 @@ function Me(e, t, o, n) {
|
|
|
419
419
|
const r = s;
|
|
420
420
|
s = i, i = r;
|
|
421
421
|
}
|
|
422
|
-
return s + Kt + i + Kt + (n === void 0 ?
|
|
422
|
+
return s + Kt + i + Kt + (n === void 0 ? Dn : n);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Rn(e, t, o, n) {
|
|
425
425
|
let s = "" + t, i = "" + o;
|
|
426
426
|
if (!e && s > i) {
|
|
427
427
|
const a = s;
|
|
@@ -433,7 +433,7 @@ function On(e, t, o, n) {
|
|
|
433
433
|
function st(e, t) {
|
|
434
434
|
return Me(e, t.v, t.w, t.name);
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class Tn {
|
|
437
437
|
constructor() {
|
|
438
438
|
const t = {};
|
|
439
439
|
t._next = t._prev = t, this._sentinel = t;
|
|
@@ -451,25 +451,25 @@ class Dn {
|
|
|
451
451
|
const t = [], o = this._sentinel;
|
|
452
452
|
let n = o._prev;
|
|
453
453
|
for (; n !== o; )
|
|
454
|
-
t.push(JSON.stringify(n,
|
|
454
|
+
t.push(JSON.stringify(n, Pn)), n = n._prev;
|
|
455
455
|
return "[" + t.join(", ") + "]";
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
function eo(e) {
|
|
459
459
|
e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Pn(e, t) {
|
|
462
462
|
if (e !== "_next" && e !== "_prev")
|
|
463
463
|
return t;
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
function
|
|
465
|
+
const $n = () => 1;
|
|
466
|
+
function Fn(e, t) {
|
|
467
467
|
if (e.nodeCount() <= 1)
|
|
468
468
|
return [];
|
|
469
|
-
const o =
|
|
470
|
-
return
|
|
469
|
+
const o = zn(e, t || $n);
|
|
470
|
+
return Bn(o.graph, o.buckets, o.zeroIndex).flatMap((s) => e.outEdges(s.v, s.w));
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Bn(e, t, o) {
|
|
473
473
|
let n = [];
|
|
474
474
|
const s = t[t.length - 1], i = t[0];
|
|
475
475
|
let r;
|
|
@@ -498,7 +498,7 @@ function rt(e, t, o, n, s) {
|
|
|
498
498
|
l.in -= a, dt(t, o, l);
|
|
499
499
|
}), e.removeNode(n.v), i;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function zn(e, t) {
|
|
502
502
|
const o = new oe();
|
|
503
503
|
let n = 0, s = 0;
|
|
504
504
|
e.nodes().forEach((a) => {
|
|
@@ -507,7 +507,7 @@ function Fn(e, t) {
|
|
|
507
507
|
const l = o.edge(a.v, a.w) || 0, c = t(a), f = l + c;
|
|
508
508
|
o.setEdge(a.v, a.w, f), s = Math.max(s, o.node(a.v).out += c), n = Math.max(n, o.node(a.w).in += c);
|
|
509
509
|
});
|
|
510
|
-
const i =
|
|
510
|
+
const i = Vn(s + n + 3).map(() => new Tn()), r = n + 1;
|
|
511
511
|
return o.nodes().forEach((a) => {
|
|
512
512
|
dt(i, r, o.node(a));
|
|
513
513
|
}), {
|
|
@@ -519,13 +519,13 @@ function Fn(e, t) {
|
|
|
519
519
|
function dt(e, t, o) {
|
|
520
520
|
o.out ? o.in ? e[o.out - o.in + t].enqueue(o) : e[e.length - 1].enqueue(o) : e[0].enqueue(o);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Vn(e) {
|
|
523
523
|
const t = [];
|
|
524
524
|
for (let o = 0; o < e; o++)
|
|
525
525
|
t.push(o);
|
|
526
526
|
return t;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function be(e, t, o, n) {
|
|
529
529
|
let s = n;
|
|
530
530
|
for (; e.hasNode(s); )
|
|
531
531
|
s = Ve(n);
|
|
@@ -551,7 +551,7 @@ function ht(e) {
|
|
|
551
551
|
t.setEdge(o, e.edge(o));
|
|
552
552
|
}), t;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function In(e) {
|
|
555
555
|
const t = e.nodes().map((o) => {
|
|
556
556
|
const n = {};
|
|
557
557
|
return e.outEdges(o).forEach((s) => {
|
|
@@ -560,7 +560,7 @@ function zn(e) {
|
|
|
560
560
|
});
|
|
561
561
|
return Ie(e.nodes(), t);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Gn(e) {
|
|
564
564
|
const t = e.nodes().map((o) => {
|
|
565
565
|
const n = {};
|
|
566
566
|
return e.inEdges(o).forEach((s) => {
|
|
@@ -609,15 +609,15 @@ function mo(e) {
|
|
|
609
609
|
});
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function jn(e, t, o, n) {
|
|
613
613
|
const s = {
|
|
614
614
|
width: 0,
|
|
615
615
|
height: 0
|
|
616
616
|
};
|
|
617
|
-
return arguments.length >= 4 && (s.rank = o, s.order = n),
|
|
617
|
+
return arguments.length >= 4 && (s.rank = o, s.order = n), be(e, "border", s, t);
|
|
618
618
|
}
|
|
619
619
|
const go = 65535;
|
|
620
|
-
function
|
|
620
|
+
function Wn(e, t = go) {
|
|
621
621
|
const o = [];
|
|
622
622
|
for (let n = 0; n < e.length; n += t) {
|
|
623
623
|
const s = e.slice(n, n + t);
|
|
@@ -627,7 +627,7 @@ function Gn(e, t = go) {
|
|
|
627
627
|
}
|
|
628
628
|
function X(e, t) {
|
|
629
629
|
if (t.length > go) {
|
|
630
|
-
const o =
|
|
630
|
+
const o = Wn(t);
|
|
631
631
|
return e.apply(
|
|
632
632
|
null,
|
|
633
633
|
o.map((n) => e.apply(null, n))
|
|
@@ -648,7 +648,7 @@ function vo(e, t) {
|
|
|
648
648
|
t(n) ? o.lhs.push(n) : o.rhs.push(n);
|
|
649
649
|
}), o;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function bo(e, t) {
|
|
652
652
|
const o = Date.now();
|
|
653
653
|
try {
|
|
654
654
|
return t();
|
|
@@ -656,12 +656,12 @@ function po(e, t) {
|
|
|
656
656
|
console.log(e + " time: " + (Date.now() - o) + "ms");
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function po(e, t) {
|
|
660
660
|
return t();
|
|
661
661
|
}
|
|
662
|
-
let
|
|
662
|
+
let Yn = 0;
|
|
663
663
|
function Ve(e) {
|
|
664
|
-
const t = ++
|
|
664
|
+
const t = ++Yn;
|
|
665
665
|
return e + String(t);
|
|
666
666
|
}
|
|
667
667
|
function ve(e, t, o = 1) {
|
|
@@ -691,8 +691,8 @@ function Ie(e, t) {
|
|
|
691
691
|
return e.reduce((o, n, s) => (o[n] = t[s], o), {});
|
|
692
692
|
}
|
|
693
693
|
const ze = {
|
|
694
|
-
addBorderNode:
|
|
695
|
-
addDummyNode:
|
|
694
|
+
addBorderNode: jn,
|
|
695
|
+
addDummyNode: be,
|
|
696
696
|
applyWithChunking: X,
|
|
697
697
|
asNonCompoundGraph: ht,
|
|
698
698
|
buildLayerMatrix: De,
|
|
@@ -700,20 +700,20 @@ const ze = {
|
|
|
700
700
|
mapValues: Re,
|
|
701
701
|
maxRank: mt,
|
|
702
702
|
normalizeRanks: ho,
|
|
703
|
-
notime:
|
|
703
|
+
notime: po,
|
|
704
704
|
partition: vo,
|
|
705
705
|
pick: Oe,
|
|
706
|
-
predecessorWeights:
|
|
706
|
+
predecessorWeights: Gn,
|
|
707
707
|
range: ve,
|
|
708
708
|
removeEmptyRanks: mo,
|
|
709
709
|
simplify: fo,
|
|
710
|
-
successorWeights:
|
|
711
|
-
time:
|
|
710
|
+
successorWeights: In,
|
|
711
|
+
time: bo,
|
|
712
712
|
uniqueId: Ve,
|
|
713
713
|
zipObject: Ie
|
|
714
714
|
};
|
|
715
|
-
function
|
|
716
|
-
(e.graph().acyclicer === "greedy" ?
|
|
715
|
+
function Hn(e) {
|
|
716
|
+
(e.graph().acyclicer === "greedy" ? Fn(e, o(e)) : Zn(e)).forEach((n) => {
|
|
717
717
|
const s = e.edge(n);
|
|
718
718
|
e.removeEdge(n), s.forwardName = n.name, s.reversed = !0, e.setEdge(n.w, n.v, s, Ve("rev"));
|
|
719
719
|
});
|
|
@@ -721,7 +721,7 @@ function Wn(e) {
|
|
|
721
721
|
return (s) => n.edge(s).weight;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Un(e) {
|
|
725
725
|
e.edges().forEach((t) => {
|
|
726
726
|
const o = e.edge(t);
|
|
727
727
|
if (o.reversed) {
|
|
@@ -731,7 +731,7 @@ function Yn(e) {
|
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Zn(e) {
|
|
735
735
|
const t = [], o = {}, n = {};
|
|
736
736
|
function s(i) {
|
|
737
737
|
Object.hasOwn(n, i) || (n[i] = !0, o[i] = !0, e.outEdges(i).forEach((r) => {
|
|
@@ -740,10 +740,10 @@ function Hn(e) {
|
|
|
740
740
|
}
|
|
741
741
|
return e.nodes().forEach(s), t;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
e.graph().dummyChains = [], e.edges().forEach((t) =>
|
|
743
|
+
function Xn(e) {
|
|
744
|
+
e.graph().dummyChains = [], e.edges().forEach((t) => qn(e, t));
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function qn(e, t) {
|
|
747
747
|
let o = t.v, n = e.node(o).rank;
|
|
748
748
|
const s = t.w, i = e.node(s).rank, r = t.name, a = e.edge(t), l = a.labelRank;
|
|
749
749
|
if (i === n + 1)
|
|
@@ -757,10 +757,10 @@ function Zn(e, t) {
|
|
|
757
757
|
edgeLabel: a,
|
|
758
758
|
edgeObj: t,
|
|
759
759
|
rank: n
|
|
760
|
-
}, c =
|
|
760
|
+
}, c = be(e, "edge", f, "_d"), n === l && (f.width = a.width, f.height = a.height, f.dummy = "edge-label", f.labelpos = a.labelpos), e.setEdge(o, c, { weight: a.weight }, r), m === 0 && e.graph().dummyChains.push(c), o = c;
|
|
761
761
|
e.setEdge(o, s, { weight: a.weight }, r);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Kn(e) {
|
|
764
764
|
e.graph().dummyChains.forEach((t) => {
|
|
765
765
|
let o = e.node(t);
|
|
766
766
|
const n = o.edgeLabel;
|
|
@@ -789,11 +789,11 @@ function wo(e) {
|
|
|
789
789
|
}
|
|
790
790
|
(e.sources() || []).forEach(t);
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Jn(e, t) {
|
|
793
793
|
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
|
|
795
|
+
function Qn(e) {
|
|
796
|
+
es(e);
|
|
797
797
|
const t = new oe();
|
|
798
798
|
e.nodes().forEach((i) => {
|
|
799
799
|
t.setNode(i, {});
|
|
@@ -803,30 +803,30 @@ function Kn(e) {
|
|
|
803
803
|
return t;
|
|
804
804
|
const n = o[0], s = /* @__PURE__ */ new Set([n]);
|
|
805
805
|
for (; s.size < o.length; ) {
|
|
806
|
-
const i =
|
|
806
|
+
const i = ts(e, s);
|
|
807
807
|
if (!i) {
|
|
808
808
|
const f = o.find((m) => !s.has(m));
|
|
809
809
|
s.add(f), t.setNode(f, {});
|
|
810
810
|
continue;
|
|
811
811
|
}
|
|
812
812
|
const { edgeObject: r, delta: a, attachFrom: l, attachTo: c } = i;
|
|
813
|
-
|
|
813
|
+
os(e, s, l, a), t.setEdge(r.v, r.w, {}), s.add(c);
|
|
814
814
|
}
|
|
815
815
|
return t;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function es(e) {
|
|
818
818
|
e.nodes().forEach((t) => {
|
|
819
819
|
const o = e.node(t) || {};
|
|
820
820
|
Object.prototype.hasOwnProperty.call(o, "rank") || (o.rank = 0, e.setNode(t, o));
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function ts(e, t) {
|
|
824
824
|
let o = null;
|
|
825
825
|
return e.edges().forEach((n) => {
|
|
826
826
|
const s = t.has(n.v), i = t.has(n.w);
|
|
827
827
|
if (s === i)
|
|
828
828
|
return;
|
|
829
|
-
const r =
|
|
829
|
+
const r = Jn(e, n), a = Math.abs(r);
|
|
830
830
|
if (!o || a < o.absoluteSlack) {
|
|
831
831
|
const l = s ? n.v : n.w, c = s ? n.w : n.v, f = s ? r : -r;
|
|
832
832
|
o = {
|
|
@@ -839,7 +839,7 @@ function Qn(e, t) {
|
|
|
839
839
|
}
|
|
840
840
|
}), o;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function os(e, t, o, n) {
|
|
843
843
|
n && e.nodes().forEach((s) => {
|
|
844
844
|
if (!t.has(s)) {
|
|
845
845
|
const i = e.node(s);
|
|
@@ -847,33 +847,33 @@ function es(e, t, o, n) {
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function pe(e) {
|
|
851
851
|
const t = fo(e);
|
|
852
852
|
return wo(t), t.nodes().forEach((o) => {
|
|
853
853
|
const n = t.node(o), s = e.node(o) || {};
|
|
854
854
|
s.rank = n.rank, e.setNode(o, s);
|
|
855
855
|
}), e;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function ns(e, t) {
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function ss(e, t) {
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function rs(e, t, o) {
|
|
862
862
|
return 0;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function is(e) {
|
|
865
865
|
return null;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function as(e, t) {
|
|
868
868
|
return null;
|
|
869
869
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
870
|
+
pe.initLowLimValues = ns;
|
|
871
|
+
pe.initCutValues = ss;
|
|
872
|
+
pe.calcCutValue = rs;
|
|
873
|
+
pe.leaveEdge = is;
|
|
874
|
+
pe.enterEdge = as;
|
|
875
875
|
const yo = wo;
|
|
876
|
-
function
|
|
876
|
+
function ls(e) {
|
|
877
877
|
const t = e.graph().ranker;
|
|
878
878
|
if (t instanceof Function)
|
|
879
879
|
return t(e);
|
|
@@ -882,10 +882,10 @@ function is(e) {
|
|
|
882
882
|
to(e);
|
|
883
883
|
break;
|
|
884
884
|
case "tight-tree":
|
|
885
|
-
|
|
885
|
+
us(e);
|
|
886
886
|
break;
|
|
887
887
|
case "longest-path":
|
|
888
|
-
|
|
888
|
+
cs(e);
|
|
889
889
|
break;
|
|
890
890
|
case "none":
|
|
891
891
|
break;
|
|
@@ -893,18 +893,18 @@ function is(e) {
|
|
|
893
893
|
to(e);
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
898
|
-
yo(e),
|
|
896
|
+
const cs = yo;
|
|
897
|
+
function us(e) {
|
|
898
|
+
yo(e), Qn(e);
|
|
899
899
|
}
|
|
900
900
|
function to(e) {
|
|
901
|
-
|
|
901
|
+
pe(e);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
const t =
|
|
903
|
+
function ds(e) {
|
|
904
|
+
const t = hs(e);
|
|
905
905
|
e.graph().dummyChains.forEach((o) => {
|
|
906
906
|
let n = e.node(o);
|
|
907
|
-
const s = n.edgeObj, i =
|
|
907
|
+
const s = n.edgeObj, i = fs(e, t, s.v, s.w), r = i.path, a = i.lca;
|
|
908
908
|
let l = 0, c = r[l], f = !0, m = o;
|
|
909
909
|
for (; m !== s.w; ) {
|
|
910
910
|
if (n = e.node(m), f) {
|
|
@@ -921,7 +921,7 @@ function cs(e) {
|
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function fs(e, t, o, n) {
|
|
925
925
|
const s = [], i = [], r = Math.min(t[o].low, t[n].low), a = Math.max(t[o].lim, t[n].lim);
|
|
926
926
|
let l, c;
|
|
927
927
|
l = o;
|
|
@@ -935,7 +935,7 @@ function us(e, t, o, n) {
|
|
|
935
935
|
lca: c
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function hs(e) {
|
|
939
939
|
const t = {};
|
|
940
940
|
let o = 0;
|
|
941
941
|
function n(s) {
|
|
@@ -944,12 +944,12 @@ function ds(e) {
|
|
|
944
944
|
}
|
|
945
945
|
return e.children().forEach(n), t;
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
const t = ze.addDummyNode(e, "root", {}, "_root"), o =
|
|
947
|
+
function ms(e) {
|
|
948
|
+
const t = ze.addDummyNode(e, "root", {}, "_root"), o = gs(e), n = Object.values(o), s = ze.applyWithChunking(Math.max, n) - 1, i = 2 * s + 1;
|
|
949
949
|
e.graph().nestingRoot = t, e.edges().forEach((a) => {
|
|
950
950
|
e.edge(a).minlen *= i;
|
|
951
951
|
});
|
|
952
|
-
const r =
|
|
952
|
+
const r = vs(e) + 1;
|
|
953
953
|
e.children().forEach((a) => {
|
|
954
954
|
ko(e, t, i, r, s, o, a);
|
|
955
955
|
}), e.graph().nodeRankFactor = i;
|
|
@@ -963,12 +963,12 @@ function ko(e, t, o, n, s, i, r) {
|
|
|
963
963
|
const l = ze.addBorderNode(e, "_bt"), c = ze.addBorderNode(e, "_bb"), f = e.node(r);
|
|
964
964
|
e.setParent(l, r), f.borderTop = l, e.setParent(c, r), f.borderBottom = c, a.forEach((m) => {
|
|
965
965
|
ko(e, t, o, n, s, i, m);
|
|
966
|
-
const g = e.node(m), w = g.borderTop ? g.borderTop : m,
|
|
966
|
+
const g = e.node(m), w = g.borderTop ? g.borderTop : m, A = g.borderBottom ? g.borderBottom : m, x = g.borderTop ? n : 2 * n, P = w !== A ? 1 : s - i[r] + 1;
|
|
967
967
|
e.setEdge(l, w, {
|
|
968
968
|
weight: x,
|
|
969
969
|
minlen: P,
|
|
970
970
|
nestingEdge: !0
|
|
971
|
-
}), e.setEdge(
|
|
971
|
+
}), e.setEdge(A, c, {
|
|
972
972
|
weight: x,
|
|
973
973
|
minlen: P,
|
|
974
974
|
nestingEdge: !0
|
|
@@ -978,7 +978,7 @@ function ko(e, t, o, n, s, i, r) {
|
|
|
978
978
|
minlen: s + i[r]
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function gs(e) {
|
|
982
982
|
const t = {};
|
|
983
983
|
function o(n, s) {
|
|
984
984
|
const i = e.children(n);
|
|
@@ -986,16 +986,16 @@ function hs(e) {
|
|
|
986
986
|
}
|
|
987
987
|
return e.children().forEach((n) => o(n, 1)), t;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function vs(e) {
|
|
990
990
|
return e.edges().reduce((t, o) => t + e.edge(o).weight, 0);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function bs(e) {
|
|
993
993
|
const t = e.graph();
|
|
994
994
|
e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((o) => {
|
|
995
995
|
e.edge(o).nestingEdge && e.removeEdge(o);
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function ps(e) {
|
|
999
999
|
function t(o) {
|
|
1000
1000
|
const n = e.children(o), s = e.node(o);
|
|
1001
1001
|
if (n.length && n.forEach(t), Object.hasOwn(s, "minRank")) {
|
|
@@ -1012,18 +1012,18 @@ function oo(e, t, o, n, s, i) {
|
|
|
1012
1012
|
height: 0,
|
|
1013
1013
|
rank: i,
|
|
1014
1014
|
borderType: t
|
|
1015
|
-
}, a = s[t][i - 1], l =
|
|
1015
|
+
}, a = s[t][i - 1], l = be(e, "border", r, o);
|
|
1016
1016
|
s[t][i] = l, e.setParent(l, n), a && e.setEdge(a, l, { weight: 1 });
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function ws(e) {
|
|
1019
1019
|
const t = e.graph().rankdir.toLowerCase();
|
|
1020
|
-
(t === "lr" || t === "rl") &&
|
|
1020
|
+
(t === "lr" || t === "rl") && Co(e);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function ys(e) {
|
|
1023
1023
|
const t = e.graph().rankdir.toLowerCase();
|
|
1024
|
-
(t === "bt" || t === "rl") &&
|
|
1024
|
+
(t === "bt" || t === "rl") && ks(e), (t === "lr" || t === "rl") && (Cs(e), Co(e));
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Co(e) {
|
|
1027
1027
|
e.nodes().forEach((t) => {
|
|
1028
1028
|
no(e.node(t));
|
|
1029
1029
|
}), e.edges().forEach((t) => {
|
|
@@ -1034,7 +1034,7 @@ function no(e) {
|
|
|
1034
1034
|
const t = e.width;
|
|
1035
1035
|
e.width = e.height, e.height = t;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function ks(e) {
|
|
1038
1038
|
e.nodes().forEach((t) => {
|
|
1039
1039
|
it(e.node(t));
|
|
1040
1040
|
}), e.edges().forEach((t) => {
|
|
@@ -1045,7 +1045,7 @@ function ws(e) {
|
|
|
1045
1045
|
function it(e) {
|
|
1046
1046
|
e.y = -e.y;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Cs(e) {
|
|
1049
1049
|
e.nodes().forEach((t) => {
|
|
1050
1050
|
at(e.node(t));
|
|
1051
1051
|
}), e.edges().forEach((t) => {
|
|
@@ -1058,10 +1058,10 @@ function at(e) {
|
|
|
1058
1058
|
e.x = e.y, e.y = t;
|
|
1059
1059
|
}
|
|
1060
1060
|
const so = {
|
|
1061
|
-
adjust:
|
|
1062
|
-
undo:
|
|
1061
|
+
adjust: ws,
|
|
1062
|
+
undo: ys
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1064
|
+
function Es(e) {
|
|
1065
1065
|
const t = {}, o = e.nodes().filter((l) => e.children(l).length === 0), n = o.map((l) => e.node(l).rank), s = X(Math.max, n), i = ve(s + 1).map(() => []);
|
|
1066
1066
|
function r(l) {
|
|
1067
1067
|
if (t[l]) return;
|
|
@@ -1073,13 +1073,13 @@ function ks(e) {
|
|
|
1073
1073
|
(l, c) => e.node(l).rank - e.node(c).rank
|
|
1074
1074
|
).forEach(r), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function _s(e, t) {
|
|
1077
1077
|
let o = 0;
|
|
1078
1078
|
for (let n = 1; n < t.length; ++n)
|
|
1079
|
-
o +=
|
|
1079
|
+
o += xs(e, t[n - 1], t[n]);
|
|
1080
1080
|
return o;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function xs(e, t, o) {
|
|
1083
1083
|
const n = Ie(
|
|
1084
1084
|
o,
|
|
1085
1085
|
o.map((c, f) => f)
|
|
@@ -1102,7 +1102,7 @@ function Cs(e, t, o) {
|
|
|
1102
1102
|
l += c.weight * m;
|
|
1103
1103
|
}), l;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function As(e, t = []) {
|
|
1106
1106
|
return t.map((o) => {
|
|
1107
1107
|
const n = e.inEdges(o);
|
|
1108
1108
|
if (!n.length)
|
|
@@ -1124,7 +1124,7 @@ function _s(e, t = []) {
|
|
|
1124
1124
|
};
|
|
1125
1125
|
});
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Ns(e, t) {
|
|
1128
1128
|
const o = {};
|
|
1129
1129
|
e.forEach((s, i) => {
|
|
1130
1130
|
const r = o[s.v] = {
|
|
@@ -1140,13 +1140,13 @@ function xs(e, t) {
|
|
|
1140
1140
|
i !== void 0 && r !== void 0 && (r.indegree++, i.out.push(r));
|
|
1141
1141
|
});
|
|
1142
1142
|
const n = Object.values(o).filter((s) => !s.indegree);
|
|
1143
|
-
return
|
|
1143
|
+
return Ss(n);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Ss(e) {
|
|
1146
1146
|
const t = [];
|
|
1147
1147
|
function o(s) {
|
|
1148
1148
|
return (i) => {
|
|
1149
|
-
i.merged || (i.barycenter === void 0 || s.barycenter === void 0 || i.barycenter >= s.barycenter) &&
|
|
1149
|
+
i.merged || (i.barycenter === void 0 || s.barycenter === void 0 || i.barycenter >= s.barycenter) && Ls(s, i);
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
1152
|
function n(s) {
|
|
@@ -1160,14 +1160,14 @@ function Ns(e) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
return t.filter((s) => !s.merged).map((s) => Oe(s, ["vs", "i", "barycenter", "weight"]));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Ls(e, t) {
|
|
1164
1164
|
let o = 0, n = 0;
|
|
1165
1165
|
e.weight && (o += e.barycenter * e.weight, n += e.weight), t.weight && (o += t.barycenter * t.weight, n += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = o / n, e.weight = n, e.i = Math.min(t.i, e.i), t.merged = !0;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Ms(e, t) {
|
|
1168
1168
|
const o = vo(e, (f) => Object.hasOwn(f, "barycenter")), n = o.lhs, s = o.rhs.sort((f, m) => m.i - f.i), i = [];
|
|
1169
1169
|
let r = 0, a = 0, l = 0;
|
|
1170
|
-
n.sort(
|
|
1170
|
+
n.sort(Os(!!t)), l = ro(i, s, l), n.forEach((f) => {
|
|
1171
1171
|
l += f.vs.length, i.push(f.vs), r += f.barycenter * f.weight, a += f.weight, l = ro(i, s, l);
|
|
1172
1172
|
});
|
|
1173
1173
|
const c = { vs: i.flat(!0) };
|
|
@@ -1179,40 +1179,40 @@ function ro(e, t, o) {
|
|
|
1179
1179
|
t.pop(), e.push(n.vs), o++;
|
|
1180
1180
|
return o;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function Os(e) {
|
|
1183
1183
|
return (t, o) => t.barycenter < o.barycenter ? -1 : t.barycenter > o.barycenter ? 1 : e ? o.i - t.i : t.i - o.i;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Eo(e, t, o, n) {
|
|
1186
1186
|
let s = e.children(t);
|
|
1187
1187
|
const i = e.node(t), r = i ? i.borderLeft : void 0, a = i ? i.borderRight : void 0, l = {};
|
|
1188
1188
|
r && (s = s.filter((g) => g !== r && g !== a));
|
|
1189
|
-
const c =
|
|
1189
|
+
const c = As(e, s);
|
|
1190
1190
|
c.forEach((g) => {
|
|
1191
1191
|
if (e.children(g.v).length) {
|
|
1192
|
-
const w =
|
|
1193
|
-
l[g.v] = w, Object.hasOwn(w, "barycenter") &&
|
|
1192
|
+
const w = Eo(e, g.v, o, n);
|
|
1193
|
+
l[g.v] = w, Object.hasOwn(w, "barycenter") && Rs(g, w);
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
|
-
let f =
|
|
1197
|
-
|
|
1198
|
-
const m =
|
|
1196
|
+
let f = Ns(c, o);
|
|
1197
|
+
Ds(f, l);
|
|
1198
|
+
const m = Ms(f, n);
|
|
1199
1199
|
if (r && (m.vs = [r, m.vs, a].flat(!0), e.predecessors(r).length)) {
|
|
1200
1200
|
const g = e.node(e.predecessors(r)[0]), w = e.node(e.predecessors(a)[0]);
|
|
1201
1201
|
Object.hasOwn(m, "barycenter") || (m.barycenter = 0, m.weight = 0), m.barycenter = (m.barycenter * m.weight + g.order + w.order) / (m.weight + 2), m.weight += 2;
|
|
1202
1202
|
}
|
|
1203
1203
|
return m;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Ds(e, t) {
|
|
1206
1206
|
e.forEach((o) => {
|
|
1207
1207
|
o.vs = o.vs.flatMap((n) => t[n] ? t[n].vs : n);
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Rs(e, t) {
|
|
1211
1211
|
e.barycenter !== void 0 ? (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight) : (e.barycenter = t.barycenter, e.weight = t.weight);
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Ts(e, t, o, n) {
|
|
1214
1214
|
n || (n = e.nodes());
|
|
1215
|
-
const s =
|
|
1215
|
+
const s = Ps(e), i = new oe({ compound: !0 }).setGraph({ root: s }).setDefaultNodeLabel((r) => e.node(r));
|
|
1216
1216
|
return n.forEach((r) => {
|
|
1217
1217
|
const a = e.node(r), l = e.parent(r);
|
|
1218
1218
|
(a.rank === t || a.minRank <= t && t <= a.maxRank) && (i.setNode(r), i.setParent(r, l || s), e[o](r).forEach((f) => {
|
|
@@ -1226,12 +1226,12 @@ function Ds(e, t, o, n) {
|
|
|
1226
1226
|
}));
|
|
1227
1227
|
}), i;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Ps(e) {
|
|
1230
1230
|
let t;
|
|
1231
1231
|
for (; e.hasNode(t = Ve("_root")); ) ;
|
|
1232
1232
|
return t;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function $s(e, t, o) {
|
|
1235
1235
|
let n = {}, s;
|
|
1236
1236
|
o.forEach((i) => {
|
|
1237
1237
|
let r = e.parent(i), a, l;
|
|
@@ -1258,15 +1258,15 @@ function _o(e, t = {}) {
|
|
|
1258
1258
|
ve(o - 1, -1, -1),
|
|
1259
1259
|
"outEdges"
|
|
1260
1260
|
);
|
|
1261
|
-
let i =
|
|
1261
|
+
let i = Es(e);
|
|
1262
1262
|
if (ao(e, i), t.disableOptimalOrderHeuristic)
|
|
1263
1263
|
return;
|
|
1264
1264
|
let r = Number.POSITIVE_INFINITY, a;
|
|
1265
1265
|
const l = t.constraints || [];
|
|
1266
1266
|
for (let c = 0, f = 0; f < 4; ++c, ++f) {
|
|
1267
1267
|
const m = c % 2 === 0 ? n : s, g = c % 4 >= 2;
|
|
1268
|
-
|
|
1269
|
-
const w =
|
|
1268
|
+
Fs(m, g, l), i = De(e);
|
|
1269
|
+
const w = _s(e, i);
|
|
1270
1270
|
w < r ? (r = w, f = 0, a = structuredClone(i)) : w === r && (a = structuredClone(i));
|
|
1271
1271
|
}
|
|
1272
1272
|
ao(e, a);
|
|
@@ -1283,7 +1283,7 @@ function io(e, t, o) {
|
|
|
1283
1283
|
a !== r.rank && s(a, i);
|
|
1284
1284
|
}
|
|
1285
1285
|
return t.map(
|
|
1286
|
-
(i) =>
|
|
1286
|
+
(i) => Ts(
|
|
1287
1287
|
e,
|
|
1288
1288
|
i,
|
|
1289
1289
|
o,
|
|
@@ -1291,14 +1291,14 @@ function io(e, t, o) {
|
|
|
1291
1291
|
)
|
|
1292
1292
|
);
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Fs(e, t, o) {
|
|
1295
1295
|
const n = new oe();
|
|
1296
1296
|
e.forEach((s) => {
|
|
1297
1297
|
o.forEach((a) => n.setEdge(a.left, a.right));
|
|
1298
|
-
const i = s.graph().root, r =
|
|
1298
|
+
const i = s.graph().root, r = Eo(s, i, n, t);
|
|
1299
1299
|
r.vs.forEach((a, l) => {
|
|
1300
1300
|
s.node(a).order = l;
|
|
1301
|
-
}),
|
|
1301
|
+
}), $s(s, n, r.vs);
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
function ao(e, t) {
|
|
@@ -1308,24 +1308,24 @@ function ao(e, t) {
|
|
|
1308
1308
|
});
|
|
1309
1309
|
});
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function Bs(e, t) {
|
|
1312
1312
|
const o = {};
|
|
1313
1313
|
function n(s, i) {
|
|
1314
1314
|
let r = 0, a = 0;
|
|
1315
1315
|
const l = s.length, c = i[i.length - 1];
|
|
1316
1316
|
return i.forEach((f, m) => {
|
|
1317
|
-
const g =
|
|
1318
|
-
(g || f === c) && (i.slice(a, m + 1).forEach((
|
|
1319
|
-
e.predecessors(
|
|
1317
|
+
const g = Vs(e, f), w = g ? e.node(g).order : l;
|
|
1318
|
+
(g || f === c) && (i.slice(a, m + 1).forEach((A) => {
|
|
1319
|
+
e.predecessors(A).forEach((x) => {
|
|
1320
1320
|
const P = e.node(x), J = P.order;
|
|
1321
|
-
(J < r || w < J) && !(P.dummy && e.node(
|
|
1321
|
+
(J < r || w < J) && !(P.dummy && e.node(A).dummy) && xo(o, x, A);
|
|
1322
1322
|
});
|
|
1323
1323
|
}), a = m + 1, r = w);
|
|
1324
1324
|
}), i;
|
|
1325
1325
|
}
|
|
1326
1326
|
return t.length && t.reduce(n), o;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function zs(e, t) {
|
|
1329
1329
|
const o = {};
|
|
1330
1330
|
function n(i, r, a, l, c) {
|
|
1331
1331
|
let f;
|
|
@@ -1348,7 +1348,7 @@ function Fs(e, t) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return t.length && t.reduce(s), o;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Vs(e, t) {
|
|
1352
1352
|
if (e.node(t).dummy)
|
|
1353
1353
|
return e.predecessors(t).find((o) => e.node(o).dummy);
|
|
1354
1354
|
}
|
|
@@ -1360,14 +1360,14 @@ function xo(e, t, o) {
|
|
|
1360
1360
|
let n = e[t];
|
|
1361
1361
|
n || (e[t] = n = {}), n[o] = !0;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Is(e, t, o) {
|
|
1364
1364
|
if (t > o) {
|
|
1365
1365
|
const n = t;
|
|
1366
1366
|
t = o, o = n;
|
|
1367
1367
|
}
|
|
1368
1368
|
return !!e[t] && Object.hasOwn(e[t], o);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Gs(e, t, o, n) {
|
|
1371
1371
|
const s = {}, i = {}, r = {};
|
|
1372
1372
|
return t.forEach((a) => {
|
|
1373
1373
|
a.forEach((l, c) => {
|
|
@@ -1381,23 +1381,23 @@ function Vs(e, t, o, n) {
|
|
|
1381
1381
|
f = f.sort((g, w) => r[g] - r[w]);
|
|
1382
1382
|
const m = (f.length - 1) / 2;
|
|
1383
1383
|
for (let g = Math.floor(m), w = Math.ceil(m); g <= w; ++g) {
|
|
1384
|
-
const
|
|
1385
|
-
i[c] === c && l < r[
|
|
1384
|
+
const A = f[g];
|
|
1385
|
+
i[c] === c && l < r[A] && !Is(o, c, A) && (i[A] = c, i[c] = s[c] = s[A], l = r[A]);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
});
|
|
1389
1389
|
}), { root: s, align: i };
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
const i = {}, r =
|
|
1391
|
+
function js(e, t, o, n, s) {
|
|
1392
|
+
const i = {}, r = Ws(e, t, o, s), a = s ? "borderLeft" : "borderRight";
|
|
1393
1393
|
function l(m, g) {
|
|
1394
|
-
const w = r.nodes().slice(),
|
|
1394
|
+
const w = r.nodes().slice(), A = {};
|
|
1395
1395
|
let x = w.pop();
|
|
1396
1396
|
for (; x; ) {
|
|
1397
|
-
if (
|
|
1397
|
+
if (A[x])
|
|
1398
1398
|
m(x);
|
|
1399
1399
|
else {
|
|
1400
|
-
|
|
1400
|
+
A[x] = !0, w.push(x);
|
|
1401
1401
|
for (const P of g(x))
|
|
1402
1402
|
w.push(P);
|
|
1403
1403
|
}
|
|
@@ -1408,15 +1408,15 @@ function Is(e, t, o, n, s) {
|
|
|
1408
1408
|
i[m] = r.inEdges(m).reduce((g, w) => Math.max(g, i[w.v] + r.edge(w)), 0);
|
|
1409
1409
|
}
|
|
1410
1410
|
function f(m) {
|
|
1411
|
-
const g = r.outEdges(m).reduce((
|
|
1411
|
+
const g = r.outEdges(m).reduce((A, x) => Math.min(A, i[x.w] - r.edge(x)), Number.POSITIVE_INFINITY), w = e.node(m);
|
|
1412
1412
|
g !== Number.POSITIVE_INFINITY && w.borderType !== a && (i[m] = Math.max(i[m], g));
|
|
1413
1413
|
}
|
|
1414
1414
|
return l(c, r.predecessors.bind(r)), l(f, r.successors.bind(r)), Object.keys(n).forEach((m) => {
|
|
1415
1415
|
i[m] = i[o[m]];
|
|
1416
1416
|
}), i;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1419
|
-
const s = new e.constructor(), i = e.graph(), r =
|
|
1418
|
+
function Ws(e, t, o, n) {
|
|
1419
|
+
const s = new e.constructor(), i = e.graph(), r = Xs(i.nodesep, i.edgesep, n);
|
|
1420
1420
|
return t.forEach((a) => {
|
|
1421
1421
|
let l;
|
|
1422
1422
|
a.forEach((c) => {
|
|
@@ -1433,12 +1433,12 @@ function Gs(e, t, o, n) {
|
|
|
1433
1433
|
});
|
|
1434
1434
|
}), s;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Ys(e, t) {
|
|
1437
1437
|
return Object.values(t).reduce(
|
|
1438
1438
|
(o, n) => {
|
|
1439
1439
|
let s = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY;
|
|
1440
1440
|
Object.entries(n).forEach(([a, l]) => {
|
|
1441
|
-
const c =
|
|
1441
|
+
const c = qs(e, a) / 2;
|
|
1442
1442
|
s = Math.max(l + c, s), i = Math.min(l - c, i);
|
|
1443
1443
|
});
|
|
1444
1444
|
const r = s - i;
|
|
@@ -1447,7 +1447,7 @@ function js(e, t) {
|
|
|
1447
1447
|
[Number.POSITIVE_INFINITY, null]
|
|
1448
1448
|
)[1];
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function Hs(e, t) {
|
|
1451
1451
|
const o = Object.values(t), n = X(Math.min, o), s = X(Math.max, o);
|
|
1452
1452
|
["u", "d"].forEach((i) => {
|
|
1453
1453
|
["l", "r"].forEach((r) => {
|
|
@@ -1460,7 +1460,7 @@ function Ws(e, t) {
|
|
|
1460
1460
|
});
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function Us(e, t) {
|
|
1464
1464
|
return Re(e.ul, (o, n) => {
|
|
1465
1465
|
if (t)
|
|
1466
1466
|
return e[t.toLowerCase()][n];
|
|
@@ -1468,10 +1468,10 @@ function Ys(e, t) {
|
|
|
1468
1468
|
return (s[1] + s[2]) / 2;
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function Zs(e) {
|
|
1472
1472
|
const t = De(e), o = Object.assign(
|
|
1473
|
-
|
|
1474
|
-
|
|
1473
|
+
Bs(e, t),
|
|
1474
|
+
zs(e, t)
|
|
1475
1475
|
), n = {};
|
|
1476
1476
|
let s;
|
|
1477
1477
|
["u", "d"].forEach((r) => {
|
|
@@ -1480,13 +1480,13 @@ function Hs(e) {
|
|
|
1480
1480
|
a === "r" && (l = l.map(
|
|
1481
1481
|
(g) => Object.values(g).reverse()
|
|
1482
1482
|
));
|
|
1483
|
-
const c = (r === "u" ? e.predecessors : e.successors).bind(e), f =
|
|
1483
|
+
const c = (r === "u" ? e.predecessors : e.successors).bind(e), f = Gs(
|
|
1484
1484
|
e,
|
|
1485
1485
|
l,
|
|
1486
1486
|
o,
|
|
1487
1487
|
c
|
|
1488
1488
|
);
|
|
1489
|
-
let m =
|
|
1489
|
+
let m = js(
|
|
1490
1490
|
e,
|
|
1491
1491
|
l,
|
|
1492
1492
|
f.root,
|
|
@@ -1496,10 +1496,10 @@ function Hs(e) {
|
|
|
1496
1496
|
a === "r" && (m = Re(m, (g) => -g)), n[r + a] = m;
|
|
1497
1497
|
});
|
|
1498
1498
|
});
|
|
1499
|
-
const i =
|
|
1500
|
-
return
|
|
1499
|
+
const i = Ys(e, n);
|
|
1500
|
+
return Hs(n, i), Us(n, e.graph().align);
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function Xs(e, t, o) {
|
|
1503
1503
|
return (n, s, i) => {
|
|
1504
1504
|
const r = n.node(s), a = n.node(i);
|
|
1505
1505
|
let l = 0, c;
|
|
@@ -1524,18 +1524,18 @@ function Us(e, t, o) {
|
|
|
1524
1524
|
return c && (l += o ? c : -c), c = 0, l;
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function qs(e, t) {
|
|
1528
1528
|
return e.node(t).width;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Ks(e) {
|
|
1531
1531
|
const t = ht(e);
|
|
1532
|
-
|
|
1533
|
-
const o =
|
|
1532
|
+
Js(t);
|
|
1533
|
+
const o = Zs(t);
|
|
1534
1534
|
Object.entries(o).forEach(([n, s]) => {
|
|
1535
1535
|
e.node(n).x = s;
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Js(e) {
|
|
1539
1539
|
const t = De(e), o = e.graph().ranksep;
|
|
1540
1540
|
let n = 0;
|
|
1541
1541
|
t.forEach((s) => {
|
|
@@ -1548,17 +1548,17 @@ function qs(e) {
|
|
|
1548
1548
|
}), n += i + o;
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
const o = t.debugTiming ?
|
|
1551
|
+
function Qs(e, t = {}) {
|
|
1552
|
+
const o = t.debugTiming ? bo : po;
|
|
1553
1553
|
return o("layout", () => {
|
|
1554
|
-
const n = o(" buildLayoutGraph", () =>
|
|
1555
|
-
return o(" runLayout", () =>
|
|
1554
|
+
const n = o(" buildLayoutGraph", () => cr(e));
|
|
1555
|
+
return o(" runLayout", () => er(n, o, t)), o(" updateInputGraph", () => tr(e, n)), n;
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1559
|
-
t(" makeSpaceForEdgeLabels", () =>
|
|
1558
|
+
function er(e, t, o) {
|
|
1559
|
+
t(" makeSpaceForEdgeLabels", () => ur(e)), t(" removeSelfEdges", () => wr(e)), t(" acyclic", () => Hn(e)), t(" nestingGraph.run", () => ms(e)), t(" rank", () => ls(ht(e))), t(" injectEdgeLabelProxies", () => dr(e)), t(" removeEmptyRanks", () => mo(e)), t(" nestingGraph.cleanup", () => bs(e)), t(" normalizeRanks", () => ho(e)), t(" assignRankMinMax", () => fr(e)), t(" removeEdgeLabelProxies", () => hr(e)), t(" normalize.run", () => Xn(e)), t(" parentDummyChains", () => ds(e)), t(" addBorderSegments", () => ps(e)), t(" order", () => _o(e, o)), t(" insertSelfEdges", () => yr(e)), t(" adjustCoordinateSystem", () => so.adjust(e)), t(" position", () => Ks(e)), t(" positionSelfEdges", () => kr(e)), t(" removeBorderNodes", () => pr(e)), t(" normalize.undo", () => Kn(e)), t(" fixupEdgeLabelCoords", () => vr(e)), t(" undoCoordinateSystem", () => so.undo(e)), t(" translateGraph", () => mr(e)), t(" assignNodeIntersects", () => gr(e)), t(" reversePoints", () => br(e)), t(" acyclic.undo", () => Un(e));
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function tr(e, t) {
|
|
1562
1562
|
e.nodes().forEach((s) => {
|
|
1563
1563
|
const i = e.node(s), r = t.node(s);
|
|
1564
1564
|
i && (i.x = r.x, i.y = r.y, i.order = r.order, i.rank = r.rank, t.children(s).length && (i.width = r.width, i.height = r.height));
|
|
@@ -1569,22 +1569,22 @@ function Qs(e, t) {
|
|
|
1569
1569
|
const o = t.graph(), n = e.graph();
|
|
1570
1570
|
n.width = o.width, n.height = o.height;
|
|
1571
1571
|
}
|
|
1572
|
-
const
|
|
1572
|
+
const or = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], nr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, sr = ["acyclicer", "ranker", "rankdir", "align"], rr = ["width", "height", "rank"], lo = { width: 0, height: 0 }, ir = ["minlen", "weight", "width", "height", "labeloffset"], ar = {
|
|
1573
1573
|
minlen: 1,
|
|
1574
1574
|
weight: 1,
|
|
1575
1575
|
width: 0,
|
|
1576
1576
|
height: 0,
|
|
1577
1577
|
labeloffset: 10,
|
|
1578
1578
|
labelpos: "r"
|
|
1579
|
-
},
|
|
1580
|
-
function
|
|
1579
|
+
}, lr = ["labelpos", "arrowshape"];
|
|
1580
|
+
function cr(e) {
|
|
1581
1581
|
const t = ct(e.graph()), o = {
|
|
1582
|
-
...
|
|
1583
|
-
...lt(t,
|
|
1584
|
-
...Oe(t,
|
|
1582
|
+
...nr,
|
|
1583
|
+
...lt(t, or),
|
|
1584
|
+
...Oe(t, sr)
|
|
1585
1585
|
}, n = new oe({ multigraph: !0, compound: !0 });
|
|
1586
1586
|
return n.setGraph(o), e.nodes().forEach((s) => {
|
|
1587
|
-
const i = ct(e.node(s)), r = lt(i,
|
|
1587
|
+
const i = ct(e.node(s)), r = lt(i, rr);
|
|
1588
1588
|
Object.keys(lo).forEach((a) => {
|
|
1589
1589
|
r[a] === void 0 && (r[a] = lo[a]);
|
|
1590
1590
|
}), n.setNode(s, r), n.setParent(s, e.parent(s));
|
|
@@ -1593,43 +1593,43 @@ function ar(e) {
|
|
|
1593
1593
|
n.setEdge(
|
|
1594
1594
|
s,
|
|
1595
1595
|
{
|
|
1596
|
-
...
|
|
1597
|
-
...lt(i,
|
|
1598
|
-
...Oe(i,
|
|
1596
|
+
...ar,
|
|
1597
|
+
...lt(i, ir),
|
|
1598
|
+
...Oe(i, lr)
|
|
1599
1599
|
}
|
|
1600
1600
|
);
|
|
1601
1601
|
}), n;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function ur(e) {
|
|
1604
1604
|
const t = e.graph();
|
|
1605
1605
|
t.ranksep /= 2, e.edges().forEach((o) => {
|
|
1606
1606
|
const n = e.edge(o);
|
|
1607
1607
|
n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset);
|
|
1608
1608
|
});
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function dr(e) {
|
|
1611
1611
|
e.edges().forEach((t) => {
|
|
1612
1612
|
const o = e.edge(t);
|
|
1613
1613
|
if (o.width && o.height) {
|
|
1614
1614
|
const n = e.node(t.v), i = { rank: (e.node(t.w).rank - n.rank) / 2 + n.rank, e: t };
|
|
1615
|
-
|
|
1615
|
+
be(e, "edge-proxy", i, "_ep");
|
|
1616
1616
|
}
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function fr(e) {
|
|
1620
1620
|
let t = 0;
|
|
1621
1621
|
e.nodes().forEach((o) => {
|
|
1622
1622
|
const n = e.node(o);
|
|
1623
1623
|
n.borderTop && (n.minRank = e.node(n.borderTop).rank, n.maxRank = e.node(n.borderBottom).rank, t = Math.max(t, n.maxRank));
|
|
1624
1624
|
}), e.graph().maxRank = t;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function hr(e) {
|
|
1627
1627
|
e.nodes().forEach((t) => {
|
|
1628
1628
|
const o = e.node(t);
|
|
1629
1629
|
o.dummy === "edge-proxy" && (e.edge(o.e).labelRank = o.rank, e.removeNode(t));
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function mr(e) {
|
|
1633
1633
|
let t = Number.POSITIVE_INFINITY, o = 0, n = Number.POSITIVE_INFINITY, s = 0;
|
|
1634
1634
|
const i = e.graph(), r = i.marginx || 0, a = i.marginy || 0;
|
|
1635
1635
|
function l(c) {
|
|
@@ -1661,17 +1661,17 @@ function co(e, t, o) {
|
|
|
1661
1661
|
y: e.y + s * r
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function gr(e) {
|
|
1665
1665
|
e.edges().forEach((o) => {
|
|
1666
1666
|
const n = e.edge(o), s = e.node(o.v), i = e.node(o.w);
|
|
1667
1667
|
let r, a;
|
|
1668
1668
|
!n.points || !n.points.length ? (n.points = [], r = i, a = s) : (r = n.points[0], a = n.points[n.points.length - 1]);
|
|
1669
|
-
const l = ft(s, r), c = ft(i, a), f = n.points.length ? n.points[0] : r, m = n.points.length ? n.points[n.points.length - 1] : a, g = n.arrowshape, w = g === "normal" || g === "vee",
|
|
1669
|
+
const l = ft(s, r), c = ft(i, a), f = n.points.length ? n.points[0] : r, m = n.points.length ? n.points[n.points.length - 1] : a, g = n.arrowshape, w = g === "normal" || g === "vee", A = !!n.reversed;
|
|
1670
1670
|
let x = l, P = c;
|
|
1671
|
-
w && (
|
|
1671
|
+
w && (A ? x = co(l, f, 4) : P = co(c, m, 4)), n.points.unshift(x), n.points.push(P);
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function vr(e) {
|
|
1675
1675
|
e.edges().forEach((t) => {
|
|
1676
1676
|
const o = e.edge(t);
|
|
1677
1677
|
if (Object.hasOwn(o, "x"))
|
|
@@ -1685,13 +1685,13 @@ function mr(e) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function br(e) {
|
|
1689
1689
|
e.edges().forEach((t) => {
|
|
1690
1690
|
const o = e.edge(t);
|
|
1691
1691
|
o.reversed && o.points.reverse();
|
|
1692
1692
|
});
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function pr(e) {
|
|
1695
1695
|
e.nodes().forEach((t) => {
|
|
1696
1696
|
if (e.children(t).length) {
|
|
1697
1697
|
const o = e.node(t), n = e.node(o.borderTop), s = e.node(o.borderBottom), i = e.node(o.borderLeft[o.borderLeft.length - 1]), r = e.node(o.borderRight[o.borderRight.length - 1]);
|
|
@@ -1701,7 +1701,7 @@ function vr(e) {
|
|
|
1701
1701
|
e.node(t).dummy === "border" && e.removeNode(t);
|
|
1702
1702
|
});
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function wr(e) {
|
|
1705
1705
|
e.edges().forEach((t) => {
|
|
1706
1706
|
if (t.v === t.w) {
|
|
1707
1707
|
const o = e.node(t.v);
|
|
@@ -1709,13 +1709,13 @@ function pr(e) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function yr(e) {
|
|
1713
1713
|
De(e).forEach((o) => {
|
|
1714
1714
|
let n = 0;
|
|
1715
1715
|
o.forEach((s, i) => {
|
|
1716
1716
|
const r = e.node(s);
|
|
1717
1717
|
r.order = i + n, (r.selfEdges || []).forEach((a) => {
|
|
1718
|
-
|
|
1718
|
+
be(e, "selfedge", {
|
|
1719
1719
|
width: a.label.width,
|
|
1720
1720
|
height: a.label.height,
|
|
1721
1721
|
rank: r.rank,
|
|
@@ -1727,7 +1727,7 @@ function br(e) {
|
|
|
1727
1727
|
});
|
|
1728
1728
|
});
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function kr(e) {
|
|
1731
1731
|
e.nodes().forEach((t) => {
|
|
1732
1732
|
const o = e.node(t);
|
|
1733
1733
|
if (o.dummy === "selfedge") {
|
|
@@ -1752,7 +1752,7 @@ function ct(e) {
|
|
|
1752
1752
|
typeof s == "string" && (s = s.toLowerCase()), t[s] = n;
|
|
1753
1753
|
}), t;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Cr = {
|
|
1756
1756
|
rankDirection: "TB",
|
|
1757
1757
|
// "TB", "BT", "LR", "RL"
|
|
1758
1758
|
nodeSeparation: 50,
|
|
@@ -1768,12 +1768,12 @@ const yr = {
|
|
|
1768
1768
|
arrowShape: "normal",
|
|
1769
1769
|
arrowSize: 10
|
|
1770
1770
|
};
|
|
1771
|
-
function
|
|
1771
|
+
function Er(e) {
|
|
1772
1772
|
return e.length ? e.map(
|
|
1773
1773
|
(t, o) => `${o === 0 ? "M" : "L"} ${t.x} ${t.y}`
|
|
1774
1774
|
).join(" ") : "";
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function _r(e) {
|
|
1777
1777
|
if (!e.length) return "";
|
|
1778
1778
|
if (e.length === 1) {
|
|
1779
1779
|
const s = e[0];
|
|
@@ -1791,12 +1791,12 @@ function Er(e) {
|
|
|
1791
1791
|
const n = e[e.length - 1];
|
|
1792
1792
|
return o += ` L ${n.x} ${n.y}`, o;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
const { nodes: t, edges: o, configuration: n } = e, s =
|
|
1794
|
+
function xr(e) {
|
|
1795
|
+
const { nodes: t, edges: o, configuration: n } = e, s = C(null), i = C(null), r = `dag-arrow-${ut()}`;
|
|
1796
1796
|
function a(l, c, f) {
|
|
1797
1797
|
i.value = null, s.value = null;
|
|
1798
1798
|
const m = {
|
|
1799
|
-
...
|
|
1799
|
+
...Cr,
|
|
1800
1800
|
...f
|
|
1801
1801
|
}, g = new oe({ multigraph: !0, compound: !0 });
|
|
1802
1802
|
g.setGraph({
|
|
@@ -1817,7 +1817,7 @@ function Cr(e) {
|
|
|
1817
1817
|
minlen: u.minLength ?? 1,
|
|
1818
1818
|
arrowShape: m.arrowShape ?? "normal"
|
|
1819
1819
|
});
|
|
1820
|
-
}),
|
|
1820
|
+
}), Qs(g);
|
|
1821
1821
|
const w = l.map((u) => {
|
|
1822
1822
|
const j = g.node(u.id);
|
|
1823
1823
|
return {
|
|
@@ -1829,11 +1829,11 @@ function Cr(e) {
|
|
|
1829
1829
|
height: j.height,
|
|
1830
1830
|
original: u
|
|
1831
1831
|
};
|
|
1832
|
-
}),
|
|
1832
|
+
}), A = g.edges().map((u) => {
|
|
1833
1833
|
const j = g.edge(u), Q = j.points || [];
|
|
1834
1834
|
if (!Q.length)
|
|
1835
1835
|
return null;
|
|
1836
|
-
const Te = m.curvedEdges ?
|
|
1836
|
+
const Te = m.curvedEdges ? _r(Q) : Er(Q), Pe = m.arrowShape !== "undirected" ? `url(#${r})` : null, $e = c.find((ye) => ye?.from === u.v && ye?.to === u.w);
|
|
1837
1837
|
return {
|
|
1838
1838
|
id: `${u.v}->${u.w}->${ut()}`,
|
|
1839
1839
|
from: u.v,
|
|
@@ -1850,7 +1850,7 @@ function Cr(e) {
|
|
|
1850
1850
|
if (!w.length) {
|
|
1851
1851
|
s.value = {
|
|
1852
1852
|
nodes: [],
|
|
1853
|
-
edges:
|
|
1853
|
+
edges: A,
|
|
1854
1854
|
viewBox: "0 0 0 0",
|
|
1855
1855
|
arrowShape: m.arrowShape,
|
|
1856
1856
|
arrowSize: m.arrowSize
|
|
@@ -1866,16 +1866,16 @@ function Cr(e) {
|
|
|
1866
1866
|
]), we = Math.min(...P) - x, fe = Math.max(...P) + x, $ = Math.min(...J) - x, I = Math.max(...J) + x;
|
|
1867
1867
|
s.value = {
|
|
1868
1868
|
nodes: w,
|
|
1869
|
-
edges:
|
|
1869
|
+
edges: A.map((u) => ({
|
|
1870
1870
|
...u,
|
|
1871
|
-
midpoint: u.pathData ?
|
|
1871
|
+
midpoint: u.pathData ? hn(u.pathData) : { x: 0, y: 0 }
|
|
1872
1872
|
})),
|
|
1873
1873
|
viewBox: `${we} ${$} ${fe - we} ${I - $}`,
|
|
1874
1874
|
arrowShape: m.arrowShape,
|
|
1875
1875
|
arrowSize: m.arrowSize
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
|
-
return
|
|
1878
|
+
return cn(() => {
|
|
1879
1879
|
try {
|
|
1880
1880
|
const l = v(t) || [], c = v(o) || [], f = v(n) || {};
|
|
1881
1881
|
a(l, c, f);
|
|
@@ -1892,30 +1892,34 @@ function Cr(e) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
|
-
const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", backgroundPattern: { dotColor: "#3A3A3A" }, nodes: { stroke: "#6A6A6A", backgroundColor: "#2A2A2A", labels: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, edges: { stroke: "#6A6A6A" }, midpoints: { stroke: "#6A6A6A", fill: "#1A1A1A", tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } },
|
|
1895
|
+
const Ao = { userOptions: { show: !1 } }, No = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", backgroundPattern: { dotColor: "#3A3A3A" }, nodes: { stroke: "#6A6A6A", backgroundColor: "#2A2A2A", labels: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, edges: { stroke: "#6A6A6A" }, midpoints: { stroke: "#6A6A6A", fill: "#1A1A1A", tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, So = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", backgroundPattern: { dotColor: "#3A3A3A" }, nodes: { stroke: "#6A6A6A", backgroundColor: "#2A2A2A", labels: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, edges: { stroke: "#6A6A6A" }, midpoints: { stroke: "#6A6A6A", fill: "#1A1A1A", tooltip: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Lo = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", backgroundPattern: { dotColor: "#edc7bb" }, nodes: { stroke: "#5D4037", backgroundColor: "#fcf9f0", labels: { color: "#424242" }, tooltip: { backgroundColor: "#5D4037", color: "#FFF8E1" } }, edges: { stroke: "#5D4037" }, midpoints: { stroke: "#5D4037", fill: "#FFF8E1", tooltip: { backgroundColor: "#5D4037", color: "#FFF8E1" } }, controls: { backgroundColor: "#FFF8E1", buttonColor: "#FFF8E1", color: "#424242", border: "1px solid #d9bbb2" }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, Mo = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", backgroundPattern: { dotColor: "#3E3E3E" }, nodes: { stroke: "#965039", backgroundColor: "#2A2A2A", labels: { color: "#BDBDBD" }, tooltip: { backgroundColor: "#3A3A3A", color: "#FFF8E1" } }, edges: { stroke: "#965039" }, midpoints: { stroke: "#965039", fill: "#1E1E1E", tooltip: { backgroundColor: "#3A3A3A", color: "#FFF8E1" } }, controls: { backgroundColor: "#1E1E1E", buttonColor: "#1E1E1E", color: "#BDBDBD", border: "1px solid #3A3A3A" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, Oo = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", backgroundPattern: { dotColor: "#2f3d2f" }, nodes: { stroke: "#66CC66", backgroundColor: "#2A2A2A", labels: { color: "#99AA99" }, tooltip: { backgroundColor: "#3A3A3A", color: "#99AA99" } }, edges: { stroke: "#66CC66" }, midpoints: { stroke: "#66CC66", fill: "#1A1A1A", tooltip: { backgroundColor: "#3A3A3A", color: "#99AA99" } }, controls: { backgroundColor: "#1A1A1A", buttonColor: "#1A1A1A", color: "#99AA99", border: "1px solid #1e361e" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, Do = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", backgroundPattern: { dotColor: "#dbcfc5" }, nodes: { stroke: "#8F837A", backgroundColor: "#ffffff", labels: { color: "#8A9892" }, tooltip: { backgroundColor: "#8F837A", color: "#fbfafa" } }, edges: { stroke: "#8F837A" }, midpoints: { stroke: "#8F837A", fill: "#fbfafa", tooltip: { backgroundColor: "#8F837A", color: "#fbfafa" } }, controls: { backgroundColor: "#fbfafa", buttonColor: "#fbfafa", color: "#99AA99", border: "1px solid #ebded3" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, Ro = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", backgroundPattern: { dotColor: "#c3cfd9" }, layout: { arrowShape: "normal", curvedEdges: !1 }, nodes: { stroke: "#50606C", backgroundColor: "#ffffff", borderRadius: 0, labels: { color: "#50606C" }, tooltip: { backgroundColor: "#50606C", color: "#f6f6fb" } }, edges: { stroke: "#50606C" }, midpoints: { stroke: "#50606C", fill: "#fbfafa", tooltip: { backgroundColor: "#50606C", color: "#f6f6fb" } }, controls: { backgroundColor: "#f6f6fb", buttonColor: "#f6f6fb", color: "#50606C", border: "1px solid #98aab8", borderRadius: "0" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, To = {
|
|
1896
1896
|
default: {},
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1897
|
+
minimal: Ao,
|
|
1898
|
+
minimalDark: No,
|
|
1899
|
+
dark: So,
|
|
1900
|
+
celebration: Lo,
|
|
1901
|
+
celebrationNight: Mo,
|
|
1902
|
+
hack: Oo,
|
|
1903
|
+
zen: Do,
|
|
1904
|
+
concrete: Ro
|
|
1905
|
+
}, yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1904
1906
|
__proto__: null,
|
|
1905
|
-
celebration:
|
|
1906
|
-
celebrationNight:
|
|
1907
|
-
concrete:
|
|
1908
|
-
dark:
|
|
1909
|
-
default:
|
|
1910
|
-
hack:
|
|
1911
|
-
|
|
1912
|
-
|
|
1907
|
+
celebration: Lo,
|
|
1908
|
+
celebrationNight: Mo,
|
|
1909
|
+
concrete: Ro,
|
|
1910
|
+
dark: So,
|
|
1911
|
+
default: To,
|
|
1912
|
+
hack: Oo,
|
|
1913
|
+
minimal: Ao,
|
|
1914
|
+
minimalDark: No,
|
|
1915
|
+
zen: Do
|
|
1916
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = ["id"], Nr = {
|
|
1913
1917
|
key: 0,
|
|
1914
1918
|
class: "dag-chart-error"
|
|
1915
|
-
},
|
|
1919
|
+
}, Sr = ["viewBox", "xmlns"], Lr = { key: 0 }, Mr = ["id", "width", "height"], Or = ["cx", "cy", "r", "fill"], Dr = ["x", "y", "width", "height", "fill"], Rr = { key: 2 }, Tr = ["id", "markerWidth", "markerHeight", "refX", "refY"], Pr = ["d", "fill", "stroke"], $r = ["d", "fill", "stroke"], Fr = { class: "vue-ui-dag-edges" }, Br = ["d", "stroke", "stroke-width"], zr = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter"], Vr = { class: "vue-ui-dag-nodes" }, Ir = ["onClick", "onMouseenter"], Gr = ["x", "y", "width", "height", "rx", "fill", "stroke", "stroke-width"], jr = ["x", "y", "width", "height"], Wr = { class: "vue-ui-dag-edges" }, Yr = ["d", "stroke-width", "marker-end"], Hr = { class: "vue-ui-dag-node-labels" }, Ur = ["onClick", "onMouseenter"], Zr = ["x", "y", "font-size", "fill", "font-weight"], Xr = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], qr = { key: 1 }, Kr = {
|
|
1916
1920
|
key: 6,
|
|
1917
1921
|
class: "vue-data-ui-watermark"
|
|
1918
|
-
},
|
|
1922
|
+
}, Jr = ["data-position"], Qr = { key: 0 }, ei = ["data-position"], ti = { key: 0 }, uo = 1.5, oi = {
|
|
1919
1923
|
__name: "vue-ui-dag",
|
|
1920
1924
|
props: {
|
|
1921
1925
|
dataset: {
|
|
@@ -1936,8 +1940,8 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
1936
1940
|
},
|
|
1937
1941
|
emits: ["onNodeClick", "onMidpointEnter", "onMidpointLeave"],
|
|
1938
1942
|
setup(e, { expose: t, emit: o }) {
|
|
1939
|
-
const n = et(() => import("./PenAndPaper-
|
|
1940
|
-
...
|
|
1943
|
+
const n = et(() => import("./PenAndPaper-LTuSTmWE.js")), s = et(() => import("./UserOptions-CX7Xsusk.js")), i = et(() => import("./PackageVersion-CQxJyGQr.js")), { vue_ui_dag: r } = kn(), { isThemeValid: a, warnInvalidTheme: l } = An(), c = e, f = o, m = C(null), g = C(ut()), w = C(null), A = C(null), x = C(null), P = C(0), J = C(0), we = C(!1), fe = C(!1), $ = C(null), I = C(null), u = C(Ye()), j = C(u.value.style.chart.width), Q = C(u.value.style.chart.height), Te = C({ x: 0, y: 0 }), G = C(null), Pe = C(null), $e = C({ left: "0px", top: "0px" }), ye = C("top"), ne = C(!1), gt = C({ x: 0, y: 0 }), vt = C({ x: 0, y: 0 }), ke = C(null), Ge = C(null), je = C({ left: "0px", top: "0px" }), bt = C("top"), Fe = C(!1), Ce = C(!1), { svgRef: se } = Sn({ config: u.value.style.chart.title }), { userOptionsVisible: We, setUserOptionsVisibility: pt, keepUserOptionState: wt } = Nn({ config: u.value }), ee = C(u.value.style.chart.layout.rankDirection), { loading: Ee, FINAL_DATASET: yt, manualLoading: kt } = Cn({
|
|
1944
|
+
...un(c),
|
|
1941
1945
|
FINAL_CONFIG: u,
|
|
1942
1946
|
prepareConfig: Ye,
|
|
1943
1947
|
skeletonDataset: {
|
|
@@ -1951,7 +1955,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
1951
1955
|
{ from: "A", to: "C" }
|
|
1952
1956
|
]
|
|
1953
1957
|
},
|
|
1954
|
-
skeletonConfig:
|
|
1958
|
+
skeletonConfig: mn({
|
|
1955
1959
|
defaultConfig: u.value,
|
|
1956
1960
|
userConfig: {
|
|
1957
1961
|
userOptions: { show: !1 },
|
|
@@ -1978,12 +1982,12 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
1978
1982
|
const h = nt({
|
|
1979
1983
|
userConfig: c.config,
|
|
1980
1984
|
defaultConfig: r
|
|
1981
|
-
}),
|
|
1982
|
-
if (!
|
|
1985
|
+
}), b = h.theme;
|
|
1986
|
+
if (!b) return h;
|
|
1983
1987
|
if (!a.value(h))
|
|
1984
1988
|
return l(h), h;
|
|
1985
1989
|
const d = nt({
|
|
1986
|
-
userConfig:
|
|
1990
|
+
userConfig: To[b] || c.config,
|
|
1987
1991
|
defaultConfig: h
|
|
1988
1992
|
});
|
|
1989
1993
|
return nt({
|
|
@@ -1993,7 +1997,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
1993
1997
|
}
|
|
1994
1998
|
const He = H(() => !!u.value.debug);
|
|
1995
1999
|
Gt(async () => {
|
|
1996
|
-
|
|
2000
|
+
gn(c.dataset) && (Zt({
|
|
1997
2001
|
componentName: "VueUiDag",
|
|
1998
2002
|
type: "dataset",
|
|
1999
2003
|
debug: He.value
|
|
@@ -2003,103 +2007,103 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2003
2007
|
property: "nodes",
|
|
2004
2008
|
index: 0,
|
|
2005
2009
|
debug: He.value
|
|
2006
|
-
}), fe.value = !1, kt.value = !0), fe.value = !0, await
|
|
2007
|
-
}),
|
|
2008
|
-
|
|
2010
|
+
}), fe.value = !1, kt.value = !0), fe.value = !0, await Ae(), Vt();
|
|
2011
|
+
}), Ne(() => c.config, async (h) => {
|
|
2012
|
+
Ee.value || (u.value = Ye()), We.value = !u.value.userOptions.showOnChartHover, P.value += 1, ee.value = u.value.style.chart.layout.rankDirection, j.value = u.value.style.chart.width, Q.value = u.value.style.chart.height, he.value = u.value.style.chart.zoom.active, await Ae(), Vt();
|
|
2009
2013
|
}, { deep: !0 });
|
|
2010
|
-
const { isPrinting:
|
|
2014
|
+
const { isPrinting: Ct, isImaging: Et, generatePdf: _t, generateImage: xt } = _n({
|
|
2011
2015
|
elementId: `dag_${g.value}`,
|
|
2012
2016
|
fileName: u.value.style.chart.title.text || "vue-ui-dag",
|
|
2013
2017
|
options: u.value.userOptions.print
|
|
2014
|
-
}),
|
|
2018
|
+
}), Po = H(() => u.value.style.chart.backgroundColor), $o = H(() => u.value.style.chart.title), { exportSvg: Fo, getSvg: Bo } = xn({
|
|
2015
2019
|
svg: se,
|
|
2016
|
-
title:
|
|
2020
|
+
title: $o,
|
|
2017
2021
|
legend: void 0,
|
|
2018
2022
|
legendItems: void 0,
|
|
2019
|
-
backgroundColor:
|
|
2023
|
+
backgroundColor: Po
|
|
2020
2024
|
});
|
|
2021
|
-
async function
|
|
2025
|
+
async function At({ isCb: h }) {
|
|
2022
2026
|
if (h) {
|
|
2023
|
-
const { blob:
|
|
2024
|
-
u.value.userOptions.callbacks.svg({ blob:
|
|
2027
|
+
const { blob: b, url: d, text: p, dataUrl: O } = await Bo();
|
|
2028
|
+
u.value.userOptions.callbacks.svg({ blob: b, url: d, text: p, dataUrl: O });
|
|
2025
2029
|
} else
|
|
2026
|
-
|
|
2030
|
+
Fo();
|
|
2027
2031
|
}
|
|
2028
|
-
function
|
|
2029
|
-
we.value = !0,
|
|
2032
|
+
function zo() {
|
|
2033
|
+
we.value = !0, pt(!0);
|
|
2030
2034
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2035
|
+
function Vo() {
|
|
2036
|
+
pt(!1), we.value = !1;
|
|
2033
2037
|
}
|
|
2034
|
-
function
|
|
2038
|
+
function Nt({
|
|
2035
2039
|
tooltipRef: h,
|
|
2036
|
-
isVisibleRef:
|
|
2040
|
+
isVisibleRef: b,
|
|
2037
2041
|
anchorRef: d,
|
|
2038
|
-
styleRef:
|
|
2042
|
+
styleRef: p,
|
|
2039
2043
|
placementRef: O,
|
|
2040
|
-
offsetRef:
|
|
2041
|
-
margin:
|
|
2044
|
+
offsetRef: N,
|
|
2045
|
+
margin: E = 24
|
|
2042
2046
|
}) {
|
|
2043
2047
|
return function() {
|
|
2044
2048
|
const W = h.value;
|
|
2045
|
-
if (!W || !
|
|
2046
|
-
const S = W.getBoundingClientRect(), T = window.innerWidth, B = window.innerHeight, Y = d.value.x, q = d.value.y, U =
|
|
2047
|
-
let D = q - le - S.height -
|
|
2048
|
-
if (D <
|
|
2049
|
-
const ge = q + le +
|
|
2050
|
-
ge + S.height <= B -
|
|
2049
|
+
if (!W || !b.value) return;
|
|
2050
|
+
const S = W.getBoundingClientRect(), T = window.innerWidth, B = window.innerHeight, Y = d.value.x, q = d.value.y, U = N?.value?.x ?? 0, le = N?.value?.y ?? 0;
|
|
2051
|
+
let D = q - le - S.height - E, Z = Y - S.width / 2, _e = "top";
|
|
2052
|
+
if (D < E) {
|
|
2053
|
+
const ge = q + le + E;
|
|
2054
|
+
ge + S.height <= B - E ? (D = ge, _e = "bottom") : (D = q - S.height / 2, D < E && (D = E), D + S.height > B - E && (D = B - S.height - E), _e = "center");
|
|
2051
2055
|
}
|
|
2052
|
-
Z <
|
|
2053
|
-
const
|
|
2054
|
-
if ((
|
|
2056
|
+
Z < E && (Z = E), Z + S.width > T - E && (Z = T - S.width - E);
|
|
2057
|
+
const rn = Z <= E, an = Z + S.width >= T - E;
|
|
2058
|
+
if ((rn || an) && _e !== "center") {
|
|
2055
2059
|
let ge, xe;
|
|
2056
|
-
const
|
|
2057
|
-
T - (Y + U) -
|
|
2060
|
+
const ln = Y - U - E;
|
|
2061
|
+
T - (Y + U) - E >= ln ? (ge = "right", xe = Y + U + E) : (ge = "left", xe = Y - U - E - S.width), xe >= E && xe + S.width <= T - E && (Z = xe, D = q - S.height / 2, D < E && (D = E), D + S.height > B - E && (D = B - S.height - E), _e = ge);
|
|
2058
2062
|
}
|
|
2059
|
-
O.value = _e,
|
|
2063
|
+
O.value = _e, p.value = {
|
|
2060
2064
|
left: `${Z}px`,
|
|
2061
2065
|
top: `${D}px`
|
|
2062
2066
|
};
|
|
2063
2067
|
};
|
|
2064
2068
|
}
|
|
2065
|
-
const
|
|
2069
|
+
const Io = H(() => yt.value.nodes.map((h) => ({
|
|
2066
2070
|
...h,
|
|
2067
2071
|
backgroundColor: h.backgroundColor ? Xt(h.backgroundColor) : u.value.style.chart.nodes.backgroundColor,
|
|
2068
2072
|
color: h.color ? Xt(h.color) : u.value.style.chart.nodes.labels.color
|
|
2069
|
-
}))),
|
|
2073
|
+
}))), Go = H(() => yt.value.edges), jo = H(() => ({
|
|
2070
2074
|
...u.value.style.chart.layout,
|
|
2071
2075
|
rankDirection: ee.value
|
|
2072
|
-
})), { layoutData: k, lastError: St, arrowMarkerIdentifier:
|
|
2073
|
-
nodes:
|
|
2074
|
-
edges:
|
|
2075
|
-
configuration:
|
|
2076
|
+
})), { layoutData: k, lastError: St, arrowMarkerIdentifier: Wo } = xr({
|
|
2077
|
+
nodes: Io,
|
|
2078
|
+
edges: Go,
|
|
2079
|
+
configuration: jo
|
|
2076
2080
|
});
|
|
2077
2081
|
function Lt(h) {
|
|
2078
|
-
return k.value ? k.value.nodes.find((
|
|
2082
|
+
return k.value ? k.value.nodes.find((b) => b.id === h) : null;
|
|
2079
2083
|
}
|
|
2080
|
-
const
|
|
2084
|
+
const Yo = H(() => {
|
|
2081
2085
|
if (!k.value) return [];
|
|
2082
|
-
const h = u.value.style.chart.edges.stroke,
|
|
2086
|
+
const h = u.value.style.chart.edges.stroke, b = /* @__PURE__ */ new Set();
|
|
2083
2087
|
return k.value.edges.forEach((d) => {
|
|
2084
|
-
|
|
2085
|
-
}), Array.from(
|
|
2088
|
+
b.add(d.original?.color || h);
|
|
2089
|
+
}), Array.from(b);
|
|
2086
2090
|
});
|
|
2087
2091
|
function Mt(h) {
|
|
2088
|
-
return `${
|
|
2092
|
+
return `${Wo}-${String(h).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
2089
2093
|
}
|
|
2090
2094
|
const Ot = H(() => {
|
|
2091
|
-
const h = j.value,
|
|
2092
|
-
return !O && !
|
|
2095
|
+
const h = j.value, b = Q.value, d = Number(h), p = Number(b), O = Number.isFinite(d) && d > 0, N = Number.isFinite(p) && p > 0;
|
|
2096
|
+
return !O && !N ? null : {
|
|
2093
2097
|
width: O ? d : null,
|
|
2094
|
-
height:
|
|
2098
|
+
height: N ? p : null
|
|
2095
2099
|
};
|
|
2096
|
-
}), re =
|
|
2100
|
+
}), re = C(null), he = C(u.value.style.chart.zoom.active), {
|
|
2097
2101
|
viewBox: me,
|
|
2098
2102
|
resetZoom: Be,
|
|
2099
|
-
setInitialViewBox:
|
|
2103
|
+
setInitialViewBox: Ho,
|
|
2100
2104
|
scale: Dt,
|
|
2101
2105
|
zoomByFactor: Rt
|
|
2102
|
-
} =
|
|
2106
|
+
} = yn(
|
|
2103
2107
|
se,
|
|
2104
2108
|
{ x: 0, y: 0, width: 100, height: 100 },
|
|
2105
2109
|
1,
|
|
@@ -2108,47 +2112,47 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2108
2112
|
ne.value = !1;
|
|
2109
2113
|
}
|
|
2110
2114
|
);
|
|
2111
|
-
function
|
|
2115
|
+
function Uo() {
|
|
2112
2116
|
he.value = !he.value;
|
|
2113
2117
|
}
|
|
2114
2118
|
function Tt() {
|
|
2115
2119
|
const h = k.value && k.value.viewBox;
|
|
2116
2120
|
if (!h) return;
|
|
2117
|
-
const
|
|
2118
|
-
if (
|
|
2119
|
-
const [d,
|
|
2120
|
-
if (!Number.isFinite(d) || !Number.isFinite(
|
|
2121
|
+
const b = String(h).split(" ").map(Number);
|
|
2122
|
+
if (b.length !== 4) return;
|
|
2123
|
+
const [d, p, O, N] = b;
|
|
2124
|
+
if (!Number.isFinite(d) || !Number.isFinite(p) || !Number.isFinite(O) || !Number.isFinite(N))
|
|
2121
2125
|
return;
|
|
2122
|
-
let
|
|
2126
|
+
let E = O, R = N, W = d, S = p;
|
|
2123
2127
|
const T = Ot.value;
|
|
2124
|
-
T && (T.width !== null && (
|
|
2125
|
-
{ x: W, y: S, width:
|
|
2128
|
+
T && (T.width !== null && (E = T.width), T.height !== null && (R = T.height), W = d - (E - O) / 2, S = p - (R - N) / 2), Ho(
|
|
2129
|
+
{ x: W, y: S, width: E, height: R },
|
|
2126
2130
|
{ overwriteCurrentIfNotZoomed: !0 }
|
|
2127
2131
|
);
|
|
2128
2132
|
}
|
|
2129
|
-
|
|
2133
|
+
Ne(
|
|
2130
2134
|
() => k.value && k.value.viewBox,
|
|
2131
2135
|
() => {
|
|
2132
2136
|
Tt();
|
|
2133
2137
|
},
|
|
2134
2138
|
{ immediate: !0 }
|
|
2135
|
-
),
|
|
2139
|
+
), Ne(
|
|
2136
2140
|
() => Ot.value,
|
|
2137
2141
|
() => {
|
|
2138
2142
|
Tt();
|
|
2139
2143
|
}
|
|
2140
|
-
),
|
|
2144
|
+
), Ne(() => Ce.value, (h) => {
|
|
2141
2145
|
he.value = !h;
|
|
2142
2146
|
});
|
|
2143
|
-
const
|
|
2147
|
+
const Zo = H(() => {
|
|
2144
2148
|
const h = me.value;
|
|
2145
2149
|
return h ? `${h.x} ${h.y} ${h.width} ${h.height}` : "0 0 0 0";
|
|
2146
|
-
}), ie =
|
|
2150
|
+
}), ie = C(!1);
|
|
2147
2151
|
function Pt(h) {
|
|
2148
2152
|
ie.value = h, J.value += 1;
|
|
2149
2153
|
}
|
|
2150
2154
|
function Ue() {
|
|
2151
|
-
|
|
2155
|
+
Ce.value = !Ce.value;
|
|
2152
2156
|
}
|
|
2153
2157
|
function Ze() {
|
|
2154
2158
|
Rt(uo, !0);
|
|
@@ -2160,61 +2164,61 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2160
2164
|
function Ke() {
|
|
2161
2165
|
ee.value = qe[(qe.indexOf(ee.value) + 1) % qe.length], Be();
|
|
2162
2166
|
}
|
|
2163
|
-
const
|
|
2167
|
+
const Xo = Nt({
|
|
2164
2168
|
tooltipRef: Pe,
|
|
2165
2169
|
isVisibleRef: Fe,
|
|
2166
2170
|
anchorRef: Te,
|
|
2167
2171
|
styleRef: $e,
|
|
2168
2172
|
placementRef: ye
|
|
2169
|
-
}),
|
|
2173
|
+
}), qo = Nt({
|
|
2170
2174
|
tooltipRef: Ge,
|
|
2171
2175
|
isVisibleRef: ne,
|
|
2172
2176
|
anchorRef: gt,
|
|
2173
2177
|
styleRef: je,
|
|
2174
|
-
placementRef:
|
|
2178
|
+
placementRef: bt,
|
|
2175
2179
|
offsetRef: vt
|
|
2176
2180
|
});
|
|
2177
|
-
async function
|
|
2181
|
+
async function Ko(h) {
|
|
2178
2182
|
f("onMidpointEnter", h);
|
|
2179
|
-
const
|
|
2180
|
-
if (!
|
|
2181
|
-
const d =
|
|
2183
|
+
const b = se.value;
|
|
2184
|
+
if (!b || !h?.midpoint) return;
|
|
2185
|
+
const d = b.createSVGPoint();
|
|
2182
2186
|
d.x = h.midpoint.x, d.y = h.midpoint.y;
|
|
2183
|
-
const
|
|
2184
|
-
if (!
|
|
2185
|
-
const O = d.matrixTransform(
|
|
2187
|
+
const p = b.getScreenCTM();
|
|
2188
|
+
if (!p) return;
|
|
2189
|
+
const O = d.matrixTransform(p);
|
|
2186
2190
|
Te.value = {
|
|
2187
2191
|
x: O.x,
|
|
2188
2192
|
y: O.y
|
|
2189
|
-
}, G.value = h, Fe.value = !0, await
|
|
2193
|
+
}, G.value = h, Fe.value = !0, await Ae(), Xo();
|
|
2190
2194
|
}
|
|
2191
|
-
function
|
|
2195
|
+
function Jo() {
|
|
2192
2196
|
Fe.value = !1, G.value = null, f("onMidpointLeave");
|
|
2193
2197
|
}
|
|
2194
2198
|
async function $t(h) {
|
|
2195
2199
|
if (f("onNodeClick", h), !u.value.style.chart.nodes.tooltip.showOnClick) return;
|
|
2196
|
-
const
|
|
2197
|
-
if (!p) return;
|
|
2198
|
-
const d = p.createSVGPoint();
|
|
2199
|
-
d.x = h.x, d.y = h.y;
|
|
2200
|
-
const b = p.getScreenCTM();
|
|
2200
|
+
const b = se.value;
|
|
2201
2201
|
if (!b) return;
|
|
2202
|
-
const
|
|
2202
|
+
const d = b.createSVGPoint();
|
|
2203
|
+
d.x = h.x, d.y = h.y;
|
|
2204
|
+
const p = b.getScreenCTM();
|
|
2205
|
+
if (!p) return;
|
|
2206
|
+
const O = d.matrixTransform(p), N = u.value.style.chart.layout.nodeWidth, E = u.value.style.chart.layout.nodeHeight, R = p.a, W = p.d, S = N * R, T = E * W;
|
|
2203
2207
|
vt.value = {
|
|
2204
2208
|
x: S / 2,
|
|
2205
2209
|
y: T / 2
|
|
2206
2210
|
}, gt.value = {
|
|
2207
2211
|
x: O.x,
|
|
2208
2212
|
y: O.y
|
|
2209
|
-
}, ke.value = h, ne.value = !0, await
|
|
2213
|
+
}, ke.value = h, ne.value = !0, await Ae(), qo();
|
|
2210
2214
|
}
|
|
2211
2215
|
function Ft() {
|
|
2212
2216
|
ne.value = !1, ke.value = null;
|
|
2213
2217
|
}
|
|
2214
2218
|
function Bt(h) {
|
|
2215
2219
|
if (!ne.value) return;
|
|
2216
|
-
const
|
|
2217
|
-
if (
|
|
2220
|
+
const b = Ge.value;
|
|
2221
|
+
if (b && b.contains(h.target))
|
|
2218
2222
|
return;
|
|
2219
2223
|
const d = se.value;
|
|
2220
2224
|
d && d.contains(h.target) && h.target.closest(".vue-ui-dag-node") || Ft();
|
|
@@ -2232,37 +2236,37 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2232
2236
|
$.value && (I.value && $.value.unobserve(I.value), $.value.disconnect(), $.value = null, I.value = null);
|
|
2233
2237
|
return;
|
|
2234
2238
|
}
|
|
2235
|
-
const h =
|
|
2239
|
+
const h = pn(() => {
|
|
2236
2240
|
if (!m.value) return;
|
|
2237
|
-
const { width:
|
|
2241
|
+
const { width: b, height: d } = wn({
|
|
2238
2242
|
chart: m.value,
|
|
2239
2243
|
title: u.value.style.chart.title.text ? w.value : null,
|
|
2240
2244
|
legend: u.value.style.chart.controls.show ? x.value?.$el : null,
|
|
2241
|
-
source:
|
|
2245
|
+
source: A.value
|
|
2242
2246
|
});
|
|
2243
2247
|
requestAnimationFrame(() => {
|
|
2244
|
-
j.value = Math.max(0.1,
|
|
2248
|
+
j.value = Math.max(0.1, b), Q.value = Math.max(0.1, d - 12);
|
|
2245
2249
|
});
|
|
2246
2250
|
});
|
|
2247
2251
|
$.value && (I.value && $.value.unobserve(I.value), $.value.disconnect()), $.value = new ResizeObserver(h), I.value = m.value ? m.value.parentNode : null, I.value && $.value.observe(I.value), h();
|
|
2248
2252
|
}
|
|
2249
|
-
function
|
|
2253
|
+
function Qo(h, b = {}) {
|
|
2250
2254
|
const {
|
|
2251
2255
|
direction: d = -1,
|
|
2252
|
-
mode:
|
|
2256
|
+
mode: p = "oneLapNearest",
|
|
2253
2257
|
dasharray: O = null
|
|
2254
|
-
} =
|
|
2258
|
+
} = b;
|
|
2255
2259
|
if (!h || typeof h.getTotalLength != "function")
|
|
2256
2260
|
return He.value && console.warn(
|
|
2257
2261
|
"VueUiDag @getIdealDashoffsetDelta: invalid path element",
|
|
2258
2262
|
h
|
|
2259
2263
|
), 0;
|
|
2260
|
-
const
|
|
2264
|
+
const N = h.getTotalLength(), E = O ?? h.getAttribute("stroke-dasharray") ?? (typeof getComputedStyle == "function" ? getComputedStyle(h).strokeDasharray : ""), R = Y(E);
|
|
2261
2265
|
if (!Number.isFinite(R) || R <= 0)
|
|
2262
|
-
return d *
|
|
2263
|
-
const W = Math.max(1, Math.round(
|
|
2266
|
+
return d * N;
|
|
2267
|
+
const W = Math.max(1, Math.round(N / R)), S = Math.max(1, Math.ceil(N / R)), T = Math.max(1, Math.floor(N / R));
|
|
2264
2268
|
let B;
|
|
2265
|
-
return
|
|
2269
|
+
return p === "pattern" ? B = R : p === "oneLapCeil" ? B = S * R : p === "oneLapFloor" ? B = T * R : B = W * R, d * B;
|
|
2266
2270
|
function Y(q) {
|
|
2267
2271
|
if (!q || q === "none") return NaN;
|
|
2268
2272
|
const U = String(q).replace(/,/g, " ").trim().split(/\s+/).map((D) => Number.parseFloat(D)).filter((D) => Number.isFinite(D));
|
|
@@ -2271,8 +2275,8 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2271
2275
|
return U.length % 2 === 1 ? le * 2 : le;
|
|
2272
2276
|
}
|
|
2273
2277
|
}
|
|
2274
|
-
const Je =
|
|
2275
|
-
function
|
|
2278
|
+
const Je = C(/* @__PURE__ */ new Map()), Qe = C(/* @__PURE__ */ new Map());
|
|
2279
|
+
function en(h) {
|
|
2276
2280
|
return function(d) {
|
|
2277
2281
|
d ? Je.value.set(h, d) : Je.value.delete(h);
|
|
2278
2282
|
};
|
|
@@ -2285,61 +2289,61 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2285
2289
|
}
|
|
2286
2290
|
}), Qe.value.clear();
|
|
2287
2291
|
}
|
|
2288
|
-
function
|
|
2292
|
+
function tn() {
|
|
2289
2293
|
It();
|
|
2290
2294
|
const h = k.value?.edges ?? [];
|
|
2291
2295
|
if (!h.length) return;
|
|
2292
|
-
const
|
|
2293
|
-
h.forEach((
|
|
2294
|
-
if (!!!
|
|
2295
|
-
const
|
|
2296
|
-
if (!
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2299
|
-
const R = ![void 0, null].includes(
|
|
2296
|
+
const b = u.value.style.chart.edges.animations, d = Number(b.referenceDistance) > 0 ? Number(b.referenceDistance) : 24;
|
|
2297
|
+
h.forEach((p) => {
|
|
2298
|
+
if (!!!p?.original?.animated) return;
|
|
2299
|
+
const N = Je.value.get(p.id);
|
|
2300
|
+
if (!N) return;
|
|
2301
|
+
const E = p?.original?.dasharray ?? b.dasharray;
|
|
2302
|
+
N.style.strokeDasharray = String(E), N.style.strokeDashoffset = "0";
|
|
2303
|
+
const R = ![void 0, null].includes(p?.original?.animationDirection), W = ![void 0, null].includes(b.animationDirection), S = R ? Number(p.original.animationDirection) : W ? Number(b.animationDirection) : -1, T = Qo(N, {
|
|
2300
2304
|
direction: S,
|
|
2301
2305
|
mode: "oneLapNearest",
|
|
2302
|
-
dasharray: String(
|
|
2303
|
-
}), B =
|
|
2306
|
+
dasharray: String(E)
|
|
2307
|
+
}), B = p?.original?.animationDurationMs ?? b.animationDurationMs ?? 1e3, Y = Number(B), U = Number.isFinite(Y) && Y > 0 ? d / Y : d / 1e3, le = Math.max(1, Math.round(Math.abs(T) / Math.max(1e-9, U))), D = N.animate(
|
|
2304
2308
|
[{ strokeDashoffset: 0 }, { strokeDashoffset: T }],
|
|
2305
2309
|
{ duration: le, iterations: 1 / 0, easing: "linear" }
|
|
2306
2310
|
);
|
|
2307
|
-
Qe.value.set(
|
|
2311
|
+
Qe.value.set(p.id, D);
|
|
2308
2312
|
});
|
|
2309
2313
|
}
|
|
2310
|
-
|
|
2314
|
+
Ne(
|
|
2311
2315
|
() => k.value && k.value.edges,
|
|
2312
2316
|
async () => {
|
|
2313
|
-
await
|
|
2317
|
+
await Ae(), tn();
|
|
2314
2318
|
},
|
|
2315
2319
|
{ deep: !0, immediate: !0 }
|
|
2316
2320
|
), jt(() => {
|
|
2317
2321
|
It();
|
|
2318
2322
|
});
|
|
2319
|
-
async function
|
|
2323
|
+
async function on({ scale: h = 2 } = {}) {
|
|
2320
2324
|
if (!m.value) return;
|
|
2321
|
-
const { width:
|
|
2325
|
+
const { width: b, height: d } = m.value.getBoundingClientRect(), p = b / d, { imageUri: O, base64: N } = await Mn({ domElement: m.value, base64: !0, img: !0, scale: h });
|
|
2322
2326
|
return {
|
|
2323
2327
|
imageUri: O,
|
|
2324
|
-
base64:
|
|
2328
|
+
base64: N,
|
|
2325
2329
|
title: u.value.style.chart.title.text ?? "vue-ui-dag",
|
|
2326
|
-
width:
|
|
2330
|
+
width: b,
|
|
2327
2331
|
height: d,
|
|
2328
|
-
aspectRatio:
|
|
2332
|
+
aspectRatio: p
|
|
2329
2333
|
};
|
|
2330
2334
|
}
|
|
2331
2335
|
const ae = H(() => {
|
|
2332
2336
|
const h = Number(u.value.style.chart.layout.nodeHeight);
|
|
2333
2337
|
return Number.isFinite(h) && h > 0 ? h / u.value.style.chart.backgroundPattern.spacingRatio : 12;
|
|
2334
|
-
}),
|
|
2335
|
-
function
|
|
2338
|
+
}), nn = H(() => ae.value * (u.value.style.chart.backgroundPattern.dotRadiusRatio / 100));
|
|
2339
|
+
function sn() {
|
|
2336
2340
|
return k.value;
|
|
2337
2341
|
}
|
|
2338
2342
|
return t({
|
|
2339
|
-
getData:
|
|
2340
|
-
getImage:
|
|
2343
|
+
getData: sn,
|
|
2344
|
+
getImage: on,
|
|
2341
2345
|
generatePdf: _t,
|
|
2342
|
-
generateSvg:
|
|
2346
|
+
generateSvg: At,
|
|
2343
2347
|
generateImage: xt,
|
|
2344
2348
|
toggleAnnotator: Ue,
|
|
2345
2349
|
toggleFullscreen: Pt,
|
|
@@ -2347,7 +2351,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2347
2351
|
zoomOut: Xe,
|
|
2348
2352
|
resetZoom: Be,
|
|
2349
2353
|
switchDirection: Ke
|
|
2350
|
-
}), (h,
|
|
2354
|
+
}), (h, b) => (y(), _("div", {
|
|
2351
2355
|
class: Wt(`vue-data-ui-component vue-ui-dag ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${u.value.responsive ? "vue-ui-dag-responsive" : ""}`),
|
|
2352
2356
|
id: `dag_${g.value}`,
|
|
2353
2357
|
ref_key: "dagChart",
|
|
@@ -2357,16 +2361,16 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2357
2361
|
backgroundColor: u.value.style.chart.backgroundColor,
|
|
2358
2362
|
padding: "0.5rem"
|
|
2359
2363
|
}),
|
|
2360
|
-
onMouseenter:
|
|
2361
|
-
onMouseleave:
|
|
2364
|
+
onMouseenter: zo,
|
|
2365
|
+
onMouseleave: Vo
|
|
2362
2366
|
}, [
|
|
2363
|
-
v(St) ? (y(), _("div",
|
|
2367
|
+
v(St) ? (y(), _("div", Nr, Se(String(v(St))), 1)) : L("", !0),
|
|
2364
2368
|
u.value.userOptions.buttons.annotator ? (y(), te(v(n), {
|
|
2365
2369
|
key: 1,
|
|
2366
2370
|
svgRef: v(se),
|
|
2367
2371
|
backgroundColor: u.value.style.chart.backgroundColor,
|
|
2368
2372
|
color: u.value.style.chart.color,
|
|
2369
|
-
active:
|
|
2373
|
+
active: Ce.value,
|
|
2370
2374
|
onClose: Ue
|
|
2371
2375
|
}, {
|
|
2372
2376
|
"annotator-action-close": F(() => [
|
|
@@ -2394,8 +2398,8 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2394
2398
|
key: `user_option_${J.value}`,
|
|
2395
2399
|
backgroundColor: u.value.style.chart.backgroundColor,
|
|
2396
2400
|
color: u.value.style.chart.color,
|
|
2397
|
-
isPrinting: v(
|
|
2398
|
-
isImaging: v(
|
|
2401
|
+
isPrinting: v(Ct),
|
|
2402
|
+
isImaging: v(Et),
|
|
2399
2403
|
uid: g.value,
|
|
2400
2404
|
hasTooltip: !1,
|
|
2401
2405
|
hasTable: !1,
|
|
@@ -2410,7 +2414,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2410
2414
|
position: u.value.userOptions.position,
|
|
2411
2415
|
titles: { ...u.value.userOptions.buttonTitles },
|
|
2412
2416
|
hasAnnotator: u.value.userOptions.buttons.annotator,
|
|
2413
|
-
isAnnotation:
|
|
2417
|
+
isAnnotation: Ce.value,
|
|
2414
2418
|
callbacks: u.value.userOptions.callbacks,
|
|
2415
2419
|
printScale: u.value.userOptions.print.scale,
|
|
2416
2420
|
hasZoom: u.value.userOptions.buttons.zoom,
|
|
@@ -2418,17 +2422,17 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2418
2422
|
onToggleFullscreen: Pt,
|
|
2419
2423
|
onGeneratePdf: v(_t),
|
|
2420
2424
|
onGenerateImage: v(xt),
|
|
2421
|
-
onGenerateSvg:
|
|
2425
|
+
onGenerateSvg: At,
|
|
2422
2426
|
onToggleAnnotator: Ue,
|
|
2423
|
-
onToggleZoom:
|
|
2427
|
+
onToggleZoom: Uo,
|
|
2424
2428
|
style: ce({
|
|
2425
2429
|
visibility: v(wt) ? v(We) ? "visible" : "hidden" : "visible"
|
|
2426
2430
|
})
|
|
2427
|
-
},
|
|
2431
|
+
}, dn({ _: 2 }, [
|
|
2428
2432
|
h.$slots.menuIcon ? {
|
|
2429
2433
|
name: "menuIcon",
|
|
2430
|
-
fn: F(({ isOpen: d, color:
|
|
2431
|
-
M(h.$slots, "menuIcon", z(V({ isOpen: d, color:
|
|
2434
|
+
fn: F(({ isOpen: d, color: p }) => [
|
|
2435
|
+
M(h.$slots, "menuIcon", z(V({ isOpen: d, color: p })), void 0, !0)
|
|
2432
2436
|
]),
|
|
2433
2437
|
key: "0"
|
|
2434
2438
|
} : void 0,
|
|
@@ -2455,22 +2459,22 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2455
2459
|
} : void 0,
|
|
2456
2460
|
h.$slots.optionFullscreen ? {
|
|
2457
2461
|
name: "optionFullscreen",
|
|
2458
|
-
fn: F(({ toggleFullscreen: d, isFullscreen:
|
|
2459
|
-
M(h.$slots, "optionFullscreen", z(V({ toggleFullscreen: d, isFullscreen:
|
|
2462
|
+
fn: F(({ toggleFullscreen: d, isFullscreen: p }) => [
|
|
2463
|
+
M(h.$slots, "optionFullscreen", z(V({ toggleFullscreen: d, isFullscreen: p })), void 0, !0)
|
|
2460
2464
|
]),
|
|
2461
2465
|
key: "4"
|
|
2462
2466
|
} : void 0,
|
|
2463
2467
|
h.$slots.optionAnnotator ? {
|
|
2464
2468
|
name: "optionAnnotator",
|
|
2465
|
-
fn: F(({ toggleAnnotator: d, isAnnotator:
|
|
2466
|
-
M(h.$slots, "optionAnnotator", z(V({ toggleAnnotator: d, isAnnotator:
|
|
2469
|
+
fn: F(({ toggleAnnotator: d, isAnnotator: p }) => [
|
|
2470
|
+
M(h.$slots, "optionAnnotator", z(V({ toggleAnnotator: d, isAnnotator: p })), void 0, !0)
|
|
2467
2471
|
]),
|
|
2468
2472
|
key: "5"
|
|
2469
2473
|
} : void 0,
|
|
2470
2474
|
h.$slots.optionZoom ? {
|
|
2471
2475
|
name: "optionZoom",
|
|
2472
|
-
fn: F(({ toggleZoom: d, isZoomLocked:
|
|
2473
|
-
M(h.$slots, "optionZoom", z(V({ toggleZoom: d, isZoomLocked:
|
|
2476
|
+
fn: F(({ toggleZoom: d, isZoomLocked: p }) => [
|
|
2477
|
+
M(h.$slots, "optionZoom", z(V({ toggleZoom: d, isZoomLocked: p })), void 0, !0)
|
|
2474
2478
|
]),
|
|
2475
2479
|
key: "6"
|
|
2476
2480
|
} : void 0
|
|
@@ -2481,7 +2485,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2481
2485
|
ref: w,
|
|
2482
2486
|
style: "width:100%;background:transparent;"
|
|
2483
2487
|
}, [
|
|
2484
|
-
(y(), te(
|
|
2488
|
+
(y(), te(Ln, {
|
|
2485
2489
|
key: `title_${P.value}`,
|
|
2486
2490
|
config: {
|
|
2487
2491
|
title: {
|
|
@@ -2495,7 +2499,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2495
2499
|
}
|
|
2496
2500
|
}, null, 8, ["config"]))
|
|
2497
2501
|
], 512)) : L("", !0),
|
|
2498
|
-
u.value.style.chart.controls.position === "top" && !v(
|
|
2502
|
+
u.value.style.chart.controls.position === "top" && !v(Ee) && u.value.style.chart.controls.show ? (y(), te(qt, {
|
|
2499
2503
|
key: 4,
|
|
2500
2504
|
ref_key: "zoomControls",
|
|
2501
2505
|
ref: x,
|
|
@@ -2505,16 +2509,16 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2505
2509
|
withDirection: "",
|
|
2506
2510
|
onZoomIn: Ze,
|
|
2507
2511
|
onZoomOut: Xe,
|
|
2508
|
-
onResetZoom:
|
|
2512
|
+
onResetZoom: b[0] || (b[0] = () => v(Be)(!0)),
|
|
2509
2513
|
onSwitchDirection: Ke
|
|
2510
2514
|
}, null, 8, ["config", "scale", "isFullscreen"])) : L("", !0),
|
|
2511
2515
|
v(k) ? (y(), _("svg", {
|
|
2512
2516
|
key: 5,
|
|
2513
2517
|
ref_key: "svgRef",
|
|
2514
2518
|
ref: se,
|
|
2515
|
-
class: Wt({ "vue-ui-dag-svg": !0, "vue-data-ui-loading": v(
|
|
2516
|
-
viewBox:
|
|
2517
|
-
xmlns: v(
|
|
2519
|
+
class: Wt({ "vue-ui-dag-svg": !0, "vue-data-ui-loading": v(Ee) }),
|
|
2520
|
+
viewBox: Zo.value,
|
|
2521
|
+
xmlns: v(vn),
|
|
2518
2522
|
style: ce({
|
|
2519
2523
|
backgroundColor: u.value.style.chart.backgroundColor,
|
|
2520
2524
|
height: "100%",
|
|
@@ -2522,7 +2526,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2522
2526
|
})
|
|
2523
2527
|
}, [
|
|
2524
2528
|
tt(v(i)),
|
|
2525
|
-
u.value.style.chart.backgroundPattern.show ? (y(), _("defs",
|
|
2529
|
+
u.value.style.chart.backgroundPattern.show ? (y(), _("defs", Lr, [
|
|
2526
2530
|
K("pattern", {
|
|
2527
2531
|
id: `dag_bg_pattern_${g.value}`,
|
|
2528
2532
|
patternUnits: "userSpaceOnUse",
|
|
@@ -2537,11 +2541,11 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2537
2541
|
K("circle", {
|
|
2538
2542
|
cx: ae.value / 2,
|
|
2539
2543
|
cy: ae.value / 2,
|
|
2540
|
-
r:
|
|
2544
|
+
r: nn.value,
|
|
2541
2545
|
fill: u.value.style.chart.backgroundPattern.dotColor
|
|
2542
|
-
}, null, 8,
|
|
2546
|
+
}, null, 8, Or)
|
|
2543
2547
|
], !0)
|
|
2544
|
-
], 8,
|
|
2548
|
+
], 8, Mr)
|
|
2545
2549
|
])) : L("", !0),
|
|
2546
2550
|
u.value.style.chart.backgroundPattern.show ? (y(), _("rect", {
|
|
2547
2551
|
key: 1,
|
|
@@ -2554,9 +2558,9 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2554
2558
|
pointerEvents: "none",
|
|
2555
2559
|
opacity: u.value.style.chart.backgroundPattern.opacity
|
|
2556
2560
|
})
|
|
2557
|
-
}, null, 12,
|
|
2558
|
-
v(k).arrowShape !== "undirected" ? (y(), _("defs",
|
|
2559
|
-
(y(!0), _(ue, null, Le(
|
|
2561
|
+
}, null, 12, Dr)) : L("", !0),
|
|
2562
|
+
v(k).arrowShape !== "undirected" ? (y(), _("defs", Rr, [
|
|
2563
|
+
(y(!0), _(ue, null, Le(Yo.value, (d) => (y(), _("marker", {
|
|
2560
2564
|
key: d,
|
|
2561
2565
|
id: Mt(d),
|
|
2562
2566
|
markerWidth: v(k).arrowSize,
|
|
@@ -2572,23 +2576,23 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2572
2576
|
fill: d,
|
|
2573
2577
|
stroke: d,
|
|
2574
2578
|
"stroke-width": "0"
|
|
2575
|
-
}, null, 8,
|
|
2579
|
+
}, null, 8, Pr)) : (y(), _("path", {
|
|
2576
2580
|
key: 1,
|
|
2577
2581
|
d: `M 0 0 L ${v(k).arrowSize} ${v(k).arrowSize / 2} L 0 ${v(k).arrowSize} L ${v(k).arrowSize / 3} ${v(k).arrowSize / 2} Z`,
|
|
2578
2582
|
fill: d,
|
|
2579
2583
|
stroke: d,
|
|
2580
2584
|
"stroke-width": "0"
|
|
2581
|
-
}, null, 8,
|
|
2582
|
-
], 8,
|
|
2585
|
+
}, null, 8, $r))
|
|
2586
|
+
], 8, Tr))), 128))
|
|
2583
2587
|
])) : L("", !0),
|
|
2584
|
-
K("g",
|
|
2588
|
+
K("g", Fr, [
|
|
2585
2589
|
(y(!0), _(ue, null, Le(v(k).edges, (d) => (y(), _(ue, {
|
|
2586
2590
|
key: d.id
|
|
2587
2591
|
}, [
|
|
2588
2592
|
K("path", {
|
|
2589
2593
|
"data-cy-edge": "",
|
|
2590
2594
|
ref_for: !0,
|
|
2591
|
-
ref:
|
|
2595
|
+
ref: en(d.id),
|
|
2592
2596
|
d: d.pathData,
|
|
2593
2597
|
fill: "none",
|
|
2594
2598
|
stroke: d.original.color ?? u.value.style.chart.edges.stroke,
|
|
@@ -2596,7 +2600,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2596
2600
|
"stroke-linecap": "round",
|
|
2597
2601
|
"stroke-linejoin": "round",
|
|
2598
2602
|
style: { "pointer-events": "none", transition: "stroke-width 0.2s ease-in-out" }
|
|
2599
|
-
}, null, 8,
|
|
2603
|
+
}, null, 8, Br),
|
|
2600
2604
|
u.value.style.chart.midpoints.show ? (y(), _("circle", {
|
|
2601
2605
|
key: 0,
|
|
2602
2606
|
"data-cy-midpoint": "",
|
|
@@ -2608,18 +2612,18 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2608
2612
|
stroke: d.original.color ?? u.value.style.chart.midpoints.stroke,
|
|
2609
2613
|
"stroke-width": u.value.style.chart.midpoints.strokeWidth * (d.from === re.value || d.id === G.value?.id ? 2 : 1),
|
|
2610
2614
|
style: { transition: "stroke-width 0.2s ease-in-out" },
|
|
2611
|
-
onMouseenter: (
|
|
2612
|
-
onMouseleave:
|
|
2613
|
-
}, null, 40,
|
|
2615
|
+
onMouseenter: (p) => Ko(d),
|
|
2616
|
+
onMouseleave: Jo
|
|
2617
|
+
}, null, 40, zr)) : L("", !0)
|
|
2614
2618
|
], 64))), 128))
|
|
2615
2619
|
]),
|
|
2616
|
-
K("g",
|
|
2620
|
+
K("g", Vr, [
|
|
2617
2621
|
(y(!0), _(ue, null, Le(v(k).nodes, (d) => (y(), _("g", {
|
|
2618
2622
|
key: d.id,
|
|
2619
2623
|
class: "vue-ui-dag-node",
|
|
2620
|
-
onClick: Yt((
|
|
2621
|
-
onMouseenter: (
|
|
2622
|
-
onMouseleave:
|
|
2624
|
+
onClick: Yt((p) => u.value.style.chart.nodes.tooltip.showOnClick && $t(d), ["stop"]),
|
|
2625
|
+
onMouseenter: (p) => re.value = d.id,
|
|
2626
|
+
onMouseleave: b[1] || (b[1] = (p) => re.value = null)
|
|
2623
2627
|
}, [
|
|
2624
2628
|
h.$slots.node ? L("", !0) : (y(), _("rect", {
|
|
2625
2629
|
key: 0,
|
|
@@ -2635,7 +2639,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2635
2639
|
style: ce({
|
|
2636
2640
|
cursor: u.value.style.chart.nodes.tooltip.showOnClick ? "pointer" : "default"
|
|
2637
2641
|
})
|
|
2638
|
-
}, null, 12,
|
|
2642
|
+
}, null, 12, Gr)),
|
|
2639
2643
|
h.$slots.node ? (y(), _("foreignObject", {
|
|
2640
2644
|
key: 1,
|
|
2641
2645
|
x: d.x - d.width / 2,
|
|
@@ -2644,10 +2648,10 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2644
2648
|
height: d.height
|
|
2645
2649
|
}, [
|
|
2646
2650
|
M(h.$slots, "node", ot({ ref_for: !0 }, { node: d, orientation: ee.value }), void 0, !0)
|
|
2647
|
-
], 8,
|
|
2648
|
-
], 40,
|
|
2651
|
+
], 8, jr)) : L("", !0)
|
|
2652
|
+
], 40, Ir))), 128))
|
|
2649
2653
|
]),
|
|
2650
|
-
K("g",
|
|
2654
|
+
K("g", Wr, [
|
|
2651
2655
|
(y(!0), _(ue, null, Le(v(k).edges, (d) => (y(), _("path", {
|
|
2652
2656
|
key: d.id,
|
|
2653
2657
|
d: d.pathData,
|
|
@@ -2658,14 +2662,14 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2658
2662
|
"stroke-linejoin": "round",
|
|
2659
2663
|
"marker-end": v(k).arrowShape === "undirected" ? null : `url(#${Mt(d.original?.color || u.value.style.chart.edges.stroke)})`,
|
|
2660
2664
|
style: { "pointer-events": "none", transition: "stroke-width 0.2s ease-in-out" }
|
|
2661
|
-
}, null, 8,
|
|
2665
|
+
}, null, 8, Yr))), 128))
|
|
2662
2666
|
]),
|
|
2663
|
-
K("g",
|
|
2667
|
+
K("g", Hr, [
|
|
2664
2668
|
(y(!0), _(ue, null, Le(v(k).nodes, (d) => (y(), _("g", {
|
|
2665
2669
|
key: d.id,
|
|
2666
|
-
onClick: Yt((
|
|
2667
|
-
onMouseenter: (
|
|
2668
|
-
onMouseleave:
|
|
2670
|
+
onClick: Yt((p) => u.value.style.chart.nodes.tooltip.showOnClick && $t(d), ["stop"]),
|
|
2671
|
+
onMouseenter: (p) => re.value = d.id,
|
|
2672
|
+
onMouseleave: b[2] || (b[2] = (p) => re.value = null)
|
|
2669
2673
|
}, [
|
|
2670
2674
|
h.$slots["free-node-label"] ? L("", !0) : (y(), _(ue, { key: 0 }, [
|
|
2671
2675
|
h.$slots["node-label"] ? (y(), _("text", {
|
|
@@ -2678,9 +2682,9 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2678
2682
|
"font-weight": u.value.style.chart.nodes.labels.bold ? "bold" : "normal"
|
|
2679
2683
|
}, [
|
|
2680
2684
|
M(h.$slots, "node-label", ot({ ref_for: !0 }, { node: d, orientation: ee.value }), () => [
|
|
2681
|
-
|
|
2685
|
+
fn(Se(d.label), 1)
|
|
2682
2686
|
], !0)
|
|
2683
|
-
], 8,
|
|
2687
|
+
], 8, Zr)) : !h.$slots["free-node-label"] && !h.$slots.node ? (y(), _("text", {
|
|
2684
2688
|
key: 1,
|
|
2685
2689
|
"data-cy-node-label": "",
|
|
2686
2690
|
x: d.x,
|
|
@@ -2689,7 +2693,7 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2689
2693
|
"font-size": u.value.style.chart.nodes.labels.fontSize,
|
|
2690
2694
|
fill: d.original.color,
|
|
2691
2695
|
"font-weight": u.value.style.chart.nodes.labels.bold ? "bold" : "normal",
|
|
2692
|
-
innerHTML: v(
|
|
2696
|
+
innerHTML: v(bn)({
|
|
2693
2697
|
content: d.label,
|
|
2694
2698
|
fontSize: u.value.style.chart.nodes.labels.fontSize,
|
|
2695
2699
|
fontWeight: u.value.style.chart.nodes.labels.bold ? "bold" : "normal",
|
|
@@ -2698,12 +2702,12 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2698
2702
|
y: d.y,
|
|
2699
2703
|
autoOffset: !0
|
|
2700
2704
|
})
|
|
2701
|
-
}, null, 8,
|
|
2705
|
+
}, null, 8, Xr)) : L("", !0)
|
|
2702
2706
|
], 64)),
|
|
2703
|
-
h.$slots["free-node-label"] ? (y(), _("g",
|
|
2707
|
+
h.$slots["free-node-label"] ? (y(), _("g", qr, [
|
|
2704
2708
|
M(h.$slots, "free-node-label", ot({ ref_for: !0 }, { node: d, layoutData: v(k), orientation: ee.value }), void 0, !0)
|
|
2705
2709
|
])) : L("", !0)
|
|
2706
|
-
], 40,
|
|
2710
|
+
], 40, Ur))), 128))
|
|
2707
2711
|
]),
|
|
2708
2712
|
M(h.$slots, "svg", {
|
|
2709
2713
|
svg: {
|
|
@@ -2712,9 +2716,9 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2712
2716
|
orientation: ee.value
|
|
2713
2717
|
}
|
|
2714
2718
|
}, void 0, !0)
|
|
2715
|
-
], 14,
|
|
2716
|
-
h.$slots.watermark ? (y(), _("div",
|
|
2717
|
-
M(h.$slots, "watermark", z(V({ isPrinting: v(
|
|
2719
|
+
], 14, Sr)) : L("", !0),
|
|
2720
|
+
h.$slots.watermark ? (y(), _("div", Kr, [
|
|
2721
|
+
M(h.$slots, "watermark", z(V({ isPrinting: v(Ct) || v(Et) })), void 0, !0)
|
|
2718
2722
|
])) : L("", !0),
|
|
2719
2723
|
tt(Ht, { name: "fade" }, {
|
|
2720
2724
|
default: F(() => [
|
|
@@ -2736,9 +2740,9 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2736
2740
|
"data-position": ye.value
|
|
2737
2741
|
}, [
|
|
2738
2742
|
M(h.$slots, "tooltip-midpoint", z(V({ edge: G.value, layoutData: v(k) })), () => [
|
|
2739
|
-
G.value ? (y(), _("div",
|
|
2743
|
+
G.value ? (y(), _("div", Qr, Se(Lt(G.value.from)?.label ?? G.value.from) + " → " + Se(Lt(G.value.to)?.label ?? G.value.to), 1)) : L("", !0)
|
|
2740
2744
|
], !0)
|
|
2741
|
-
], 12,
|
|
2745
|
+
], 12, Jr)
|
|
2742
2746
|
], 8, ["to"])) : L("", !0)
|
|
2743
2747
|
]),
|
|
2744
2748
|
_: 3
|
|
@@ -2761,17 +2765,17 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2761
2765
|
"--vue-data-ui-dag-node-tooltip-background": u.value.style.chart.nodes.tooltip.backgroundColor,
|
|
2762
2766
|
"--vue-data-ui-dag-node-tooltip-color": u.value.style.chart.nodes.tooltip.color
|
|
2763
2767
|
}),
|
|
2764
|
-
"data-position":
|
|
2768
|
+
"data-position": bt.value
|
|
2765
2769
|
}, [
|
|
2766
2770
|
M(h.$slots, "tooltip-node", z(V({ node: ke.value, layoutData: v(k) })), () => [
|
|
2767
|
-
ke.value ? (y(), _("div",
|
|
2771
|
+
ke.value ? (y(), _("div", ti, Se(ke.value.label), 1)) : L("", !0)
|
|
2768
2772
|
], !0)
|
|
2769
|
-
], 12,
|
|
2773
|
+
], 12, ei)
|
|
2770
2774
|
], 8, ["to"])) : L("", !0)
|
|
2771
2775
|
]),
|
|
2772
2776
|
_: 3
|
|
2773
2777
|
}),
|
|
2774
|
-
u.value.style.chart.controls.position === "bottom" && !v(
|
|
2778
|
+
u.value.style.chart.controls.position === "bottom" && !v(Ee) && u.value.style.chart.controls.show ? (y(), te(qt, {
|
|
2775
2779
|
key: 7,
|
|
2776
2780
|
ref_key: "zoomControls",
|
|
2777
2781
|
ref: x,
|
|
@@ -2781,26 +2785,26 @@ const No = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", bac
|
|
|
2781
2785
|
withDirection: "",
|
|
2782
2786
|
onZoomIn: Ze,
|
|
2783
2787
|
onZoomOut: Xe,
|
|
2784
|
-
onResetZoom:
|
|
2788
|
+
onResetZoom: b[3] || (b[3] = () => v(Be)(!0)),
|
|
2785
2789
|
onSwitchDirection: Ke
|
|
2786
2790
|
}, null, 8, ["config", "scale", "isFullscreen"])) : L("", !0),
|
|
2787
2791
|
h.$slots.source ? (y(), _("div", {
|
|
2788
2792
|
key: 8,
|
|
2789
2793
|
ref_key: "source",
|
|
2790
|
-
ref:
|
|
2794
|
+
ref: A,
|
|
2791
2795
|
dir: "auto"
|
|
2792
2796
|
}, [
|
|
2793
2797
|
M(h.$slots, "source", {}, void 0, !0)
|
|
2794
2798
|
], 512)) : L("", !0),
|
|
2795
|
-
v(
|
|
2796
|
-
], 46,
|
|
2799
|
+
v(Ee) ? (y(), te(En, { key: 9 })) : L("", !0)
|
|
2800
|
+
], 46, Ar));
|
|
2797
2801
|
}
|
|
2798
|
-
},
|
|
2802
|
+
}, ni = /* @__PURE__ */ On(oi, [["__scopeId", "data-v-5cf3932e"]]), ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2799
2803
|
__proto__: null,
|
|
2800
|
-
default:
|
|
2804
|
+
default: ni
|
|
2801
2805
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2802
2806
|
export {
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2807
|
+
yi as a,
|
|
2808
|
+
ki as b,
|
|
2809
|
+
ni as v
|
|
2806
2810
|
};
|