How to set cursor to custom value when I move a shape from the palette onto a flowchart


We have a diagram pretty similar to this:

In that sample, the cursor changes to ‘copy’ when the shape is dragged onto the chart from the palette. However, I’m having trouble replicating this functionality in my app and can’t find where in the code on that page the cursor is being set to ‘copy’. Also, we’d like to use a custom cursor in place of the standard ‘copy’ value.

How can we do this?


That’s all implemented by the DraggingTool. There are three undocumented DraggingTool properties that control the cursor that it uses: copyCursor, moveCursor, and nodropCursor. So you could try setting them. (They are declared in the go.d.ts file.)