Module

Hylograph.Components.LineStyle

Package
purescript-hylograph-components
Repository
afcondon/purescript-hylograph-components

Shared line-style vocabulary. Used by both Legend (swatch line patterns) and Annotation (reference-line dashes). A cross-cutting module so the two consumers don't each carry their own copy.

#LineStyle Source

data LineStyle

SVG stroke-dasharray patterns as an ADT. CustomDash takes the raw string so unusual patterns remain expressible without combinatorial ADT growth.

Constructors

#dashArray Source

dashArray :: LineStyle -> Maybe String

Produce the stroke-dasharray attribute value for non-solid styles. Solid returns Nothing so the caller can skip emitting the attribute.