diff options
| author | MtBntChvn <[email protected]> | 2026-02-21 08:52:46 +0000 |
|---|---|---|
| committer | MtBntChvn <[email protected]> | 2026-02-21 08:52:46 +0000 |
| commit | 9d3dee78febbf8bdbb02ab2ef5b4396858025af6 (patch) | |
| tree | 26bf0b59f37618b5efaaef4e94811a587cb79be7 /src/zenserver/frontend/html | |
| parent | use elliptical rings for node expansion placement (diff) | |
| download | zen-feature/oplog-dependency-graph.tar.xz zen-feature/oplog-dependency-graph.zip | |
tighten elliptical ring radiifeature/oplog-dependency-graph
base_radius: 70 → 50, ring_gap: 40 → 32
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Diffstat (limited to 'src/zenserver/frontend/html')
| -rw-r--r-- | src/zenserver/frontend/html/pages/graph-debug-playground.js | 12 | ||||
| -rw-r--r-- | src/zenserver/frontend/html/util/graphengine.js | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/zenserver/frontend/html/pages/graph-debug-playground.js b/src/zenserver/frontend/html/pages/graph-debug-playground.js index 7f371aa1c..b821abf58 100644 --- a/src/zenserver/frontend/html/pages/graph-debug-playground.js +++ b/src/zenserver/frontend/html/pages/graph-debug-playground.js @@ -326,8 +326,8 @@ export class Page extends ZenPage _expand_root_synthetic(node, all_deps, visible) { const engine = this._engine; - const base_radius = 70; - const ring_gap = 40; + const base_radius = 50; + const ring_gap = 32; const min_node_gap = 45; const ellipse_ratio = 2.0; const arc_span = 2 * Math.PI; @@ -384,8 +384,8 @@ export class Page extends ZenPage // ripple placement: concentric elliptical semi-rings const arc_span = Math.PI; const arc_start = outward_angle - arc_span / 2; - const base_radius = 70; - const ring_gap = 40; + const base_radius = 50; + const ring_gap = 32; const min_node_gap = 45; const ellipse_ratio = 2.0; var added = 0; @@ -618,8 +618,8 @@ export class Page extends ZenPage const existing = new Set(engine.nodes); // ripple placement helper for group node children (elliptical) - const base_radius = 70; - const ring_gap = 40; + const base_radius = 50; + const ring_gap = 32; const min_node_gap = 45; const ellipse_ratio = 2.0; const arc_span = 2 * Math.PI; diff --git a/src/zenserver/frontend/html/util/graphengine.js b/src/zenserver/frontend/html/util/graphengine.js index 95830be2a..d81997f07 100644 --- a/src/zenserver/frontend/html/util/graphengine.js +++ b/src/zenserver/frontend/html/util/graphengine.js @@ -569,8 +569,8 @@ export class GraphEngine // place children in concentric elliptical rings (ripples) // ellipse: wider horizontally to match rectangular node shape - const base_radius = 70; - const ring_gap = 40; + const base_radius = 50; + const ring_gap = 32; const min_node_gap = 45; const ellipse_ratio = 2.0; // horizontal / vertical var added = 0; |