Prevent showing the purple selection rectangle

Hello,

Although I set the diagram’s maxSelectionCount to 1, I would like to completely avoid showing the purple selection rectangle that is displayed when dragging from an empty area of the diagram. Is this possible?

Thanks,
Marc.

That’s implemented by the DragSelectingTool – a rubber-band multiple selection tool.

If you don’t need that functionality, just disable it when you initialize your Diagram:
“dragSelectingTool.isEnabled”: false

More information is available at: http://gojs.net/latest/intro/tools.html

Excellent. Thank you!