Add transactions for temporary modifications to the document (#77)

* Add transactions for temporary modifications to the document

* Add DiscardTempFolder Operation

* Add clearFolder operation

* Rename Temp to Work
This commit is contained in:
TrueDoctor
2021-04-21 00:32:36 +02:00
committed by GitHub
parent b30e9ce3ba
commit 9ffbb4ce39
5 changed files with 15666 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
use crate::LayerId;
#[derive(Debug, Clone, PartialEq)]
pub enum Operation {
AddCircle {
path: Vec<LayerId>,
@@ -39,4 +40,10 @@ pub enum Operation {
AddFolder {
path: Vec<LayerId>,
},
MountWorkingFolder {
path: Vec<LayerId>,
},
DiscardWorkingFolder,
ClearWorkingFolder,
CommitTransaction,
}