reanimate-svg 0.10.0.0 → 0.10.1.0
raw patch · 2 files changed
+10/−1 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_apWv => Lens' c_apWv [Text]
+ Graphics.SvgTree.Types: attrClass :: HasDrawAttributes c_apWB => Lens' c_apWB [Text]
- Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe String)
+ Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe String)
- Graphics.SvgTree.Types: class HasColorMatrix c_azty
+ Graphics.SvgTree.Types: class HasColorMatrix c_aztE
- Graphics.SvgTree.Types: class HasComposite c_azkh
+ Graphics.SvgTree.Types: class HasComposite c_azkn
- Graphics.SvgTree.Types: class HasDisplacementMap c_azM7
+ Graphics.SvgTree.Types: class HasDisplacementMap c_azMd
- Graphics.SvgTree.Types: class HasDocument c_ayw9
+ Graphics.SvgTree.Types: class HasDocument c_aywf
- Graphics.SvgTree.Types: class HasDrawAttributes c_apWv
+ Graphics.SvgTree.Types: class HasDrawAttributes c_apWB
- Graphics.SvgTree.Types: class HasGaussianBlur c_azyL
+ Graphics.SvgTree.Types: class HasGaussianBlur c_azyR
- Graphics.SvgTree.Types: class HasTextPath c_az8r
+ Graphics.SvgTree.Types: class HasTextPath c_az8x
- Graphics.SvgTree.Types: class HasTurbulence c_azEW
+ Graphics.SvgTree.Types: class HasTurbulence c_azF2
- Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_apWv => Lens' c_apWv (Last FillRule)
+ Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_apWB => Lens' c_apWB (Last FillRule)
- Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_azty => Lens' c_azty ColorMatrix
+ Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_aztE => Lens' c_aztE ColorMatrix
- Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_azty => Lens' c_azty DrawAttributes
+ Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_aztE => Lens' c_aztE DrawAttributes
- Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_azty => Lens' c_azty FilterAttributes
+ Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_aztE => Lens' c_aztE FilterAttributes
- Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_azty => Lens' c_azty (Last FilterSource)
+ Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_aztE => Lens' c_aztE (Last FilterSource)
- Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_azty => Lens' c_azty ColorMatrixType
+ Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_aztE => Lens' c_aztE ColorMatrixType
- Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_azty => Lens' c_azty String
+ Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_aztE => Lens' c_aztE String
- Graphics.SvgTree.Types: composite :: HasComposite c_azkh => Lens' c_azkh Composite
+ Graphics.SvgTree.Types: composite :: HasComposite c_azkn => Lens' c_azkn Composite
- Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_azkh => Lens' c_azkh DrawAttributes
+ Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_azkn => Lens' c_azkn DrawAttributes
- Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_azkh => Lens' c_azkh FilterAttributes
+ Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_azkn => Lens' c_azkn FilterAttributes
- Graphics.SvgTree.Types: compositeIn :: HasComposite c_azkh => Lens' c_azkh (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn :: HasComposite c_azkn => Lens' c_azkn (Last FilterSource)
- Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_azkh => Lens' c_azkh (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_azkn => Lens' c_azkn (Last FilterSource)
- Graphics.SvgTree.Types: compositeK1 :: HasComposite c_azkh => Lens' c_azkh Number
+ Graphics.SvgTree.Types: compositeK1 :: HasComposite c_azkn => Lens' c_azkn Number
- Graphics.SvgTree.Types: compositeK2 :: HasComposite c_azkh => Lens' c_azkh Number
+ Graphics.SvgTree.Types: compositeK2 :: HasComposite c_azkn => Lens' c_azkn Number
- Graphics.SvgTree.Types: compositeK3 :: HasComposite c_azkh => Lens' c_azkh Number
+ Graphics.SvgTree.Types: compositeK3 :: HasComposite c_azkn => Lens' c_azkn Number
- Graphics.SvgTree.Types: compositeK4 :: HasComposite c_azkh => Lens' c_azkh Number
+ Graphics.SvgTree.Types: compositeK4 :: HasComposite c_azkn => Lens' c_azkn Number
- Graphics.SvgTree.Types: compositeOperator :: HasComposite c_azkh => Lens' c_azkh CompositeOperator
+ Graphics.SvgTree.Types: compositeOperator :: HasComposite c_azkn => Lens' c_azkn CompositeOperator
- Graphics.SvgTree.Types: description :: HasDocument c_ayw9 => Lens' c_ayw9 String
+ Graphics.SvgTree.Types: description :: HasDocument c_aywf => Lens' c_aywf String
- Graphics.SvgTree.Types: displacementMap :: HasDisplacementMap c_azM7 => Lens' c_azM7 DisplacementMap
+ Graphics.SvgTree.Types: displacementMap :: HasDisplacementMap c_azMd => Lens' c_azMd DisplacementMap
- Graphics.SvgTree.Types: displacementMapDrawAttributes :: HasDisplacementMap c_azM7 => Lens' c_azM7 DrawAttributes
+ Graphics.SvgTree.Types: displacementMapDrawAttributes :: HasDisplacementMap c_azMd => Lens' c_azMd DrawAttributes
- Graphics.SvgTree.Types: displacementMapFilterAttr :: HasDisplacementMap c_azM7 => Lens' c_azM7 FilterAttributes
+ Graphics.SvgTree.Types: displacementMapFilterAttr :: HasDisplacementMap c_azMd => Lens' c_azMd FilterAttributes
- Graphics.SvgTree.Types: displacementMapIn :: HasDisplacementMap c_azM7 => Lens' c_azM7 (Last FilterSource)
+ Graphics.SvgTree.Types: displacementMapIn :: HasDisplacementMap c_azMd => Lens' c_azMd (Last FilterSource)
- Graphics.SvgTree.Types: displacementMapIn2 :: HasDisplacementMap c_azM7 => Lens' c_azM7 (Last FilterSource)
+ Graphics.SvgTree.Types: displacementMapIn2 :: HasDisplacementMap c_azMd => Lens' c_azMd (Last FilterSource)
- Graphics.SvgTree.Types: displacementMapScale :: HasDisplacementMap c_azM7 => Lens' c_azM7 (Last Double)
+ Graphics.SvgTree.Types: displacementMapScale :: HasDisplacementMap c_azMd => Lens' c_azMd (Last Double)
- Graphics.SvgTree.Types: displacementMapXChannelSelector :: HasDisplacementMap c_azM7 => Lens' c_azM7 ChannelSelector
+ Graphics.SvgTree.Types: displacementMapXChannelSelector :: HasDisplacementMap c_azMd => Lens' c_azMd ChannelSelector
- Graphics.SvgTree.Types: displacementMapYChannelSelector :: HasDisplacementMap c_azM7 => Lens' c_azM7 ChannelSelector
+ Graphics.SvgTree.Types: displacementMapYChannelSelector :: HasDisplacementMap c_azMd => Lens' c_azMd ChannelSelector
- Graphics.SvgTree.Types: document :: HasDocument c_ayw9 => Lens' c_ayw9 Document
+ Graphics.SvgTree.Types: document :: HasDocument c_aywf => Lens' c_aywf Document
- Graphics.SvgTree.Types: documentAspectRatio :: HasDocument c_ayw9 => Lens' c_ayw9 PreserveAspectRatio
+ Graphics.SvgTree.Types: documentAspectRatio :: HasDocument c_aywf => Lens' c_aywf PreserveAspectRatio
- Graphics.SvgTree.Types: documentLocation :: HasDocument c_ayw9 => Lens' c_ayw9 FilePath
+ Graphics.SvgTree.Types: documentLocation :: HasDocument c_aywf => Lens' c_aywf FilePath
- Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_apWv => Lens' c_apWv DrawAttributes
+ Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_apWB => Lens' c_apWB DrawAttributes
- Graphics.SvgTree.Types: elements :: HasDocument c_ayw9 => Lens' c_ayw9 [Tree]
+ Graphics.SvgTree.Types: elements :: HasDocument c_aywf => Lens' c_aywf [Tree]
- Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Texture)
+ Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Texture)
- Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe Float)
+ Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe Float)
- Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_apWv => Lens' c_apWv (Last FillRule)
+ Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_apWB => Lens' c_apWB (Last FillRule)
- Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_apWv => Lens' c_apWv (Last [String])
+ Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_apWB => Lens' c_apWB (Last [String])
- Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Number)
+ Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Number)
- Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_apWv => Lens' c_apWv (Last FontStyle)
+ Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_apWB => Lens' c_apWB (Last FontStyle)
- Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_azyL => Lens' c_azyL GaussianBlur
+ Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_azyR => Lens' c_azyR GaussianBlur
- Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_azyL => Lens' c_azyL DrawAttributes
+ Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_azyR => Lens' c_azyR DrawAttributes
- Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_azyL => Lens' c_azyL EdgeMode
+ Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_azyR => Lens' c_azyR EdgeMode
- Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_azyL => Lens' c_azyL FilterAttributes
+ Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_azyR => Lens' c_azyR FilterAttributes
- Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_azyL => Lens' c_azyL (Last FilterSource)
+ Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_azyR => Lens' c_azyR (Last FilterSource)
- Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_azyL => Lens' c_azyL Number
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_azyR => Lens' c_azyR Number
- Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_azyL => Lens' c_azyL (Last Number)
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_azyR => Lens' c_azyR (Last Number)
- Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe Float)
+ Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe Float)
- Graphics.SvgTree.Types: height :: HasDocument c_ayw9 => Lens' c_ayw9 (Maybe Number)
+ Graphics.SvgTree.Types: height :: HasDocument c_aywf => Lens' c_aywf (Maybe Number)
- Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_apWv => Lens' c_apWv (Last ElementRef)
+ Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_apWB => Lens' c_apWB (Last ElementRef)
- Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe String)
+ Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe String)
- Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Texture)
+ Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Texture)
- Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_apWv => Lens' c_apWv (Last [Number])
+ Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_apWB => Lens' c_apWB (Last [Number])
- Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Cap)
+ Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Cap)
- Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_apWv => Lens' c_apWv (Last LineJoin)
+ Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_apWB => Lens' c_apWB (Last LineJoin)
- Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Double)
+ Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Double)
- Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Number)
+ Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Number)
- Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe Float)
+ Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe Float)
- Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_apWv => Lens' c_apWv (Last Number)
+ Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_apWB => Lens' c_apWB (Last Number)
- Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_apWv => Lens' c_apWv (Last TextAnchor)
+ Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_apWB => Lens' c_apWB (Last TextAnchor)
- Graphics.SvgTree.Types: textPath :: HasTextPath c_az8r => Lens' c_az8r TextPath
+ Graphics.SvgTree.Types: textPath :: HasTextPath c_az8x => Lens' c_az8x TextPath
- Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_az8r => Lens' c_az8r TextPathMethod
+ Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_az8x => Lens' c_az8x TextPathMethod
- Graphics.SvgTree.Types: textPathName :: HasTextPath c_az8r => Lens' c_az8r String
+ Graphics.SvgTree.Types: textPathName :: HasTextPath c_az8x => Lens' c_az8x String
- Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_az8r => Lens' c_az8r TextPathSpacing
+ Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_az8x => Lens' c_az8x TextPathSpacing
- Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_az8r => Lens' c_az8r Number
+ Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_az8x => Lens' c_az8x Number
- Graphics.SvgTree.Types: transform :: HasDrawAttributes c_apWv => Lens' c_apWv (Maybe [Transformation])
+ Graphics.SvgTree.Types: transform :: HasDrawAttributes c_apWB => Lens' c_apWB (Maybe [Transformation])
- Graphics.SvgTree.Types: turbulence :: HasTurbulence c_azEW => Lens' c_azEW Turbulence
+ Graphics.SvgTree.Types: turbulence :: HasTurbulence c_azF2 => Lens' c_azF2 Turbulence
- Graphics.SvgTree.Types: turbulenceBaseFrequency :: HasTurbulence c_azEW => Lens' c_azEW (Double, Last Double)
+ Graphics.SvgTree.Types: turbulenceBaseFrequency :: HasTurbulence c_azF2 => Lens' c_azF2 (Double, Last Double)
- Graphics.SvgTree.Types: turbulenceDrawAttributes :: HasTurbulence c_azEW => Lens' c_azEW DrawAttributes
+ Graphics.SvgTree.Types: turbulenceDrawAttributes :: HasTurbulence c_azF2 => Lens' c_azF2 DrawAttributes
- Graphics.SvgTree.Types: turbulenceFilterAttr :: HasTurbulence c_azEW => Lens' c_azEW FilterAttributes
+ Graphics.SvgTree.Types: turbulenceFilterAttr :: HasTurbulence c_azF2 => Lens' c_azF2 FilterAttributes
- Graphics.SvgTree.Types: turbulenceNumOctaves :: HasTurbulence c_azEW => Lens' c_azEW Int
+ Graphics.SvgTree.Types: turbulenceNumOctaves :: HasTurbulence c_azF2 => Lens' c_azF2 Int
- Graphics.SvgTree.Types: turbulenceSeed :: HasTurbulence c_azEW => Lens' c_azEW Double
+ Graphics.SvgTree.Types: turbulenceSeed :: HasTurbulence c_azF2 => Lens' c_azF2 Double
- Graphics.SvgTree.Types: turbulenceStitchTiles :: HasTurbulence c_azEW => Lens' c_azEW StitchTiles
+ Graphics.SvgTree.Types: turbulenceStitchTiles :: HasTurbulence c_azF2 => Lens' c_azF2 StitchTiles
- Graphics.SvgTree.Types: turbulenceType :: HasTurbulence c_azEW => Lens' c_azEW TurbulenceType
+ Graphics.SvgTree.Types: turbulenceType :: HasTurbulence c_azF2 => Lens' c_azF2 TurbulenceType
- Graphics.SvgTree.Types: viewBox :: HasDocument c_ayw9 => Lens' c_ayw9 (Maybe (Double, Double, Double, Double))
+ Graphics.SvgTree.Types: viewBox :: HasDocument c_aywf => Lens' c_aywf (Maybe (Double, Double, Double, Double))
- Graphics.SvgTree.Types: width :: HasDocument c_ayw9 => Lens' c_ayw9 (Maybe Number)
+ Graphics.SvgTree.Types: width :: HasDocument c_aywf => Lens' c_aywf (Maybe Number)
Files
- reanimate-svg.cabal +1/−1
- src/Graphics/SvgTree/Misc.hs +9/−0
reanimate-svg.cabal view
@@ -1,5 +1,5 @@ name: reanimate-svg-version: 0.10.0.0+version: 0.10.1.0 synopsis: SVG file loader and serializer description: reanimate-svg provides types representing a SVG document,
src/Graphics/SvgTree/Misc.hs view
@@ -1,16 +1,25 @@+{-# LANGUAGE CPP #-} module Graphics.SvgTree.Misc ( ppD , ppF ) where +#ifdef ASTERIUS+import Numeric+#else import Data.Double.Conversion.Text import qualified Data.Text as T+#endif precision :: Int precision = 6 ppD :: Double -> String+#ifdef ASTERIUS+ppD v = showFFloat (Just precision) v ""+#else ppD = T.unpack . T.dropWhileEnd (== '.') . T.dropWhileEnd (== '0') . toFixed precision+#endif ppF :: Float -> String ppF = ppD . realToFrac