draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

Solution to prohibit the intersection of shapes

Open e2sence opened this issue 5 years ago • 4 comments

Hello, is there any ready-made solution to prohibit the intersection of shapes when dragging and dropping?

e2sence avatar Apr 16 '20 14:04 e2sence

didn't get the requirement complete.

You want to arrange the shapes in that way, that it is impossible that one shape is above another one?

freegroup avatar Apr 16 '20 18:04 freegroup

yes ... it seems so I tried to show the desired result: ezgif-6-74f11ee98741 figures should not intersect when moving

e2sence avatar Apr 17 '20 06:04 e2sence

and what should happen if the mouse if above/in the center of the group?

Another solution could be that the mouse pointer is changing to "forbid" and if the user drops the shape on the group, the figure goes back to the original position.

freegroup avatar Apr 17 '20 07:04 freegroup

It seems I’m starting to understand ... how to calculate and prohibit the intersection of BoundingBox?

e2sence avatar Apr 17 '20 19:04 e2sence