This repository contains a small React + TypeScript Vite app that demonstrates an SVG-based signalling diagram with clickable signals. Clicking a signal opens a popup where a headcode can be entered and the signal aspect changed.
-
Install dependencies:
npm install
-
Start dev server:
npm run dev
-
Open the URL shown in the terminal (usually http://localhost:5173)
- SVG track with example signals
- Clickable signals that open a popup
- Popup with headcode input & aspect buttons
- Persist edited signal data to JSON or a backend
- Add route-setting and basic interlocking
- Add train objects with headcodes and movement along tracks
- Scenario editor and save/load
If you want me to continue, tell me the exact track layout or upload an image and I will place the signals accordingly.