mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 02:48:12 +08:00
New node: Solidify Stroke (#1650)
* added struct and registered fill from stroke node. not functional yet. * properly registered new node * finished fill-from-stroke feature. works on both closed and open shapes. supports line caps and line joins. * fixed import issues and miter limit handling * fix outline function. use both subpaths for solid shapes now * code quality improvements * use radius instead of diameter, functionality not yet working for shapes as transform is not properly applied before calculating new shapes. * Updated to follow new VectorData structure. Fully functional. * fix repeat node * remove comment * add a test, remove unused code.
This commit is contained in:
@@ -704,6 +704,7 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
|
||||
register_node!(graphene_core::vector::SetStrokeNode<_, _, _, _, _, _, _>, input: VectorData, params: [Option<graphene_core::Color>, f64, Vec<f64>, f64, graphene_core::vector::style::LineCap, graphene_core::vector::style::LineJoin, f64]),
|
||||
register_node!(graphene_core::vector::RepeatNode<_, _>, input: VectorData, params: [DVec2, u32]),
|
||||
register_node!(graphene_core::vector::BoundingBoxNode, input: VectorData, params: []),
|
||||
register_node!(graphene_core::vector::SolidifyStrokeNode, input: VectorData, params: []),
|
||||
register_node!(graphene_core::vector::CircularRepeatNode<_, _, _>, input: VectorData, params: [f64, f64, u32]),
|
||||
vec![(
|
||||
ProtoNodeIdentifier::new("graphene_core::transform::CullNode<_>"),
|
||||
|
||||
Reference in New Issue
Block a user