Skip to content
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

Group opacity not delegated #2656

Merged
merged 2 commits into from
Nov 30, 2015
Merged

Group opacity not delegated #2656

merged 2 commits into from
Nov 30, 2015

Conversation

asturur
Copy link
Member

@asturur asturur commented Nov 29, 2015

I'm not a fan of delegate properties at all.
As mentioned in #2643 setting group opacity overrides all elements opacity.

Opacity is directly rendered in every object multiplying object opacity by group opacity, also overriding it would be wrong because setting half opacity for a group of object with mixed opacity levels would result in a flattened opacity for all.

Also if we delegate "fill" i do not see why we should not delegate "stroke" and "strokeWidth" that are not rendered in group, so if we are setting them we can set just on the objects.

closes #2643

kangax added a commit that referenced this pull request Nov 30, 2015
@kangax kangax merged commit 6aeabcb into fabricjs:master Nov 30, 2015
@asturur asturur deleted the groupopacity branch December 6, 2015 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group Opacity is set to subelements ignoring subelements opacity.
2 participants