mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
* Add crate documentation * Use full path intead of relative path * Add documentation to core/document/src/color.rs * Add modification by * Add @Keavon's modification * @Keavon's changes * remove useless let Co-authored-by: TrueDoctor <dennis@kobert.dev>
27 lines
806 B
Rust
27 lines
806 B
Rust
//! Graphite Document Core Library: `/core/document/`
|
|
//! A stateless library for updating Graphite design document (GDD) files.
|
|
//! The official Graphite CLI and Editor Core Library are the primary users,
|
|
//! but this library is intended to be useful to any application that wants to link the library for the purpose of updating GDD files by sending edit operations.
|
|
//! Optionally depends on the Renderer Core Library if rendering is required.
|
|
|
|
pub mod color;
|
|
pub mod document;
|
|
pub mod intersection;
|
|
pub mod layers;
|
|
pub mod operation;
|
|
pub mod response;
|
|
|
|
pub use operation::Operation;
|
|
pub use response::DocumentResponse;
|
|
|
|
pub type LayerId = u64;
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
|
pub enum DocumentError {
|
|
LayerNotFound,
|
|
InvalidPath,
|
|
IndexOutOfBounds,
|
|
NotAFolder,
|
|
NonReorderableSelection,
|
|
}
|