mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 10:48:12 +08:00
Rename project structure with /core and /client
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
type DocumentId = u32;
|
||||
|
||||
/// Modify the active Document in the editor state store
|
||||
#[wasm_bindgen]
|
||||
pub fn set_active_document(document_id: DocumentId) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
/// Query the name of a specific document
|
||||
#[wasm_bindgen]
|
||||
pub fn get_document_name(document_id: DocumentId) -> String {
|
||||
todo!()
|
||||
}
|
||||
|
||||
/// Query the id of the most recently interacted with document
|
||||
#[wasm_bindgen]
|
||||
pub fn get_active_document() -> DocumentId {
|
||||
todo!()
|
||||
}
|
||||
|
||||
use graphite_editor::workspace::PanelId;
|
||||
/// Notify the editor that the mouse hovers above a panel
|
||||
#[wasm_bindgen]
|
||||
pub fn panel_hover_enter(panel_id: PanelId) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
/// Query a list of currently available operations
|
||||
#[wasm_bindgen]
|
||||
pub fn get_available_operations() -> Vec<JsValue> {
|
||||
todo!();
|
||||
// vec!["example1", "example2"].into_iter().map(JsValue::from).collect()
|
||||
}
|
||||
|
||||
/*
|
||||
/// Load a new .gdd file into the editor
|
||||
/// Returns a unique document identifier
|
||||
#[wasm_bindgen]
|
||||
pub fn load_document(raw_data: &[u8]) -> DocumentId {
|
||||
todo!()
|
||||
}*/
|
||||
Reference in New Issue
Block a user