-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 stroke width calculation #2178
Conversation
I definitely missed this. |
@sapics if you remove the half part of strokewidth, and you scale will FULL strokewidth in both _setObjectScale and _scaleObjectEqually, you will notice that #2177 is fixed. i mean
For the third function you modified check if apply. Obviously if we are doing something with width, we cannot just use half of stroke. Could you make that? if i do this we will have conflicting PR |
Absolutely! |
I think this PR is good, let's just finish it. localMouse depends on the translate ( s) function, there are at least 3, and the fix is ugly as shit for them.
and use strokeWidthX and strokeWidthY for the x and y instead of general strokeWidth. If you try to resize this in current kitchensink on fabricJS.com:
You will notice that is wrong. |
@sapics thanks! Can you also rebase the commit to have them nice? |
@asturur I am sorry, I misunderstood you wrote. |
Sure!! |
To fix the "translate effect" that still remain for just horizontal or vertical lines i would wait. We should spam this code
All around the functions, while i want to do something more clean. |
6a4d0d2
to
328c108
Compare
@asturur Thank you! I have fixed as you coded and rebase! |
15428d6
to
d459a87
Compare
Fix stroke width calculation. Closes #2177
Awesome, thanks. Don't forget changelog please. |
From #1929, strokeWidth calculation dose not depends on stroke.
closes #2177