Drop target using ExternalObjectsDropped

Hi Walter,

I suspect there might be an issue with the way I’ve positioned the Palette and Diagram in my development environment. This could be why diagram.currentTool instanceof go.DraggingTool is always returning false for me. I also think this div placement issue might be related to another unresolved issue I’ve encountered: Drag from palette to diagram is not showing the shape - #17 by tejeshguggilla.

Regarding the current issue, I’m exploring various ways to identify drop targets from ExternalObjectsDropped, and I was considering the workaround below. When I drop a node within the diagram, newNodePart.position gives me the correct coordinates, and I can locate the part using these coordinates:

diagram.findPartAt(new go.Point(newNodePart.position.x, newNodePart.position.y))

However, when I drag a node from the Palette and drop it onto the Diagram canvas, newNodePart.position provides the coordinates of the Palette rather than the drop location. As a result, the workaround doesn’t work when dropping nodes from the Palette. Could this again be related to the

placement issue?