mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Let vector modifier nodes operate on graphic content by recursing into groups (#4431)
* Make the 'Solidify Stroke' node preserve graphic structure instead of flattening its input * Add a shared trait letting element-wise vector modifiers recurse into graphic groups * Make 20 element-wise vector modifier nodes accept graphic input * Make 'Separate Subpaths' and 'Points to Polyline' accept graphic input * Make the 'Map Points' node accept graphic input * Add TODO comments to the measure nodes deferred until the Graphic lowering refactor
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -385,8 +385,8 @@ mod tests {
|
||||
#[test]
|
||||
fn item_list_wire_pair_collapses_to_list() {
|
||||
let registry = core_types::registry::NODE_REGISTRY.lock().unwrap();
|
||||
let identifier = ProtoNodeIdentifier::new("core_types::vector::BoundingBoxNode");
|
||||
let implementations = registry.get(&identifier).expect("Bounding Box should be registered");
|
||||
let identifier = ProtoNodeIdentifier::new("core_types::vector::DimensionsNode");
|
||||
let implementations = registry.get(&identifier).expect("Dimensions should be registered");
|
||||
|
||||
let primary_types: HashSet<_> = implementations.iter().map(|(_, node_io)| node_io.inputs[0].clone()).collect();
|
||||
assert_eq!(primary_types.len(), 2, "An element-wise node should register Item and List wire variants for its primary input");
|
||||
|
||||
Reference in New Issue
Block a user