Live/shared view: render full styled line geometry, not just a station scatter #34

Open
opened 2026-08-12 16:42:50 +00:00 by ImBenji · 0 comments
Owner

The read-only /live/:token and /shared/:token pages (lib/pages/live, lib/pages/shared) currently render scene stats + a plain station-position scatter, not the actual styled line rendering (arcs/biarcs/line styles) - sibling to #33, the backend live/share plumbing itself is done and working.

Reusing CanvasPainter directly wasn't safe to do standalone: its cornerRadii input is computed by MapCanvas's stateful interaction machinery (_effectiveCornerRadii in canvas.dart), not a pure function callable in isolation. Writing a parallel simplified line renderer instead is off the table per the one-source-of-truth rendering policy.

Real fix needs a deliberate read-only mode added to MapCanvas (or an extracted pure geometry-resolution function it and a lightweight viewer can both call) so the viewer pages can render the exact same styled output as the editor, just non-interactive.

The read-only /live/:token and /shared/:token pages (lib/pages/live, lib/pages/shared) currently render scene stats + a plain station-position scatter, not the actual styled line rendering (arcs/biarcs/line styles) - sibling to #33, the backend live/share plumbing itself is done and working. Reusing CanvasPainter directly wasn't safe to do standalone: its cornerRadii input is computed by MapCanvas's stateful interaction machinery (_effectiveCornerRadii in canvas.dart), not a pure function callable in isolation. Writing a parallel simplified line renderer instead is off the table per the one-source-of-truth rendering policy. Real fix needs a deliberate read-only mode added to MapCanvas (or an extracted pure geometry-resolution function it and a lightweight viewer can both call) so the viewer pages can render the exact same styled output as the editor, just non-interactive.
ImBenji added the enhancementarea:rendering labels 2026-08-12 16:42:50 +00:00
ImBenji added this to the Arcs & Angles project 2026-08-12 16:42:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: IMBENJI.NET/Metro-Map-Maker#34