mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-04 19:41:51 -05:00
Keep may_spread_as_an_outline's doc comment on it
This commit is contained in:
@@ -1031,9 +1031,6 @@ impl Node {
|
||||
stroke + glyphs
|
||||
}
|
||||
|
||||
/// Whether a drop shadow's spread can grow this node's outline (see [`Node::outline_spreads`]):
|
||||
/// not a group's or stroked text's, which the renderer spreads as pixels, in page units. Others
|
||||
/// can still turn out to be drawn that way (children, images with alpha): counted both ways.
|
||||
/// Whether this node's drop shadows grow (or shrink) by their spread. A frame that doesn't clip
|
||||
/// its content casts them as it is, whatever their spread, as the reference tool draws them
|
||||
/// (measured, #2777); clipping its content again brings the spread back.
|
||||
@@ -1064,6 +1061,9 @@ impl Node {
|
||||
Some(n)
|
||||
}
|
||||
|
||||
/// Whether a drop shadow's spread can grow this node's outline (see [`Node::outline_spreads`]):
|
||||
/// not a group's or stroked text's, which the renderer spreads as pixels, in page units. Others
|
||||
/// can still turn out to be drawn that way (children, images with alpha): counted both ways.
|
||||
fn may_spread_as_an_outline(&self) -> bool {
|
||||
!(matches!(self.kind, NodeKind::Group) || (matches!(self.kind, NodeKind::Text(_)) && self.has_visible_stroke()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user