Playwright audit confirmed ladder renders 44 nodes/36 edges for the conveyor ST program, but the viewport does not auto-fit after rendering. Content appears tiny and off-center in the upper portion of the canvas — effectively invisible without manual zoom/pan.
Repro: Paste any ST program. Ladder renders but is not centered or fit to the canvas.
Fix: Call fitView() on the React Flow instance after the transformer produces new nodes. Add fitView prop or trigger it via useReactFlow().fitView() after node state updates.
Evidence: e2e/screenshots/10-full-state.png — nodes visible in minimap but not in main viewport at usable scale.
Playwright audit confirmed ladder renders 44 nodes/36 edges for the conveyor ST program, but the viewport does not auto-fit after rendering. Content appears tiny and off-center in the upper portion of the canvas — effectively invisible without manual zoom/pan.
Repro: Paste any ST program. Ladder renders but is not centered or fit to the canvas.
Fix: Call
fitView()on the React Flow instance after the transformer produces new nodes. AddfitViewprop or trigger it viauseReactFlow().fitView()after node state updates.Evidence:
e2e/screenshots/10-full-state.png— nodes visible in minimap but not in main viewport at usable scale.