Open NoLongerBreathedIn opened 5 years ago
This is a nice idea. We should implement removal of top-dimensional cells using this mechanism. Homotopy.io doesn't currently have invertibility, so we can't implement removal of non-top-dimensional cells using the same trick.
Once this is implemented the "behead" button could then be removed.
Actually, one could replace the 'cannot drag off diagram' by a test of whether one is attempting to remove a top-dimensional cell, and if so, then replace with 'behead'/'co-behead'.
But first, check if it's possible to expand.
In Globular, it's possible to remove a cell from the diagram by dragging. If it is invertible, this can be done in any dimension (the effect is as if an inverse copy is attached, and they are temporarily cancelled). If non-invertible, the cell must be top-dimensional.