Implement menu bar floating list menus (#163)

Progress towards #135
This commit is contained in:
Keavon Chambers
2021-05-31 11:51:32 -07:00
parent 3d646d2bc3
commit d1bf68320e
16 changed files with 482 additions and 58 deletions
+6
View File
@@ -92,6 +92,12 @@ pub fn reset_colors() -> Result<(), JsValue> {
EDITOR_STATE.with(|editor| editor.borrow_mut().handle_message(ToolMessage::ResetColors)).map_err(convert_error)
}
/// Undo history one step
#[wasm_bindgen]
pub fn undo() -> Result<(), JsValue> {
EDITOR_STATE.with(|editor| editor.borrow_mut().handle_message(DocumentMessage::Undo)).map_err(convert_error)
}
/// Select a layer from the layer list
#[wasm_bindgen]
pub fn select_layer(path: Vec<LayerId>) -> Result<(), JsValue> {