mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Attribute-based vector format refactor (#1624)
* Initial vector format structure * Click targets * Code review pass * Remove subpaths from vector data * Morph node & vector node tests * Insignificant change --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
c8ea9e05a6
commit
218e9675fd
30 changed files with 991 additions and 436 deletions
|
@ -60,7 +60,7 @@ pub struct VectorPointsNode;
|
|||
|
||||
#[node_fn(VectorPointsNode)]
|
||||
fn vector_points(vector: VectorData) -> Vec<DVec2> {
|
||||
vector.subpaths.iter().flat_map(|subpath| subpath.manipulator_groups().iter().map(|group| group.anchor)).collect()
|
||||
vector.point_domain.positions().to_vec()
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue