-
-
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
Grouping Objects together, the fill becomes black #2213
Comments
If you submit a bug, please try to reduce code to the minimum to show the bug. |
I suppose you are using some saving, loading from JSON. |
I'm not sure if this is the scenario the original poster had, but it seems similar. I'm loading JSON data, and when the data passes through fabric.util.enlivenObjects, the objects within the group inherit the fill set on the group. Here is a fiddle: http://jsfiddle.net/SxBfp/64/ I'm not sure if this is by design or a bug. |
@spearson2010 Thank you for giving information! This is the current kangax/master builded version http://jsfiddle.net/sapics/SxBfp/65/. |
The fill of each item in the group is maintained, so that works for me. Question though, if I remove the fill attribute on each item, the fill becomes black. Is this a default, or should it then inherit the red fill from the group? |
I'm having a similar issue, but right now I'm confused on what exactly fabric.util.enlivenObjects is. Does somebody mind explaining it to me? |
is the function that switch from object form to class instances. from {type: 'rect', width : 50.... } to fabric.Rect |
Hey Guys I have the same issue when I try to group the objects in the active group, it fill everything in black. Any Idea why? |
I have the exact same problem. |
hi @creaz35 this is an issue from 2016. |
Just uploaded 1.5.0 from 1.4.14 and found an issue when grouping objects together. If you have 2 objects. Say a circle that is red filled and a triangle that is blue filled. When I tried to grouping these 2 objects together, the fill in both objects turn black. It does not retain the original color (red and blue or any other color other than black). Example below:
Figure #1 - Both objects are created
Figure #2 - Both objects are selected
Figure #3 - Grouping them (programmed group into the context menu)
Figure #4 - After grouping occurs, both objects turn black.
Note: this problem does NOT occur in 1.4.13.
The text was updated successfully, but these errors were encountered: