javascript - change position of all selected svn-elements via translate() -
with pointermove
-event make svg-element dragable. after draging new position saved doing `save()'
canvas.on({ 'element:pointermove': function(elementview, event, x, y) { save(); } });
but want move multiple elements: elements want move have class highlighted
.
so pointermove-event can move 1 element, other highlighted elements (if there other highlighted elements) should same movement. think can translate()
.
but how can 'connect' $('.highlighted')-elements translate()
make them same movement?
Comments
Post a Comment