Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29.

This commit is contained in:
Keavon Chambers
2021-03-23 01:09:29 -07:00
parent 76043cebcb
commit fb5ce7e388
26 changed files with 314 additions and 649 deletions
+5
View File
@@ -16,3 +16,8 @@ pub fn handle_event(event_name: String) {
// TODO: add payload
todo!()
}
#[wasm_bindgen]
pub fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
+1 -1
View File
@@ -20,7 +20,7 @@ pub fn get_active_document() -> DocumentId {
todo!()
}
use graphite_editor::workspace::PanelId;
use graphite_editor_core::workspace::PanelId;
/// Notify the editor that the mouse hovers above a panel
#[wasm_bindgen]
pub fn panel_hover_enter(panel_id: PanelId) {
+1 -1
View File
@@ -1,4 +1,4 @@
use graphite_editor::Color as InnerColor;
use graphite_editor_core::Color as InnerColor;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]