I'm trying to build my own diagramming tool, which has some custom behavior compared to the default GoDigram behavior. The most important policy is that none of the elements should overlap.
I have a modal custom tool (called NewEntityTool), which creates an element on each click on the GoView surface. It denies clicks, which would create elements that overlap others. It shows a deny cursor.
What I would like to do is, to have a ghost element, when Iâ€™m working with this modal tool, so the user can actually see that the new element would overlap with the existing ones. Like when Iâ€™m moving an element, a ghost of the moving element is shown by default although the element isnâ€™t yet moved. Here is an example (the Second element is being moved):
How could I achieve that the ghost element would move with the mouse when my custom modal tool is on? I hope Iâ€™ve explained the problem well enough.
Thanks you for any suggestions.