BPMN Editor positioning drag and dropped custom node

Thanks for the reply. It was my mistake I should pass the location in string format. I fixed the issue by converting it to string.

I have one more issue, problem is I am highlighting the dropped node by using below code but highlight is not working.

Code posted above shows calling highlight method is commented out. It didn’t work so I commented out and also I tried calling this method from div.addEventListener(“drop”, function(event:any) but no luck.

function highlight(node) { // may be null
var oldskips = myDiagram.skipsUndoManager;
myDiagram.skipsUndoManager = true;
myDiagram.startTransaction(“highlight”);
if (node !== null) {
myDiagram.highlight(node);
} else {
myDiagram.clearHighlighteds();
}
myDiagram.commitTransaction(“highlight”);
myDiagram.skipsUndoManager = oldskips;
}

Any help on this is appreciated