I’ve implemented the HTML Drag and Drop, and external Clipboard pasting
I’m able to add the node from Html Drag but it keeps on adding to center of diagram. the
dragged.offsetX = event.offsetX - dragged.clientWidth / 2;
dragged.offsetY = event.offsetY - dragged.clientHeight / 2;
above lines seems to work i’ve checked with
console.log(mx);
console.log(my);
console.log(point);
but still somehow the node is appearing in center of canvas.