@danxbot/ui 13.0.1 → 13.0.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/index.js
CHANGED
|
@@ -50760,19 +50760,18 @@ function z9(e, t = [], n = {}) {
|
|
|
50760
50760
|
};
|
|
50761
50761
|
}
|
|
50762
50762
|
function B9(e, t) {
|
|
50763
|
-
const n = new Map(e.nodes.map((
|
|
50763
|
+
const n = new Map(e.nodes.map((u) => [u.id, u])), r = n.get(t);
|
|
50764
50764
|
if (!r) return null;
|
|
50765
|
-
const o = [r]
|
|
50766
|
-
|
|
50767
|
-
|
|
50768
|
-
|
|
50769
|
-
|
|
50770
|
-
|
|
50771
|
-
|
|
50772
|
-
|
|
50773
|
-
|
|
50774
|
-
}
|
|
50775
|
-
return F9(o);
|
|
50765
|
+
const o = [r];
|
|
50766
|
+
for (const u of e.edges) {
|
|
50767
|
+
if (u.from !== t) continue;
|
|
50768
|
+
const f = n.get(u.to);
|
|
50769
|
+
f && o.push(f);
|
|
50770
|
+
}
|
|
50771
|
+
const s = F9(o), i = e.edges.find((u) => u.to === t)?.from, a = i ? n.get(i) : void 0;
|
|
50772
|
+
if (!a) return s;
|
|
50773
|
+
const l = Math.min(s.y, a.y), c = Math.max(s.y + s.height, a.y + a.height);
|
|
50774
|
+
return { x: s.x, y: l, width: s.width, height: c - l };
|
|
50776
50775
|
}
|
|
50777
50776
|
function H9(e, t) {
|
|
50778
50777
|
const n = new Map(e.nodes.map((a) => [a.id, a])), r = n.get(t);
|