diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/frontend/html/util/graphengine.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenserver/frontend/html/util/graphengine.js b/src/zenserver/frontend/html/util/graphengine.js index 276326a99..56f825cdf 100644 --- a/src/zenserver/frontend/html/util/graphengine.js +++ b/src/zenserver/frontend/html/util/graphengine.js @@ -551,7 +551,7 @@ export class GraphEngine // skip if already pushed once (collapse + re-expand) or re-expanding in place if (parent && !node._skip_push && !node._was_pushed) { - const push_dist = 400 + visible * 6; + const push_dist = 200 + visible * 4; node.x += Math.cos(outward_angle) * push_dist; node.y += Math.sin(outward_angle) * push_dist; node.pinned = true; @@ -570,7 +570,7 @@ export class GraphEngine arc_span = Math.PI; } - const radius = 200 + visible * 4; + const radius = 120 + visible * 2.5; var added = 0; for (const dep of deps) @@ -583,7 +583,7 @@ export class GraphEngine const t = visible > 1 ? added / (visible - 1) : 0.5; const angle = arc_start + t * arc_span; - const r = radius + Math.random() * 40; + const r = radius + Math.random() * 20; const dep_node = this.add_node( dep.opkey, node.x + Math.cos(angle) * r, |