Open xorb opened 9 months ago
This is a bug that can be fixed by #8298
The problem is the absence of context isolation.
Fabric confuses context isolation and object caching. Initially object caching was planned for performance I think but then the need for context isolation came and caching was reused for that purpose.
This flaw in design has many bugs to blame.
Enough of design context.
In node object caching is turned off by default, meaning there is no context isolation by default.
Since your group has an opacity value and there is no context isolation the opacity value leaks to each object instead of being applied to the group context.
The workaround is simple, set objectCaching: true
as I did here but that might open the door for new bugs that are related to this issue (shadow rendering for example)
@ebigtm
CheckList
Version
6.0.0-beta16
In What environments are you experiencing the problem?
Node.js
Node Version (if applicable)
None
Link To Reproduction
https://codesandbox.io/p/devbox/fabric-node-dflwyw?file=%2Fsrc%2Findex.ts%3A14%2C1
Steps To Reproduce
Expected Behavior
Actual Behavior
Error Message & Stack Trace