supports-edges draw toggle — last row of the graph settings' first section

Off hides supports edges from the canvas: the renderer skips them when
building the shaft/head paths (draw-only — the physics sim still feels
them and detail cards still list them; settings never shift the graph).
Server-persisted with the rest (render-settings.json); sanitizer takes
real booleans only, anything else (missing key, legacy file) loads ON —
today's look. Toggle row styled as the Background-colors row; sanitiser
pinned in render-settings.test.
This commit is contained in:
amosblomqvist
2026-09-29 02:40:07 +03:00
parent 8355fbabdb
commit 6543d4f886
4 changed files with 40 additions and 2 deletions
+4 -1
View File
@@ -1232,11 +1232,14 @@ export class GraphCanvasRenderer {
// Edge shafts + arrowheads: tip lands on the target disc edge. Both
// relation types draw the same arrow for now — the double-shaft
// glyph was rejected (2026-09-15); differentiation is pending a new
// approach. CanvasEdge.type is plumbed for whatever comes next.
// approach. CanvasEdge.type is plumbed for whatever comes next —
// except the supports draw toggle (owner, 2026-09-29): off skips
// the paths entirely (a draw-only hide; the sim still feels them).
const arrowLen = settings.arrowLength;
const shafts = new Path2D();
const heads = new Path2D();
for (const e of data.edges) {
if (!settings.showSupports && e.type === "supports") continue;
if (!isVisible(e.from) || !isVisible(e.to)) continue;
const a = this.nodeById.get(e.from);
const b = this.nodeById.get(e.to);