Thanks for the prompt response! Will make sure to include more details in future posts.
Hello,
As I mentioned in my previous post, we are having issues with dragging and removing of multiple selected nodes after updating them using the updateNode method.
After using the selection rectangle (rubber band selection) to enclose a group of nodes, we are using the following logic to update the nodes selected:
var diagram = $("#diagram").ejDiagram("instance");
$("#diagram").ejDiagram({
selectionChange: function(args) {
if (args.state == "changed" && args.changeType == "insert" && args.elementType == "pseudoGroup") {
args.selectedItems.forEach(function(item) {
if (item._type == "node") {
diagram.updateNode(item.name, {
templateId: ***name of template***;
});
}
});
}
});
The value assigned to templateId represents an svg of a highlighted node.
The problem is that once the updateNode method has been used to update the multiple selected nodes, they no longer have the ability to be dragged or removed together. Only one node is dragged or removed at one time. Please refer to the attachment for screens.
Thanks Shyam! Works great.