Skip to content

Commit 5a4d253

Browse files
fix(graph): preserve bounded galaxy layout
1 parent 591fa5d commit 5a4d253

16 files changed

Lines changed: 1276 additions & 423 deletions

engraphis/classic_assets/dashboard.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engraphis/core/graph_scene.py

Lines changed: 285 additions & 91 deletions
Large diffs are not rendered by default.

engraphis/dashboard_assets/engraphis-graph-all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
geometry, and a bounded overlay communicates relation direction without moving nodes. */
44
(function () {
55
'use strict';
6-
const WORKER_URL = '/v2-assets/engraphis-graph-worker.js?v=20260814-all-controls-2';
6+
const WORKER_URL = '/v2-assets/engraphis-graph-worker.js?v=20260817-all-nodes-lod-2';
77
const MAX_NODES = 20000;
88
const MAX_LINKS = 200000;
99
const FLOW_EDGE_LIMIT = 900;
@@ -16,7 +16,7 @@
1616
};
1717
const TYPE_COLORS = { person_or_concept: '#8d82e3', mention: '#5ba1a6', hashtag: '#c9a15b', email: '#8eb3e6', organization: '#d48173', location: '#7ebf8e', memory: '#5ba1a6', repo: '#c9a15b', file: '#8eb3e6' };
1818
const PRESETS = {
19-
galaxy: { repel: 60, link: 8, gravity: 48, font: 12, size: 3, linkw: 0.72, labelDensity: 24 },
19+
galaxy: { repel: 100, link: 8, gravity: 48, font: 12, size: 3, linkw: 0.72, labelDensity: 24 },
2020
original: { repel: 120, link: 30, gravity: 14, font: 13, size: 3, linkw: 1, labelDensity: 40 },
2121
compact: { repel: 42, link: 20, gravity: 26, font: 12, size: 3, linkw: 0.7, labelDensity: 30 },
2222
communities: { repel: 48, link: 16, gravity: 48, font: 12, size: 3, linkw: 0.72, labelDensity: 24 },

engraphis/dashboard_assets/engraphis-graph.js

Lines changed: 401 additions & 98 deletions
Large diffs are not rendered by default.

engraphis/dashboard_assets/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ <h1 id="relations-title">How this workspace connects</h1>
273273
<button id="graph-fit" class="graph-action" type="button">Fit to view</button>
274274
<button id="graph-reheat" class="graph-action" type="button">Reheat layout</button>
275275
<button id="graph-clear-focus" class="graph-action" type="button">Clear focus</button>
276-
<button id="graph-show-all" class="graph-action" type="button" aria-pressed="false" title="Load all entity nodes with progressive level-of-detail rendering">Show all nodes</button>
276+
<button id="graph-show-all" class="graph-action" type="button" aria-pressed="false" title="Load every graph entity with progressive level-of-detail rendering">See all nodes · LOD</button>
277277
<button id="graph-show-unlinked" class="graph-action" type="button" aria-pressed="true" title="Hide entities that have no relations in this graph view">Hide unlinked nodes</button>
278278
<button id="graph-retry" class="graph-action" type="button">Reload data</button>
279279
<div class="graph-export-wrap">
@@ -284,7 +284,7 @@ <h1 id="relations-title">How this workspace connects</h1>
284284
</div>
285285
</div>
286286
</div>
287-
<p id="graph-lod-note" class="graph-lod-note" role="status" aria-live="polite" hidden><strong>All nodes · live controls</strong><span>Layout, forces, scope, colour and relation flow update without reloading the complete graph.</span></p>
287+
<p id="graph-lod-note" class="graph-lod-note" role="status" aria-live="polite" hidden><strong>All nodes · LOD · live controls</strong><span>Layout, forces, scope, colour and relation flow update without reloading the graph.</span></p>
288288

289289
<section class="graph-drawer-section" aria-labelledby="graph-rendering-title">
290290
<h2 id="graph-rendering-title">Rendering</h2>
@@ -349,7 +349,7 @@ <h2 id="graph-saved-views-title">Saved views</h2>
349349
<details class="graph-drawer-section graph-tuning" open>
350350
<summary>Tune the simulation · forces, size, scope</summary>
351351
<div class="graph-tuning-grid">
352-
<label for="graph-repel"><span id="graph-repel-label">Orbital speed</span><input id="graph-repel" type="range" min="0" max="120" value="60" aria-labelledby="graph-repel-label"><output id="graph-repel-output">60</output></label>
352+
<label for="graph-repel"><span id="graph-repel-label">Orbital speed</span><input id="graph-repel" type="range" min="0" max="400" value="100" aria-labelledby="graph-repel-label"><output id="graph-repel-output">100</output></label>
353353
<label for="graph-link"><span id="graph-link-label">Link distance · tight ↔ loose</span><input id="graph-link" type="range" min="4" max="80" value="8" aria-labelledby="graph-link-label"><output id="graph-link-output">8</output></label>
354354
<label for="graph-gravity"><span id="graph-gravity-label">Galactic gravity · loose ↔ tight</span><input id="graph-gravity" type="range" min="0" max="400" value="48" aria-labelledby="graph-gravity-label"><output id="graph-gravity-output">48</output></label>
355355
<label for="graph-node-size"><span id="graph-node-size-label">Node size</span><input id="graph-node-size" type="range" min="1" max="12" value="3" aria-labelledby="graph-node-size-label"><output id="graph-node-size-output">3</output></label>
@@ -707,6 +707,6 @@ <h2 id="graph-connections-title">Connected nodes</h2>
707707
</form>
708708
</dialog>
709709

710-
<script src="/v2-assets/ledger.js?v=20260814-all-controls-2"></script>
710+
<script src="/v2-assets/ledger.js?v=20260817-all-nodes-lod-3"></script>
711711
</body>
712712
</html>

0 commit comments

Comments
 (0)