Effects: the member limit's doc comment says a compound path with fill or stroke effects becomes a group of pieces

This commit is contained in:
dotCooCoo
2026-11-14 10:09:26 -08:00
parent 40d0b31cbe
commit 66f989c27b
+5 -3
View File
@@ -37,9 +37,11 @@ pub(crate) fn with_clip_effects_applied(n: &Node) -> Option<Node> {
/// [`with_clip_effects_applied`] that calls `take` before it visits each member of a group, layer
/// or compound path in `n`, at every depth: once `take` returns `false`, that member and the
/// members after it are not visited. The members of a group or layer that are not visited stay as
/// they are, with their effects. A compound path with geometry effects of its own, or of its fills
/// and strokes, still becomes a path of its reshaped geometry: the paths in it that are not visited
/// go into that geometry as they are, and their own effects are not applied.
/// they are, with their effects. A compound path with geometry effects of its own still becomes a
/// path of its reshaped geometry. In a clipping path that does not paint, one whose fills or
/// strokes have geometry effects still becomes a group of one path per fill and stroke. In both
/// cases the paths in it that are not visited go
/// into that geometry as they are, and their own effects are not applied.
pub(crate) fn with_clip_effects_applied_while(n: &Node, take: fn() -> bool) -> Option<Node> {
let paint = n.clip_paint();
clip_effects_applied(n, paint.fill.is_none() && paint.stroke.is_none(), take)