is it possible to drag all children elements of a layer without grouping them?
I have different layers with image-elements and a path shape. The path draws a bubble around the images. If the user drag the bubble to another place, all images should move there, too.
But it should be also possible to drag a single element. At the moment, it is possible to drag a single element and to drag the bubble, but there is no combination...
Yes, you can drag "related" nodes when a "container" node is dragged:
add a class to all children of a bubble (for example, each child's name:"bubble1")
on bubble
dragstart
, save the bubble's starting positionon bubble
dragmove
, calculate how far the bubble has been dragged and reposition all related elements by that same distanceExample code and a Demo: http://jsfiddle.net/m1erickson/Zr6TE/