-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix speed space chart round value to decimal #430
Conversation
21b993d
to
d784c1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this PR
ok for the rounded adjustment
OpenRailAssociation/osrd#8297 can't be closed, .0
is still possible, we should add a condition to avoid toFixed()
method if roundedPosition
doesn't have a decimal
Good point, I also fixed it (in a second commit). Important This fix expose a new bug. The reticle is slightly offset from the graduations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍🏻
Fix the rounding to decimal instead of unit.
close OpenRailAssociation/osrd#8297