packages feed

blaze-svg 0.1.0.0 → 0.1.1

raw patch · 3 files changed

+65/−2 lines, 3 filesdep ~blaze-htmlPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: blaze-html

API changes (from Hackage documentation)

+ Text.Blaze.Svg: matrix :: Show a => a -> a -> a -> a -> a -> a -> AttributeValue
+ Text.Blaze.Svg: rotate :: Show a => a -> AttributeValue
+ Text.Blaze.Svg: scale :: Show a => a -> a -> AttributeValue
+ Text.Blaze.Svg: skewX, skewY :: Show a => a -> AttributeValue
+ Text.Blaze.Svg: translate :: Show a => a -> a -> AttributeValue
+ Text.Blaze.Svg.Internal: matrix :: Show a => a -> a -> a -> a -> a -> a -> AttributeValue
+ Text.Blaze.Svg.Internal: rotate :: Show a => a -> AttributeValue
+ Text.Blaze.Svg.Internal: rotateAround :: Show a => a -> a -> a -> AttributeValue
+ Text.Blaze.Svg.Internal: scale :: Show a => a -> a -> AttributeValue
+ Text.Blaze.Svg.Internal: skewX, skewY :: Show a => a -> AttributeValue
+ Text.Blaze.Svg.Internal: translate :: Show a => a -> a -> AttributeValue

Files

Text/Blaze/Svg.hs view
@@ -9,6 +9,9 @@     , l, lr, h, hr, v, vr     , c, cr, s, sr     , q, qr, t, tr+    , translate, rotate, scale+    , skewX, skewY+    , matrix     ) where  import Text.Blaze.Svg.Internal
Text/Blaze/Svg/Internal.hs view
@@ -186,4 +186,64 @@   , " "   ] +-- | Specifies a translation by @x@ and @y@+translate :: Show a => a -> a -> AttributeValue+translate x y = toValue . join $+  [ "translate("+  , show x, " ", show y+  , ")"+  ] +-- | Specifies a scale operation by @x@ and @y@+scale :: Show a => a -> a -> AttributeValue+scale x y = toValue . join $+  [ "scale("+  , show x, " ", show y+  , ")"+  ]++-- | Specifies a rotation by @rotate-angle@ degrees+rotate :: Show a => a -> AttributeValue+rotate rotateAngle = toValue . join $+  [ "rotate("+  , show rotateAngle+  , ")"+  ]++-- | Specifies a rotation by @rotate-angle@ degrees about the given time @rx,ry@+rotateAround :: Show a => a -> a -> a -> AttributeValue+rotateAround rotateAngle rx ry = toValue . join $+  [ "rotate("+  , show rotateAngle, ","+  , show rx, ",", show ry+  , ")"+  ]++skewX, skewY :: Show a => a -> AttributeValue++-- | Skew tansformation along x-axis+skewX skewAngle = toValue . join $+  [ "skewX("+  , show skewAngle+  , ")"+  ]++-- | Skew tansformation along y-axis+skewY skewAngle = toValue . join $+  [ "skewY("+  , show skewAngle+  , ")"+  ]++-- | Specifies a transform in the form of a transformation matrix+matrix :: Show a => a -> a -> a -> a -> a -> a -> AttributeValue+matrix a b c_ d e f =  toValue . join $+  [  "matrix("+  ,  show a, ","+  ,  show b, ","+  ,  show c_, ","+  ,  show d, ","+  ,  show e, ","+  ,  show f+  , ")"+  ]
blaze-svg.cabal view
@@ -1,5 +1,5 @@ name:                blaze-svg-version:             0.1.0.0+version:             0.1.1 synopsis:            SVG combinator library description:         SVG combinator library homepage:            https://github.com/deepakjois/blaze-svg@@ -27,7 +27,7 @@   Build-depends:     base          >= 4  && < 5,     mtl           >= 2  && < 3,-    blaze-html    >= 0.4 && < 0.5,+    blaze-html    >= 0.4.3.2 && < 0.5,     bytestring    >= 0.9  Source-repository head