-
-
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]: Shadow for underlined text not working properly when objectCaching is false #9841
Comments
If you are not using clip paths in yuor app I suggest dumping fabric's render loop in favor of a simple once that doesn't require caching (revert to context isolation perhaps) |
@ShaMan123 I'm not using clip paths in my app but can you please clarify more about what you are trying to say? |
Sure, sorry for being short, didn't feel like writing something redundant. fabric.js/src/shapes/Text/Text.ts Line 1642 in 6b6a5fc
Before going into rendering I would turn off caching. In most cases it is better apart from panning and transforming an object. The latter can be mitigated by rendering only the dirty rect but that is a different topic altogether. I will post more about rendering if you want to look into it |
@ShaMan123 thank you for replay. yes Please post more about rendering Like which property should i use to resolve that? |
I would first investigate this issue a bit more fabric.js/src/shapes/Text/Text.ts Lines 602 to 611 in 6b6a5fc
I would try to disable the line and see what happens |
fabric object rendering is the part I dislike most about fabric. Lifecycle without caching:
Lifecycle with caching:
It is hard even to write this down... |
@ShaMan123 Thank you for giving me deep understanding. Their is no solution for shadow? Can you please help me with that? |
As I said try disabling the line I mentioned. |
Thank you @ShaMan123 , It's working now. |
Object caching makes a difference because is the cache that is doing the shadow all together. Caching or not caching this kind of shadow should enforce drawing isolation that todays is the same as caching |
@asturur v5.x label might be misleading, the suspected line exists on master |
but the issue and the samples are on 5.x |
Check if this fixes the issues: #9965 |
CheckList
Version
5.3.0
In What environments are you experiencing the problem?
Chrome
Node Version (if applicable)
None
Link To Reproduction
https://jsfiddle.net/Niketa_patel/as5evzt2/5/
Steps To Reproduce
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: