Intercepting Copy and Paste

In the flowchart I have created, the editor is able to use Copy and Paste with objects as expected. As the objects Paste directly over the location of the Copied item sometimes this is resulting in ‘phantom’ objects (and therefore confusing which object has links in/out).

Is there a way I can intercept the paste event and update the location of the item to be pasted such that I can simply offset a few pixels for visual notification to a user?

Thanks in advance.

Yes, there’s the “ClipboardPasted” DiagramEvent.

myDiagram.addDiagramListener(“ClipboardPasted”, function(e) { … });
$(go.Diagram, “myDiagramDiv”, …,
{ “ClipboardPasted”: function(e) { … } },

Great news! I’ll give this a run and post back the result! Thanks