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

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Widget.SVG.Types.SVG_Polygon

Description

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.

Synopsis

Documentation

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>.