Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data SVG_Polygon = SVG_Polygon {}
- svg_polygon_path :: Lens' SVG_Polygon (NonEmpty (Pos X, Pos Y))
- svg_polygon_start :: Lens' SVG_Polygon (Pos X, Pos Y)
- makePolygonProps :: SVG_Polygon -> Map Text Text
Documentation
data SVG_Polygon Source #
Properties for the <polygon> element.
Instances
Eq SVG_Polygon Source # | |
Defined in Reflex.Dom.Widget.SVG.Types.SVG_Polygon (==) :: SVG_Polygon -> SVG_Polygon -> Bool # (/=) :: SVG_Polygon -> SVG_Polygon -> Bool # | |
Show SVG_Polygon Source # | |
Defined in Reflex.Dom.Widget.SVG.Types.SVG_Polygon showsPrec :: Int -> SVG_Polygon -> ShowS # show :: SVG_Polygon -> String # showList :: [SVG_Polygon] -> ShowS # |
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>.