mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-09 00:58:11 +08: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:
co-authored by
Keavon Chambers
parent
c8ea9e05a6
commit
218e9675fd
@@ -236,7 +236,7 @@ impl WasmSubpath {
|
||||
}
|
||||
|
||||
pub fn project(&self, x: f64, y: f64) -> String {
|
||||
let (segment_index, projected_t) = self.0.project(DVec2::new(x, y), None).unwrap();
|
||||
let (segment_index, projected_t) = self.0.project(DVec2::new(x, y)).unwrap();
|
||||
let projected_point = self.0.evaluate(SubpathTValue::Parametric { segment_index, t: projected_t });
|
||||
|
||||
let subpath_svg = self.to_default_svg();
|
||||
|
||||
Reference in New Issue
Block a user