Replace the control bar's stroke weight with a full stroke properties popover (#4145)

* Replace the control bar's stroke weight with a full stroke properties popover

* Code review
This commit is contained in:
Keavon Chambers
2026-05-13 03:58:12 -07:00
committed by GitHub
parent 629a1f4b4c
commit 4d5dce976e
14 changed files with 609 additions and 169 deletions

View File

@@ -294,9 +294,10 @@ impl ClickTarget {
return true;
}
// Selection point inside compound fill (non-zero rule)
let combined: BezPath = subpaths.iter().flat_map(|subpath| subpath.to_bezpath()).collect();
if bezier_iter().next().is_some_and(|bezier| combined.contains(bezier.start())) {
// Selection point inside compound fill (non-zero rule).
// Only closed subpaths contribute to the fill region; open segments would otherwise produce spurious winding on one side of the segment.
let combined: BezPath = subpaths.iter().filter(|subpath| subpath.closed()).flat_map(|subpath| subpath.to_bezpath()).collect();
if !combined.is_empty() && bezier_iter().next().is_some_and(|bezier| combined.contains(bezier.start())) {
return true;
}