mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 23:28:12 +08:00
Change document, viewport, and canvas terminology
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
pub mod document;
|
||||
mod shims;
|
||||
pub mod utils;
|
||||
pub mod viewport;
|
||||
pub mod window;
|
||||
pub mod wrappers;
|
||||
|
||||
@@ -18,13 +18,13 @@ pub fn init() {
|
||||
|
||||
fn handle_response(response: Response) {
|
||||
match response {
|
||||
Response::UpdateCanvas { document } => update_canvas(document),
|
||||
Response::UpdateCanvas { document } => updateCanvas(document),
|
||||
}
|
||||
}
|
||||
|
||||
#[wasm_bindgen(module = "/../src/wasm-callback-processor.js")]
|
||||
extern "C" {
|
||||
fn update_canvas(svg: String);
|
||||
fn updateCanvas(svg: String);
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
||||
Reference in New Issue
Block a user