From 4e5e829b3d5963f1fa03046280917f9f8a11cd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Hsu=20=28=E5=BE=90=E6=89=BF=E5=BF=97=29?= Date: Tue, 5 Sep 2017 20:19:12 +0800 Subject: [PATCH] feat(SVG): add some common attributes for SVG --- src/React/DOM/Props.purs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/React/DOM/Props.purs b/src/React/DOM/Props.purs index e6e1e0c..82408f1 100644 --- a/src/React/DOM/Props.purs +++ b/src/React/DOM/Props.purs @@ -627,3 +627,36 @@ x = unsafeMkProps "x" y :: Int -> Props y = unsafeMkProps "y" + +cx :: Int -> Props +cx = unsafeMkProps "cx" + +cy :: Int -> Props +cy = unsafeMkProps "cy" + +r :: Int -> Props +r = unsafeMkProps "r" + +fill :: String -> Props +fill = unsafeMkProps "fill" + +opacity :: Int -> Props +opacity = unsafeMkProps "opacity" + +fillOpacity :: Int -> Props +fillOpacity = unsafeMkProps "fillOpacity" + +stroke :: String -> Props +stroke = unsafeMkProps "stroke" + +strokeWidth :: Int -> Props +strokeWidth = unsafeMkProps "strokeWidth" + +points :: String -> Props +points = unsafeMkProps "points" + +d :: String -> Props +d = unsafeMkProps "d" + +viewBox :: String -> Props +viewBox = unsafeMkProps "viewBox" \ No newline at end of file