Add point insertion to the Path tool (#754)

* Messaging cleanup

* Add bezier iter

* Add splitting

* Use bezier_rs bounding box

* Cleanup

* Fix comments

* Fix typo

* Code review tweaks

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2022-08-21 22:43:24 +01:00
committed by Keavon Chambers
co-authored by Keavon Chambers
parent 1bcf55939d
commit b46bcc16ba
11 changed files with 239 additions and 39 deletions
+2 -4
View File
@@ -70,13 +70,11 @@ impl LayerData for TextLayer {
let mut path = self.to_subpath(buzz_face);
let kurbo::Rect { x0, y0, x1, y1 } = path.bounding_box();
let bounds = [(x0, y0).into(), (x1, y1).into()];
let bounds = path.bounding_box().unwrap_or_default();
path.apply_affine(transform);
let kurbo::Rect { x0, y0, x1, y1 } = path.bounding_box();
let transformed_bounds = [(x0, y0).into(), (x1, y1).into()];
let transformed_bounds = path.bounding_box().unwrap_or_default();
let _ = write!(
svg,