mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 19:48:11 +08:00
Rename import to remove graphite prefix (#50)
This commit is contained in:
@@ -17,7 +17,7 @@ default = ["console_error_panic_hook"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
console_error_panic_hook = { version = "0.1.6", optional = true }
|
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"
|
wasm-bindgen = "0.2.72"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ pub mod viewport;
|
|||||||
pub mod window;
|
pub mod window;
|
||||||
pub mod wrappers;
|
pub mod wrappers;
|
||||||
|
|
||||||
use graphite_editor_core::{events::Response, Callback, Editor};
|
use editor_core::{events::Response, Callback, Editor};
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use crate::shims::Error;
|
use crate::shims::Error;
|
||||||
use crate::wrappers::{translate_tool, Color};
|
use crate::wrappers::{translate_tool, Color};
|
||||||
use crate::EDITOR_STATE;
|
use crate::EDITOR_STATE;
|
||||||
use graphite_editor_core::events;
|
use editor_core::events;
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
/// Modify the currently selected tool in the document state store
|
/// Modify the currently selected tool in the document state store
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub fn get_active_document() -> DocumentId {
|
|||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
use graphite_editor_core::workspace::PanelId;
|
use editor_core::workspace::PanelId;
|
||||||
/// Notify the editor that the mouse hovers above a panel
|
/// Notify the editor that the mouse hovers above a panel
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn panel_hover_enter(panel_id: PanelId) {
|
pub fn panel_hover_enter(panel_id: PanelId) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use crate::shims::Error;
|
use crate::shims::Error;
|
||||||
use graphite_editor_core::tools::{SelectAppendMode, ToolType};
|
use editor_core::tools::{SelectAppendMode, ToolType};
|
||||||
use graphite_editor_core::Color as InnerColor;
|
use editor_core::Color as InnerColor;
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
|
|||||||
Reference in New Issue
Block a user