Change document, viewport, and canvas terminology

This commit is contained in:
Keavon Chambers
2021-03-29 03:52:08 -07:00
parent 94f50377a3
commit b5cd8327dd
12 changed files with 73 additions and 52 deletions
+3 -3
View File
@@ -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]