Remove editor instances concept and clean up JS interop code

This commit is contained in:
Keavon Chambers
2024-04-29 03:31:39 -07:00
parent 597c96a7db
commit 19eb6ce0ab
25 changed files with 256 additions and 325 deletions

View File

@@ -9,7 +9,7 @@ pub struct Editor {
}
impl Editor {
/// Construct a new editor instance.
/// Construct the editor.
/// Remember to provide a random seed with `editor::set_uuid_seed(seed)` before any editors can be used.
pub fn new() -> Self {
Self { dispatcher: Dispatcher::new() }

View File

@@ -273,7 +273,7 @@ mod test {
let _ = env_logger::builder().is_test(true).try_init();
}
/// Create an editor instance with three layers
/// Create an editor with three layers
/// 1. A red rectangle
/// 2. A blue shape
/// 3. A green ellipse