reflex-dom-svg- Reflex functions for SVG elements.

Safe HaskellNone



Types and functions for the <polygon> SVG element.

The <polygon> element defines a closed shape consisting of a set of connected straight line segments. The last point is connected to the first point. For open shapes see the <polyline> element.



svg_polygon_path :: Lens' SVG_Polygon (NonEmpty (Pos X, Pos Y)) Source #

Lens for the list of (Pos X, Pos Y) of an SVG_Polygon path attribute.

svg_polygon_start :: Lens' SVG_Polygon (Pos X, Pos Y) Source #

Lens for the starting (Pos X, Pos Y) of an SVG_Polygon element.

makePolygonProps :: SVG_Polygon -> Map Text Text Source #

Convert the given properties to the correct points attribute of a <polygon>.