Closed anoop901 closed 1 year ago
The mouse can temporarily drag a block (along with blocks nested in it) to arbitrary locations. When the mouse is released, the layers
field of the program should be updated, and the dragged block should snap to the location where the layout puts it with the new layers
value.
The new value of layers
should be determined by the location of the mouse when it is released.
If updating layers
as described here would violate the layer dependency constraint, then layers
should remain unchanged instead.
Also, if this update leaves any layers empty, they should disappear.
Any changes to which clusters are in which layers should not violate the dependency constraint described in #92: