Hi,
In diagram, the function getNodeDefaults is triggered twice, which is the default behaviour.
dragEnter: When you drag a node in the diagram, the getNodeDefaults function is triggered which allows you to customize the appearance of the preview node during the drag operation.
drop: When you drop a node in the diagram, the getNodeDefaults function is triggered again. This time, it helps in defining the appearance of the dropped node after the drop operation has taken place. You can modify the node's properties based on the dropped element.
Regards,
Gobinath