@prefecthq/graphs 1.0.2 → 1.0.3
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/graphs.mjs +1 -1
- package/dist/graphs.umd.js +21 -21
- package/dist/graphs.umd.js.map +1 -1
- package/dist/{index-abc60fc8.mjs → index-77c40057.mjs} +17 -10
- package/dist/{index-abc60fc8.mjs.map → index-77c40057.mjs.map} +1 -1
- package/dist/{viewport.es-20251669.mjs → viewport.es-ff98659c.mjs} +2 -2
- package/dist/{viewport.es-20251669.mjs.map → viewport.es-ff98659c.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -13576,7 +13576,7 @@ function W0(r) {
|
|
|
13576
13576
|
globalThis.__PIXI_APP__ = r;
|
|
13577
13577
|
}
|
|
13578
13578
|
async function V0() {
|
|
13579
|
-
const { Viewport: r } = await import("./viewport.es-
|
|
13579
|
+
const { Viewport: r } = await import("./viewport.es-ff98659c.mjs");
|
|
13580
13580
|
return r;
|
|
13581
13581
|
}
|
|
13582
13582
|
async function z0(r, e) {
|
|
@@ -16074,7 +16074,7 @@ const ee = {
|
|
|
16074
16074
|
}, ao = "nodeResize", pf = {
|
|
16075
16075
|
fadeIn: 0.25,
|
|
16076
16076
|
move: 0.5
|
|
16077
|
-
}, oo = "box", mb = "
|
|
16077
|
+
}, oo = "box", mb = "None", yb = 0.2;
|
|
16078
16078
|
class bb extends lt {
|
|
16079
16079
|
constructor({
|
|
16080
16080
|
nodeData: t,
|
|
@@ -16683,14 +16683,21 @@ class _f extends lt {
|
|
|
16683
16683
|
this.edgeRecords.forEach(({ edge: n }) => n.renderable = !t.value), t.value || (i.dirty = !0, i.updateTransform()), this.isSelectionPathHighlighted && this.highlightSelectedNodePath();
|
|
16684
16684
|
}
|
|
16685
16685
|
updateLayoutRows(t = 0) {
|
|
16686
|
-
const { layout: i } = this, { spacingNodeMargin: n, spacingNodeSelectionMargin: s } = this.graphState.styleOptions.value, a = Math.max(...Object.values(i.value).map((
|
|
16686
|
+
const { layout: i } = this, { spacingNodeMargin: n, spacingNodeSelectionMargin: s } = this.graphState.styleOptions.value, a = Math.max(...Object.values(i.value).map((u) => u.position));
|
|
16687
16687
|
let o = [];
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16688
|
+
const h = Object.keys(i.value).reduce((u, l) => {
|
|
16689
|
+
var v;
|
|
16690
|
+
const c = i.value[l].position, f = u.get(c) ?? 0, d = ((v = this.nodeRecords.get(l)) == null ? void 0 : v.height) ?? 0;
|
|
16691
|
+
return u.set(c, Math.max(d, f)), u;
|
|
16692
|
+
}, /* @__PURE__ */ new Map());
|
|
16693
|
+
for (let u = t; u <= a; u++) {
|
|
16694
|
+
const l = o[u - 1], c = h.get(u) ?? 0;
|
|
16695
|
+
if (l === void 0) {
|
|
16696
|
+
o.push({ yPos: 0, height: c });
|
|
16697
|
+
continue;
|
|
16698
|
+
}
|
|
16699
|
+
const f = l.yPos + l.height - s * 2 + n;
|
|
16700
|
+
o.push({ yPos: f, height: c });
|
|
16694
16701
|
}
|
|
16695
16702
|
t > 0 && (o = this.layoutRows.value.slice(0, t).concat(o)), this.layoutRows.value = o;
|
|
16696
16703
|
}
|
|
@@ -17219,4 +17226,4 @@ export {
|
|
|
17219
17226
|
Wf as f,
|
|
17220
17227
|
Vf as n
|
|
17221
17228
|
};
|
|
17222
|
-
//# sourceMappingURL=index-
|
|
17229
|
+
//# sourceMappingURL=index-77c40057.mjs.map
|