def style.fills

gralha-svg-render@0.1.0.1 · svg.bend:4213

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

4213# Whether a style paints its fill or its stroke at all; masks are only built for those.
4214def style.fills(+s: Style) -> Bool:
4215  Style{fill, stroke, col, fo, so, width, even, visible, ss, ms, rendering, order} = s
4216  visible && Bool.not(U.string.equal(fill, "none"))

Uses (5)

Used by (2)