Replace integer offsets with explicit values #28
No reviewers
Labels
No labels
blocking
bug
dependencies
duplicate
enhancement
invalid
question
rust
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mle/subway_map.rs!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "explicit-offsets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Offsets specified as integer values limit the placement of routes, which can be necessary when (e.g.) lines of different width are to combine to form a single line. (This particular case coming up for a frequency map.)
Integer offsets also can cause unexpected behavior where a route's offset will shift due to the introduction of another route with a non-default width.
Instead, allowing offsets to be arbitrary floats, provides full granularity for spacing of routes, and avoids that unexpected behavior.