Drag to rearrange layers in the layer panel (#434)

* Add insert line

* Implement dragging

* Improve CSS and variable naming consistency

* Resolved folder crash, added Undo/Redo support

* Removed marker TODO leftover

* JS cleanup

* WIP preserving expanded state (via LayerData) when copy/pasting and moving layers in layer panel

* Finish making folders copy/paste preserving expanded state, but not recursively yet

* Add cut, copy, and paste to the Edit menu (#440)

* Add cut

* Hook up edit dropdown

* Use copy message

Co-authored-by: Keavon Chambers <keavon@keavon.com>
Co-authored-by: otdavies <oliver@psyfer.io>
This commit is contained in:
0HyperCube
2021-12-30 17:18:18 +00:00
committed by Keavon Chambers
co-authored by Keavon Chambers otdavies
parent 451c9fcd46
commit 3de426b7cc
9 changed files with 264 additions and 36 deletions
+2 -2
View File
@@ -76,9 +76,9 @@ pub enum Operation {
path: Vec<LayerId>,
name: String,
},
PasteLayer {
InsertLayer {
layer: Layer,
path: Vec<LayerId>,
destination_path: Vec<LayerId>,
insert_index: isize,
},
CreateFolder {