-
Notifications
You must be signed in to change notification settings - Fork 36
[FEAT] improved rendering for exclusive gateway #226
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
Conversation
|
Depends on #222 |
7fe7277 to
bc69a6d
Compare
bc69a6d to
aec30da
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.
LGTM
However, some refactoring as needed IMHO because this PR doesn't fully covered what I had in mind with #222 (comment)
- scaling is still explicitly present in code outside of the canvas wrapper
- it is not possible to scale on x and y with different values
- translation is done globally which leads to side effects
So, I have create a new issue to track this missing technical requirement, see #247
|
|
||
| c.fillAndStroke(); | ||
| const canvas = this.configureCanvasForIcon(c, w, h, 0); | ||
| this.translateToStartingIconPosition(c, x, y, w, h); |
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.


Code mutualization