cnc-pattern-lib-0.1.0.0: Haskell library for creating SVG patterns for CNC routers

Safe HaskellNone
LanguageHaskell2010

Style

Synopsis

Documentation

data StyleAttrs Source #

Instances
Eq StyleAttrs Source # 
Instance details

Defined in Style

Show StyleAttrs Source # 
Instance details

Defined in Style

withStrokeColor :: String -> StyleAttrs Source #

Shortcut constructor for a StyleAttrs instance wherre just stroke color is set.

defaultStyleAttrs :: StyleAttrs Source #

Shortcut constructor for an "empty" StyleAttrs instance (i.e. no styles are specified)

getAttrs :: StyleAttrs -> [Attribute] Source #

Return a list of Blaze.SVG attributes from a given style.

applyStyle :: StyleAttrs -> Svg -> Svg Source #

Apply the given style to an SVG element.

maybeApplyStyle :: Maybe StyleAttrs -> Svg -> Svg Source #

Apply the given style to an SVG element, if provided.