mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 03:18:11 +08:00
Define the js wasm-editor interface (#31)
This commit is contained in:
committed by
Keavon Chambers
parent
1b8c71d2b3
commit
d254916430
@@ -0,0 +1,18 @@
|
||||
/// Modify the currently selected tool in the document state store
|
||||
#[wasm_bindgen]
|
||||
pub fn select_tool(tool: String) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
/// Mouse movement with the bounds of the canvas
|
||||
#[wasm_bindgen]
|
||||
pub fn on_mouse_move(x: u32, y: u32) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
use graphite_editor::Color;
|
||||
/// Update working colors
|
||||
#[wasm_bindgen]
|
||||
pub fn update_colors(primary_color: Color, secondary_color: Color) {
|
||||
todo!()
|
||||
}
|
||||
Reference in New Issue
Block a user