🐛 Use SrcIn only when there is only one inner stroke, otherwise use erode filter

This commit is contained in:
Elena Torro
2025-08-22 09:54:15 +02:00
parent 96a91dc710
commit 0b7444e8ff
3 changed files with 28 additions and 5 deletions

View File

@@ -1109,6 +1109,13 @@ impl Shape {
pub fn has_visible_inner_strokes(&self) -> bool {
self.visible_strokes().any(|s| s.kind == StrokeKind::Inner)
}
pub fn count_visible_inner_strokes(&self) -> usize {
self.visible_strokes()
.filter(|s| s.kind == StrokeKind::Inner)
.count()
}
/*
Returns the list of children taking into account the structure modifiers
*/