-
-
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
Target in group #2997
Target in group #2997
Conversation
Needs:
DONE:
|
mouseover mouseout for subtargets will be made in a separate PR. There should be no problem implementing something like that, but becase now we use _hoveredTarget and we must change to a chain of hoverd targets, i need to take some time to choose best way. |
target = this._objects[i]; | ||
if (this._checkTarget(pointer, objects[i])) { | ||
target = objects[i]; | ||
if (target.type === 'group' && target.subTargetCheck) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to better support subclassing, this would make more sense as target instanceof fabric.Group
Does Fabric expect nested grouping? |
Groups can be nested. If not we fix it. |
Yeah, here is a code pen. http://codepen.io/anon/pen/bpXyQM Sorry for cluttering this issue, it came up with my work off this PR but then I realized it was actually going back to Fabric before any of these changes. EDIT Here is a pen with a solution I found http://codepen.io/anon/pen/yOmWww It removes the group from it's parent, then adds stuff to itself, then adds itself back to it's parent. Not the most beautiful solution, but points to the issue being with nested coordinate systems most likely |
Nesting group will be topic of another PR. I need to keep changes small, independent, revertable, understandable. Does the subtargeting work in group of groups? |
Yes, subtargeting works fine in groups of groups |
Hi, Thanks |
The subTargetCheck feature only works for Groups not pathgroup. I tried to fix it my self but the problem is the path position in a group is incorrect when we have scale and angle. I'm working with svg image and I need help . will it get fixed in next releases ? |
no. pathgroups are completely different, are not meant for group/ungrouping, they are |
updated version of #2729
closes #485
closes #2998
closes #3005