mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 11:38:11 +08:00
Rename EditorHandle -> EditorWrapper and organize editor_api.rs (#3925)
* Rename EditorHandle -> EditorWrapper and organize editor_api.rs * pub -> pub(crate)
This commit is contained in:
@@ -10,8 +10,8 @@ Assorted function and struct definitions used in the Wasm wrapper.
|
||||
|
||||
## Native communication: `src/native_communication.rs`
|
||||
|
||||
Handles receiving serialized `FrontendMessage`s from the native desktop app via an `ArrayBuffer` and forwarding them to JS through the editor handle.
|
||||
Handles receiving serialized `FrontendMessage`s from the native desktop app via an `ArrayBuffer` and forwarding them to JS through the editor wrapper.
|
||||
|
||||
## Wasm wrapper initialization: `src/lib.rs`
|
||||
|
||||
Entry point for the Rust codebase in the Wasm environment. Sets up panic hooks and logging, and defines thread-local storage for the editor instance, editor handle, message buffer, and panic dialog callback.
|
||||
Entry point for the Rust codebase in the Wasm environment. Sets up panic hooks and logging, and defines thread-local storage for the editor instance, editor wrapper, message buffer, and panic dialog callback.
|
||||
|
||||
Reference in New Issue
Block a user