mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 20:28:13 +08:00
Restructure node crates (#3384)
* Restructure node-graph folder * Fix wasm compilation * Move node definitions out of *-types crates * Cleanup * Fix warnings * Fix warnings * Start adding migrations * Add migrations and move memo nodes to gcore * Move nodes/gsvg-render -> rendering * Replace some hard coded identifiers and fix automatic conversion * Fix Vec2Value node migration * Fix formatting * Add more migrations * Cleanup features * Fix core_types::raster import * Update demo artwork (to make profile ci work) * Move *-types to node-graph/libraries folder * Add missing node migrations * Migrate more nodes * Remove impure memo node * More fixes and remove warning * Migrate context and add a few missing migrations --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
12453d2e61
commit
57b0b9c7ed
@@ -0,0 +1,117 @@
|
||||
pub mod any;
|
||||
pub mod render_node;
|
||||
pub mod text;
|
||||
#[cfg(feature = "wasm")]
|
||||
pub mod wasm_application_io;
|
||||
|
||||
pub use blending_nodes;
|
||||
pub use brush_nodes as brush;
|
||||
pub use core_types::*;
|
||||
pub use graphene_application_io as application_io;
|
||||
pub use graphene_core;
|
||||
pub use graphic_nodes;
|
||||
pub use math_nodes;
|
||||
pub use path_bool_nodes as path_bool;
|
||||
pub use raster_nodes;
|
||||
pub use text_nodes;
|
||||
pub use transform_nodes;
|
||||
pub use vector_nodes;
|
||||
pub use vector_types;
|
||||
|
||||
/// Backward compatibility re-exports
|
||||
pub mod vector {
|
||||
pub use graphic_types::Vector;
|
||||
pub use vector_types::vector::{VectorModification, VectorModificationType, misc, style};
|
||||
pub use vector_types::*;
|
||||
|
||||
// Re-export commonly used types and submodules
|
||||
pub use vector_types::vector::algorithms;
|
||||
pub use vector_types::vector::click_target;
|
||||
pub use vector_types::vector::misc::HandleId;
|
||||
pub use vector_types::vector::{PointId, RegionId, SegmentId, StrokeId};
|
||||
pub use vector_types::vector::{deserialize_hashmap, serialize_hashmap};
|
||||
|
||||
// Re-export HandleExt trait and NoHashBuilder
|
||||
pub use vector_types::vector::HandleExt;
|
||||
pub use vector_types::vector::NoHashBuilder;
|
||||
|
||||
// Re-export vector node modules and functions
|
||||
pub use vector_nodes::*;
|
||||
}
|
||||
|
||||
pub mod graphic {
|
||||
pub use graphic_nodes::graphic::*;
|
||||
pub use graphic_types::Artboard;
|
||||
pub use graphic_types::graphic::*;
|
||||
}
|
||||
|
||||
pub mod artboard {
|
||||
pub use graphic_nodes::artboard::*;
|
||||
pub use graphic_types::artboard::*;
|
||||
}
|
||||
|
||||
pub mod subpath {
|
||||
pub use vector_types::subpath::*;
|
||||
}
|
||||
|
||||
pub mod gradient {
|
||||
pub use vector_types::GradientStops;
|
||||
}
|
||||
|
||||
pub mod transform {
|
||||
pub use core_types::transform::*;
|
||||
pub use vector_types::ReferencePoint;
|
||||
}
|
||||
|
||||
pub mod math {
|
||||
pub use core_types::math::quad;
|
||||
|
||||
pub mod math_ext {
|
||||
pub use vector_types::{QuadExt, RectExt};
|
||||
}
|
||||
}
|
||||
|
||||
pub mod logic {
|
||||
pub use graphene_core::logic::*;
|
||||
}
|
||||
|
||||
pub use graphene_core::debug;
|
||||
|
||||
// Re-export graphene_core modules for backward compatibility
|
||||
pub mod ops {
|
||||
pub use core_types::ops::*;
|
||||
pub use graphene_core::ops::*;
|
||||
}
|
||||
|
||||
pub mod extract_xy {
|
||||
pub use graphene_core::extract_xy::*;
|
||||
}
|
||||
|
||||
pub mod animation {
|
||||
pub use graphene_core::animation::*;
|
||||
}
|
||||
|
||||
// Re-export at top level for convenience
|
||||
pub use graphic_types::{Artboard, Graphic, Vector};
|
||||
|
||||
/// stop gap solutions until all paths have been replaced with their absolute ones
|
||||
pub mod renderer {
|
||||
pub use core_types::math::quad::Quad;
|
||||
pub use core_types::math::rect::Rect;
|
||||
pub use rendering::*;
|
||||
}
|
||||
|
||||
pub mod raster {
|
||||
pub use graphic_types::raster_types::*;
|
||||
pub use raster_nodes::adjustments::*;
|
||||
pub use raster_nodes::*;
|
||||
}
|
||||
|
||||
pub mod raster_types {
|
||||
pub use graphic_types::raster_types::*;
|
||||
}
|
||||
|
||||
pub mod memo {
|
||||
pub use core_types::memo::*;
|
||||
pub use graphene_core::memo::*;
|
||||
}
|
||||
Reference in New Issue
Block a user