reanimate-svg 0.9.0.0 → 0.9.0.1
raw patch · 2 files changed
+10/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Graphics.SvgTree.Types: attrClass :: HasDrawAttributes c_apcL => Lens' c_apcL [Text]
+ Graphics.SvgTree.Types: attrClass :: HasDrawAttributes c_aplY => Lens' c_aplY [Text]
- Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe String)
+ Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe String)
- Graphics.SvgTree.Types: class HasColorMatrix c_aymy
+ Graphics.SvgTree.Types: class HasColorMatrix c_aypL
- Graphics.SvgTree.Types: class HasComposite c_aydh
+ Graphics.SvgTree.Types: class HasComposite c_aygu
- Graphics.SvgTree.Types: class HasDocument c_axjl
+ Graphics.SvgTree.Types: class HasDocument c_axsw
- Graphics.SvgTree.Types: class HasDrawAttributes c_apcL
+ Graphics.SvgTree.Types: class HasDrawAttributes c_aplY
- Graphics.SvgTree.Types: class HasGaussianBlur c_ayrL
+ Graphics.SvgTree.Types: class HasGaussianBlur c_ayuY
- Graphics.SvgTree.Types: class HasTextPath c_ay1r
+ Graphics.SvgTree.Types: class HasTextPath c_ay4E
- Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_apcL => Lens' c_apcL (Last FillRule)
+ Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_aplY => Lens' c_aplY (Last FillRule)
- Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_aymy => Lens' c_aymy ColorMatrix
+ Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_aypL => Lens' c_aypL ColorMatrix
- Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_aymy => Lens' c_aymy DrawAttributes
+ Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_aypL => Lens' c_aypL DrawAttributes
- Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_aymy => Lens' c_aymy FilterAttributes
+ Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_aypL => Lens' c_aypL FilterAttributes
- Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_aymy => Lens' c_aymy (Last FilterSource)
+ Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_aypL => Lens' c_aypL (Last FilterSource)
- Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_aymy => Lens' c_aymy ColorMatrixType
+ Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_aypL => Lens' c_aypL ColorMatrixType
- Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_aymy => Lens' c_aymy String
+ Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_aypL => Lens' c_aypL String
- Graphics.SvgTree.Types: composite :: HasComposite c_aydh => Lens' c_aydh Composite
+ Graphics.SvgTree.Types: composite :: HasComposite c_aygu => Lens' c_aygu Composite
- Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_aydh => Lens' c_aydh DrawAttributes
+ Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_aygu => Lens' c_aygu DrawAttributes
- Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_aydh => Lens' c_aydh FilterAttributes
+ Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_aygu => Lens' c_aygu FilterAttributes
- Graphics.SvgTree.Types: compositeIn :: HasComposite c_aydh => Lens' c_aydh (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn :: HasComposite c_aygu => Lens' c_aygu (Last FilterSource)
- Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_aydh => Lens' c_aydh (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_aygu => Lens' c_aygu (Last FilterSource)
- Graphics.SvgTree.Types: compositeK1 :: HasComposite c_aydh => Lens' c_aydh Number
+ Graphics.SvgTree.Types: compositeK1 :: HasComposite c_aygu => Lens' c_aygu Number
- Graphics.SvgTree.Types: compositeK2 :: HasComposite c_aydh => Lens' c_aydh Number
+ Graphics.SvgTree.Types: compositeK2 :: HasComposite c_aygu => Lens' c_aygu Number
- Graphics.SvgTree.Types: compositeK3 :: HasComposite c_aydh => Lens' c_aydh Number
+ Graphics.SvgTree.Types: compositeK3 :: HasComposite c_aygu => Lens' c_aygu Number
- Graphics.SvgTree.Types: compositeK4 :: HasComposite c_aydh => Lens' c_aydh Number
+ Graphics.SvgTree.Types: compositeK4 :: HasComposite c_aygu => Lens' c_aygu Number
- Graphics.SvgTree.Types: compositeOperator :: HasComposite c_aydh => Lens' c_aydh CompositeOperator
+ Graphics.SvgTree.Types: compositeOperator :: HasComposite c_aygu => Lens' c_aygu CompositeOperator
- Graphics.SvgTree.Types: definitions :: HasDocument c_axjl => Lens' c_axjl (Map String Tree)
+ Graphics.SvgTree.Types: definitions :: HasDocument c_axsw => Lens' c_axsw (Map String Tree)
- Graphics.SvgTree.Types: description :: HasDocument c_axjl => Lens' c_axjl String
+ Graphics.SvgTree.Types: description :: HasDocument c_axsw => Lens' c_axsw String
- Graphics.SvgTree.Types: document :: HasDocument c_axjl => Lens' c_axjl Document
+ Graphics.SvgTree.Types: document :: HasDocument c_axsw => Lens' c_axsw Document
- Graphics.SvgTree.Types: documentLocation :: HasDocument c_axjl => Lens' c_axjl FilePath
+ Graphics.SvgTree.Types: documentLocation :: HasDocument c_axsw => Lens' c_axsw FilePath
- Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_apcL => Lens' c_apcL DrawAttributes
+ Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_aplY => Lens' c_aplY DrawAttributes
- Graphics.SvgTree.Types: elements :: HasDocument c_axjl => Lens' c_axjl [Tree]
+ Graphics.SvgTree.Types: elements :: HasDocument c_axsw => Lens' c_axsw [Tree]
- Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Texture)
+ Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Texture)
- Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe Float)
+ Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe Float)
- Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_apcL => Lens' c_apcL (Last FillRule)
+ Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_aplY => Lens' c_aplY (Last FillRule)
- Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_apcL => Lens' c_apcL (Last [String])
+ Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_aplY => Lens' c_aplY (Last [String])
- Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Number)
+ Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Number)
- Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_apcL => Lens' c_apcL (Last FontStyle)
+ Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_aplY => Lens' c_aplY (Last FontStyle)
- Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_ayrL => Lens' c_ayrL GaussianBlur
+ Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_ayuY => Lens' c_ayuY GaussianBlur
- Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_ayrL => Lens' c_ayrL DrawAttributes
+ Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_ayuY => Lens' c_ayuY DrawAttributes
- Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_ayrL => Lens' c_ayrL EdgeMode
+ Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_ayuY => Lens' c_ayuY EdgeMode
- Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_ayrL => Lens' c_ayrL FilterAttributes
+ Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_ayuY => Lens' c_ayuY FilterAttributes
- Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_ayrL => Lens' c_ayrL (Last FilterSource)
+ Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_ayuY => Lens' c_ayuY (Last FilterSource)
- Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_ayrL => Lens' c_ayrL Number
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_ayuY => Lens' c_ayuY Number
- Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_ayrL => Lens' c_ayrL (Last Number)
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_ayuY => Lens' c_ayuY (Last Number)
- Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe Float)
+ Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe Float)
- Graphics.SvgTree.Types: height :: HasDocument c_axjl => Lens' c_axjl (Maybe Number)
+ Graphics.SvgTree.Types: height :: HasDocument c_axsw => Lens' c_axsw (Maybe Number)
- Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_apcL => Lens' c_apcL (Last ElementRef)
+ Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_aplY => Lens' c_aplY (Last ElementRef)
- Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe String)
+ Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe String)
- Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Texture)
+ Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Texture)
- Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_apcL => Lens' c_apcL (Last [Number])
+ Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_aplY => Lens' c_aplY (Last [Number])
- Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Cap)
+ Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Cap)
- Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_apcL => Lens' c_apcL (Last LineJoin)
+ Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_aplY => Lens' c_aplY (Last LineJoin)
- Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Double)
+ Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Double)
- Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Number)
+ Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Number)
- Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe Float)
+ Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe Float)
- Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_apcL => Lens' c_apcL (Last Number)
+ Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_aplY => Lens' c_aplY (Last Number)
- Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_apcL => Lens' c_apcL (Last TextAnchor)
+ Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_aplY => Lens' c_aplY (Last TextAnchor)
- Graphics.SvgTree.Types: textPath :: HasTextPath c_ay1r => Lens' c_ay1r TextPath
+ Graphics.SvgTree.Types: textPath :: HasTextPath c_ay4E => Lens' c_ay4E TextPath
- Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_ay1r => Lens' c_ay1r TextPathMethod
+ Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_ay4E => Lens' c_ay4E TextPathMethod
- Graphics.SvgTree.Types: textPathName :: HasTextPath c_ay1r => Lens' c_ay1r String
+ Graphics.SvgTree.Types: textPathName :: HasTextPath c_ay4E => Lens' c_ay4E String
- Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_ay1r => Lens' c_ay1r TextPathSpacing
+ Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_ay4E => Lens' c_ay4E TextPathSpacing
- Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_ay1r => Lens' c_ay1r Number
+ Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_ay4E => Lens' c_ay4E Number
- Graphics.SvgTree.Types: transform :: HasDrawAttributes c_apcL => Lens' c_apcL (Maybe [Transformation])
+ Graphics.SvgTree.Types: transform :: HasDrawAttributes c_aplY => Lens' c_aplY (Maybe [Transformation])
- Graphics.SvgTree.Types: viewBox :: HasDocument c_axjl => Lens' c_axjl (Maybe (Double, Double, Double, Double))
+ Graphics.SvgTree.Types: viewBox :: HasDocument c_axsw => Lens' c_axsw (Maybe (Double, Double, Double, Double))
- Graphics.SvgTree.Types: width :: HasDocument c_axjl => Lens' c_axjl (Maybe Number)
+ Graphics.SvgTree.Types: width :: HasDocument c_axsw => Lens' c_axsw (Maybe Number)
Files
reanimate-svg.cabal view
@@ -1,5 +1,5 @@ name: reanimate-svg-version: 0.9.0.0+version: 0.9.0.1 synopsis: SVG file loader and serializer description: reanimate-svg provides types representing a SVG document,
src/Graphics/SvgTree/Printer.hs view
@@ -6,9 +6,11 @@ import Control.Lens import Data.Char import Data.List-import Graphics.SvgTree.Types (DrawAttributes, Tree (..),- groupChildren,- preRendered, Document(..))+import Graphics.SvgTree.Types (Document (..), DrawAttributes,+ Tree (..), groupChildren,+ patternElements, markerElements,+ maskContent, clipPathContent,+ preRendered) import Graphics.SvgTree.XmlParser import Text.XML.Light @@ -32,6 +34,10 @@ treeChildren (GroupTree g) = g^.groupChildren treeChildren (SymbolTree g) = g^.groupChildren treeChildren (DefinitionTree g) = g^.groupChildren+treeChildren (ClipPathTree c) = c^.clipPathContent+treeChildren (PatternTree p) = p^.patternElements+treeChildren (MarkerTree m) = m^.markerElements+treeChildren (MaskTree m) = m^.maskContent treeChildren _ = [] ppElementS_ :: [Tree] -> Element -> ShowS