Rename import to remove graphite prefix (#50)
This commit is contained in:
parent
b6d4baa513
commit
6df42ed718
|
|
@ -17,7 +17,7 @@ default = ["console_error_panic_hook"]
|
|||
|
||||
[dependencies]
|
||||
console_error_panic_hook = { version = "0.1.6", optional = true }
|
||||
graphite-editor-core = { path = "../../../core/editor" }
|
||||
editor-core = { path = "../../../core/editor", package = "graphite-editor-core" }
|
||||
wasm-bindgen = "0.2.72"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ pub mod viewport;
|
|||
pub mod window;
|
||||
pub mod wrappers;
|
||||
|
||||
use graphite_editor_core::{events::Response, Callback, Editor};
|
||||
use editor_core::{events::Response, Callback, Editor};
|
||||
use std::cell::RefCell;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::shims::Error;
|
||||
use crate::wrappers::{translate_tool, Color};
|
||||
use crate::EDITOR_STATE;
|
||||
use graphite_editor_core::events;
|
||||
use editor_core::events;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
/// Modify the currently selected tool in the document state store
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ pub fn get_active_document() -> DocumentId {
|
|||
todo!()
|
||||
}
|
||||
|
||||
use graphite_editor_core::workspace::PanelId;
|
||||
use editor_core::workspace::PanelId;
|
||||
/// Notify the editor that the mouse hovers above a panel
|
||||
#[wasm_bindgen]
|
||||
pub fn panel_hover_enter(panel_id: PanelId) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::shims::Error;
|
||||
use graphite_editor_core::tools::{SelectAppendMode, ToolType};
|
||||
use graphite_editor_core::Color as InnerColor;
|
||||
use editor_core::tools::{SelectAppendMode, ToolType};
|
||||
use editor_core::Color as InnerColor;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
|
|
|||
Loading…
Reference in New Issue