I am using svg.js and dragg.js to move around a series of dynamically created objects (rects and circles etc).
They are all in a group called nodes
, I can get the positioning of the item being dragged but I am lost at trying to retrieve the
g id="dyanmicidIcreated"
I need this to identify which SVG object was moved?
nodes.mouseup(node => {
console.log("x: "+node.clientX)
console.log("y: "+node.clientY)
})