-
-
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
[Bug]: Erased path gets blurry after resize the object #9095
Comments
Hmm... A solution might be to reverse the rendering order with context isolation. Rendering the eraser paths, using globalCompositeOperation and then rendering the object on top - but that doesn't sound a solution to me with the current state of caching and rendering. |
An ugly workaround would be to fiddle with th escaling values and force caching to invalidate properly but i don't think it is feasible Seems that the eraser should not be part of the cached object canvas but an independant one |
Hi @ShaMan123, thanks for replying ❤️. I'm not sure if I'm understanding correctly, you mean that this bug will only be fixed in the version 6 and not in the 5.x version ? |
Correct |
Did you try to remove the paths and applying a scale to them and then adding them back using the eraser method addPathToEraser or something (forgot the name)? |
please try this with the new package erase2d and report there for issue I expect it to be blurry still because of caching but I plan to fix this soon, already tested a solution that remove caching |
CheckList
Version
5.3.0
In What environments are you experiencing the problem?
Firefox, Chrome, Microsoft Edge
Node Version (if applicable)
None
Link To Reproduction
https://codesandbox.io/p/sandbox/fabric-vanillajs-sandbox-forked-k6n7rt
Steps To Reproduce
Note: this also happens on the erasing demo (http://fabricjs.com/erasing)
Expected Behavior
The path that was erased should not be blurry
Actual Behavior
The path that was erased became blurry, and if I erase it again the path will also be blurry.
Error Message & Stack Trace
The text was updated successfully, but these errors were encountered: