mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 06:08:11 +08:00
Remove WebPack and let Vue CLI handle WASM. Project restructuring fixes. Add Vue SVG Loader. Fixes #29.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
use graphite_editor::Color as InnerColor;
|
||||
use graphite_editor_core::Color as InnerColor;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
||||
Reference in New Issue
Block a user