Skip to content
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 lane arrow flipping #22

Merged
merged 1 commit into from
Mar 27, 2021
Merged

Fix lane arrow flipping #22

merged 1 commit into from
Mar 27, 2021

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Mar 27, 2021

Most of the lane assets added in #21 included new arrow groups that didn’t respect the scaleX or flipHorizontally variables, resulting in disjointed and clipped arrows in any icon that needed to be flipped to the left, as seen in mapbox/mapbox-navigation-ios#2882 (comment). This PR hooks up the scaleX variable to all the new assets and moves the origins of each arrow to the center of the canvas.

flipped

/cc @avi-c @abhishek1508

@1ec5 1ec5 added the bug label Mar 27, 2021
@1ec5 1ec5 added this to the v2.0.0 (RC) milestone Mar 27, 2021
@1ec5 1ec5 requested a review from avi-c March 27, 2021 00:00
@1ec5 1ec5 self-assigned this Mar 27, 2021
@avi-c avi-c merged commit ab0a831 into main Mar 27, 2021
@1ec5 1ec5 deleted the 1ec5-lane-flip branch March 29, 2021 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants