Define the js wasm-editor interface (#31)

This commit is contained in:
TrueDoctor
2021-03-21 19:32:56 +01:00
committed by Keavon Chambers
parent 1b8c71d2b3
commit d254916430
10 changed files with 75 additions and 4 deletions
+18
View File
@@ -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!()
}