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

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Widget.SVG.Types.SVG_PolyLine

Description

Types and functions for the <polyline> SVG element.

The <polyline> SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the <polygon> element.

Synopsis

Documentation

svg_polyLine_path :: Lens' SVG_PolyLine (NonEmpty (Pos X, Pos Y)) Source #

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

svg_polyLine_start :: Lens' SVG_PolyLine (Pos X, Pos Y) Source #

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

makePolyLineProps :: SVG_PolyLine -> Map Text Text Source #

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