Commit Graph

323 Commits

Author SHA1 Message Date
izawartka
519ed7aa1d Fixed track connections
*Fixed most of the tracks being connected in reverse
2025-06-03 19:05:03 +02:00
izawartka
971003b1f2 Improved signal names
*Once again improved and bugfixed Signal.getPrintableSignalName()
2025-06-03 18:17:55 +02:00
izawartka
9b49f4dc73 Added defined switches, fixed bugs
+Added pre-defined switches so they dont have to be generated. Unrecognised switches models are still automatically resolved and their new definitions are saved for later use
+Added .multiply, .toPrecission and .rotate functions in the Vector3 class
*Improved switches to normal tracks connections
*Improved switches-related error handling
2025-06-03 18:17:09 +02:00
izawartka
6d4aef606a Duplicated isolation name bugfix
*Fixed duplicated isolation names being rendered on switches
2025-06-02 22:46:07 +02:00
izawartka
df19b92bb2 Increased switch names font size
*Increased switch names font size
2025-06-02 21:20:59 +02:00
izawartka
ad628207ab TrackObjectRenderer and Signal bugfixes
*Fixed track objects having too small hover area
*Fixed track objects names not being centered
*Removed unneccessary '\' from Signal.getPrintableSignalName causing a warning
2025-06-02 21:10:10 +02:00
izawartka
25a3b278d0 Added localizations list
+Added a list of spawn signals and signal boxes allowing to quickly center the view on them
+Added arrays of all signalBoxes and spawnSignals in the Scenery class
2025-06-02 21:01:46 +02:00
izawartka
1ee0c7b9f4 Fixed signal names
*Fixed Signal.getPrintableSignalName() sometimes outputing empty string
*Fixed signalWithoutSpawnInfo warning never showing
2025-06-02 20:59:33 +02:00
izawartka
fe7add450e Added ZoomPan hook, fixed overflow
+Added useZoomPanEmitter hook allowing to move the view to specified location
*Fixed ZoomPanWrapper overflowing in height
2025-06-02 20:57:32 +02:00
izawartka
7f279bf35d Added SignalBoxes, fixed bugs
+Added Misc objects parser
+Added SignalBoxRenderer
*Fixed Switch and TrackObject double apply protection
*Updated scp.py to not exclude Signalboxes
2025-06-01 17:45:18 +02:00
izawartka
0b77a5a782 Tracks color indication, slope calculations
+Added option to color the tracks by type or their slope
*Slightly refactored TrackRenderer component
*Fixed points calculations in StandardTrack to include track's slope
2025-06-01 14:36:42 +02:00
izawartka
5c631c071b Minor angles related tweaks & fixes
+Added AngleHelper
*Signals names are no longer always rendered horizontally
*Fixed a minor rendering bug accuring when routes were rotated at exactly 180 deg
*Fixed PointTrack rot field being in radians instead of degrees
2025-06-01 02:15:16 +02:00
izawartka
b76752e40d Added Vector3 class, code cleanup
+Added Vector3 class and replaced all position and angle values with it to clean up the code
*Minor bugfixes and code cleanup
2025-06-01 01:54:26 +02:00
izawartka
b952b9c26d Added SceneryParserLog
+Added SceneryParserLog class that filters warning messages
2025-06-01 00:47:23 +02:00
izawartka
24b05c95c8 Added XYZ rotation fields to SceneryObject
+Added rx, ry, rz fields to SceneryObject class
*Modified all classes inheriting from SceneryObject to use its rotation fields instead of own "rot" field
2025-06-01 00:30:02 +02:00
izawartka
0569b79339 Fixed route arrow position
*Fixed route arrow not always being centered
2025-05-30 19:23:38 +02:00
izawartka
32a1d95ba2 Bugfixes
*Fixed route names not being rendered correctly on single track routes
*Separated scenery layers rendering from SceneryRoot to SceneryLayer component
*Fixed TrackObjects not always being correctly recognised as Signals
*Fixed getPrintableSignalName not working with the old Signal syntax
2025-05-30 19:13:28 +02:00
izawartka
b7f9d80045 RouteRenderer, code tweaks
+Added Route class
+Added RouteRenderer
*Parts of the map rendered by different renderers are now separated into <g> groups
*Fixed signals not being parsed correctly
2025-05-30 18:58:20 +02:00
izawartka
06dd81eec6 SignalRenderer, minor tweaks
+Added Signal class
+Added SignalRenderer
*Isolations IDs are no longer shown by default
*Switches names are now light blue instead of white
2025-05-30 18:55:36 +02:00
izawartka
f8725c0371 Added SceneryObject, unified classes
+Added SceneryObject class. All objects like Track, TrackObject, Switch inherit from it.
*Switches now use applyObject instead of applySwitch. All SceneryObejct based objects can be applied after scenery load
2025-05-30 18:52:53 +02:00
izawartka
8fd4b4ff86 Removed leaflet dependency 2025-05-29 13:16:08 +02:00
izawartka
258449b904 Update README.md 2025-05-29 13:13:08 +02:00
izawartka
d78e72fc49 Initial commit 2025-05-29 13:11:22 +02:00