-
-
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(#8344): stroke projection #8374
Conversation
This reverts commit 3d3922c.
The tests are generating around 3,000 images. It makes sense? Or is it better to define some sets of points beforehand, and just apply |
7802b35
to
58a68d5
Compare
If we can test all cases with very little tests that is the best |
Tests reveal a bug when the The problem seems to me is that in these cases we only project "outwards", this works for almost all points arrangements, but in the straight angle a straight line is formed, so we need projections to both sides. If we check if the bisector angle is equal to PI, and in those cases project to both sides, we fix that. (not tested yet) |
Maybe we use line cap projections in the case? |
What cmd are you using? |
I see that is stroke line cap tests the stroke line join is wrong, I am correct? |
@asturur this is waiting too long |
95be8dc
to
a452691
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.
Dear @luizzappa !
I hope I find you in a good and happy state.
My apologies for not seeing this PR through.
It is very good work and a shame it has been stale for so long.
I have done my best to fast forward it to the current master but I might have done something wrong. I suspect so. But I doubled checked with a view diffs (8374-view-diff...8374-polyline-diff) to make sure but still, your review is priceless.
Once you give a green light I merge it straight away.
I approved, if you have rights to squash and merge you are welcome to do so. |
@luizzappa thanks for bringing this forward. The issue with merging things is that we add new things to the library that later with a revise of documentation could entirely stop to make sense and then we would be in the weird position to make changes to code just merged. I really would love to not add more code while we are in this beta status for so long. |
It is a bug fix I need |
I brought it up from the dead |
I sort of accept the fact that my prs wait until they are stale, not happy about it. |
I know i m not happy everything to be stale either. |
Added tests for #8344
Tests revealed bugs and edge cases that this PR addresses.
The goldens make reading the diff impossible since github boils. View the diff here instead https://github.com/fabricjs/fabric.js/compare/8374-view-diff