Rename import to remove graphite prefix (#50)

This commit is contained in:
T0mstone 2021-03-28 00:43:37 +01:00 committed by Keavon Chambers
parent b6d4baa513
commit 6df42ed718
5 changed files with 6 additions and 6 deletions

View File

@ -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]

View File

@ -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::*;

View File

@ -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

View File

@ -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) {

View File

@ -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]