reanimate-svg 0.9.3.0 → 0.9.3.1
raw patch · 2 files changed
+2/−8 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_apER => Lens' c_apER [Text]
+ Graphics.SvgTree.Types: attrClass :: HasDrawAttributes c_apFd => Lens' c_apFd [Text]
- Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_apER => Lens' c_apER (Maybe String)
+ Graphics.SvgTree.Types: attrId :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe String)
- Graphics.SvgTree.Types: class HasColorMatrix c_ayKd
+ Graphics.SvgTree.Types: class HasColorMatrix c_ayKz
- Graphics.SvgTree.Types: class HasComposite c_ayAW
+ Graphics.SvgTree.Types: class HasComposite c_ayBi
- Graphics.SvgTree.Types: class HasDocument c_axLW
+ Graphics.SvgTree.Types: class HasDocument c_axMi
- Graphics.SvgTree.Types: class HasDrawAttributes c_apER
+ Graphics.SvgTree.Types: class HasDrawAttributes c_apFd
- Graphics.SvgTree.Types: class HasGaussianBlur c_ayPq
+ Graphics.SvgTree.Types: class HasGaussianBlur c_ayPM
- Graphics.SvgTree.Types: class HasTextPath c_ayp6
+ Graphics.SvgTree.Types: class HasTextPath c_ayps
- Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: clipPathRef :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_apER => Lens' c_apER (Last FillRule)
+ Graphics.SvgTree.Types: clipRule :: HasDrawAttributes c_apFd => Lens' c_apFd (Last FillRule)
- Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_ayKd => Lens' c_ayKd ColorMatrix
+ Graphics.SvgTree.Types: colorMatrix :: HasColorMatrix c_ayKz => Lens' c_ayKz ColorMatrix
- Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_ayKd => Lens' c_ayKd DrawAttributes
+ Graphics.SvgTree.Types: colorMatrixDrawAttributes :: HasColorMatrix c_ayKz => Lens' c_ayKz DrawAttributes
- Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_ayKd => Lens' c_ayKd FilterAttributes
+ Graphics.SvgTree.Types: colorMatrixFilterAttr :: HasColorMatrix c_ayKz => Lens' c_ayKz FilterAttributes
- Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_ayKd => Lens' c_ayKd (Last FilterSource)
+ Graphics.SvgTree.Types: colorMatrixIn :: HasColorMatrix c_ayKz => Lens' c_ayKz (Last FilterSource)
- Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_ayKd => Lens' c_ayKd ColorMatrixType
+ Graphics.SvgTree.Types: colorMatrixType :: HasColorMatrix c_ayKz => Lens' c_ayKz ColorMatrixType
- Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_ayKd => Lens' c_ayKd String
+ Graphics.SvgTree.Types: colorMatrixValues :: HasColorMatrix c_ayKz => Lens' c_ayKz String
- Graphics.SvgTree.Types: composite :: HasComposite c_ayAW => Lens' c_ayAW Composite
+ Graphics.SvgTree.Types: composite :: HasComposite c_ayBi => Lens' c_ayBi Composite
- Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_ayAW => Lens' c_ayAW DrawAttributes
+ Graphics.SvgTree.Types: compositeDrawAttributes :: HasComposite c_ayBi => Lens' c_ayBi DrawAttributes
- Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_ayAW => Lens' c_ayAW FilterAttributes
+ Graphics.SvgTree.Types: compositeFilterAttr :: HasComposite c_ayBi => Lens' c_ayBi FilterAttributes
- Graphics.SvgTree.Types: compositeIn :: HasComposite c_ayAW => Lens' c_ayAW (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn :: HasComposite c_ayBi => Lens' c_ayBi (Last FilterSource)
- Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_ayAW => Lens' c_ayAW (Last FilterSource)
+ Graphics.SvgTree.Types: compositeIn2 :: HasComposite c_ayBi => Lens' c_ayBi (Last FilterSource)
- Graphics.SvgTree.Types: compositeK1 :: HasComposite c_ayAW => Lens' c_ayAW Number
+ Graphics.SvgTree.Types: compositeK1 :: HasComposite c_ayBi => Lens' c_ayBi Number
- Graphics.SvgTree.Types: compositeK2 :: HasComposite c_ayAW => Lens' c_ayAW Number
+ Graphics.SvgTree.Types: compositeK2 :: HasComposite c_ayBi => Lens' c_ayBi Number
- Graphics.SvgTree.Types: compositeK3 :: HasComposite c_ayAW => Lens' c_ayAW Number
+ Graphics.SvgTree.Types: compositeK3 :: HasComposite c_ayBi => Lens' c_ayBi Number
- Graphics.SvgTree.Types: compositeK4 :: HasComposite c_ayAW => Lens' c_ayAW Number
+ Graphics.SvgTree.Types: compositeK4 :: HasComposite c_ayBi => Lens' c_ayBi Number
- Graphics.SvgTree.Types: compositeOperator :: HasComposite c_ayAW => Lens' c_ayAW CompositeOperator
+ Graphics.SvgTree.Types: compositeOperator :: HasComposite c_ayBi => Lens' c_ayBi CompositeOperator
- Graphics.SvgTree.Types: definitions :: HasDocument c_axLW => Lens' c_axLW (Map String Tree)
+ Graphics.SvgTree.Types: definitions :: HasDocument c_axMi => Lens' c_axMi (Map String Tree)
- Graphics.SvgTree.Types: description :: HasDocument c_axLW => Lens' c_axLW String
+ Graphics.SvgTree.Types: description :: HasDocument c_axMi => Lens' c_axMi String
- Graphics.SvgTree.Types: document :: HasDocument c_axLW => Lens' c_axLW Document
+ Graphics.SvgTree.Types: document :: HasDocument c_axMi => Lens' c_axMi Document
- Graphics.SvgTree.Types: documentAspectRatio :: HasDocument c_axLW => Lens' c_axLW PreserveAspectRatio
+ Graphics.SvgTree.Types: documentAspectRatio :: HasDocument c_axMi => Lens' c_axMi PreserveAspectRatio
- Graphics.SvgTree.Types: documentLocation :: HasDocument c_axLW => Lens' c_axLW FilePath
+ Graphics.SvgTree.Types: documentLocation :: HasDocument c_axMi => Lens' c_axMi FilePath
- Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_apER => Lens' c_apER DrawAttributes
+ Graphics.SvgTree.Types: drawAttributes :: HasDrawAttributes c_apFd => Lens' c_apFd DrawAttributes
- Graphics.SvgTree.Types: elements :: HasDocument c_axLW => Lens' c_axLW [Tree]
+ Graphics.SvgTree.Types: elements :: HasDocument c_axMi => Lens' c_axMi [Tree]
- Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_apER => Lens' c_apER (Last Texture)
+ Graphics.SvgTree.Types: fillColor :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Texture)
- Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_apER => Lens' c_apER (Maybe Float)
+ Graphics.SvgTree.Types: fillOpacity :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe Float)
- Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_apER => Lens' c_apER (Last FillRule)
+ Graphics.SvgTree.Types: fillRule :: HasDrawAttributes c_apFd => Lens' c_apFd (Last FillRule)
- Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: filterRef :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_apER => Lens' c_apER (Last [String])
+ Graphics.SvgTree.Types: fontFamily :: HasDrawAttributes c_apFd => Lens' c_apFd (Last [String])
- Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_apER => Lens' c_apER (Last Number)
+ Graphics.SvgTree.Types: fontSize :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Number)
- Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_apER => Lens' c_apER (Last FontStyle)
+ Graphics.SvgTree.Types: fontStyle :: HasDrawAttributes c_apFd => Lens' c_apFd (Last FontStyle)
- Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_ayPq => Lens' c_ayPq GaussianBlur
+ Graphics.SvgTree.Types: gaussianBlur :: HasGaussianBlur c_ayPM => Lens' c_ayPM GaussianBlur
- Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_ayPq => Lens' c_ayPq DrawAttributes
+ Graphics.SvgTree.Types: gaussianBlurDrawAttributes :: HasGaussianBlur c_ayPM => Lens' c_ayPM DrawAttributes
- Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_ayPq => Lens' c_ayPq EdgeMode
+ Graphics.SvgTree.Types: gaussianBlurEdgeMode :: HasGaussianBlur c_ayPM => Lens' c_ayPM EdgeMode
- Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_ayPq => Lens' c_ayPq FilterAttributes
+ Graphics.SvgTree.Types: gaussianBlurFilterAttr :: HasGaussianBlur c_ayPM => Lens' c_ayPM FilterAttributes
- Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_ayPq => Lens' c_ayPq (Last FilterSource)
+ Graphics.SvgTree.Types: gaussianBlurIn :: HasGaussianBlur c_ayPM => Lens' c_ayPM (Last FilterSource)
- Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_ayPq => Lens' c_ayPq Number
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationX :: HasGaussianBlur c_ayPM => Lens' c_ayPM Number
- Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_ayPq => Lens' c_ayPq (Last Number)
+ Graphics.SvgTree.Types: gaussianBlurStdDeviationY :: HasGaussianBlur c_ayPM => Lens' c_ayPM (Last Number)
- Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_apER => Lens' c_apER (Maybe Float)
+ Graphics.SvgTree.Types: groupOpacity :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe Float)
- Graphics.SvgTree.Types: height :: HasDocument c_axLW => Lens' c_axLW (Maybe Number)
+ Graphics.SvgTree.Types: height :: HasDocument c_axMi => Lens' c_axMi (Maybe Number)
- Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: markerEnd :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: markerMid :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: markerStart :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_apER => Lens' c_apER (Last ElementRef)
+ Graphics.SvgTree.Types: maskRef :: HasDrawAttributes c_apFd => Lens' c_apFd (Last ElementRef)
- Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_apER => Lens' c_apER (Maybe String)
+ Graphics.SvgTree.Types: preRendered :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe String)
- Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_apER => Lens' c_apER (Last Texture)
+ Graphics.SvgTree.Types: strokeColor :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Texture)
- Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_apER => Lens' c_apER (Last [Number])
+ Graphics.SvgTree.Types: strokeDashArray :: HasDrawAttributes c_apFd => Lens' c_apFd (Last [Number])
- Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_apER => Lens' c_apER (Last Cap)
+ Graphics.SvgTree.Types: strokeLineCap :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Cap)
- Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_apER => Lens' c_apER (Last LineJoin)
+ Graphics.SvgTree.Types: strokeLineJoin :: HasDrawAttributes c_apFd => Lens' c_apFd (Last LineJoin)
- Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_apER => Lens' c_apER (Last Double)
+ Graphics.SvgTree.Types: strokeMiterLimit :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Double)
- Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_apER => Lens' c_apER (Last Number)
+ Graphics.SvgTree.Types: strokeOffset :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Number)
- Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_apER => Lens' c_apER (Maybe Float)
+ Graphics.SvgTree.Types: strokeOpacity :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe Float)
- Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_apER => Lens' c_apER (Last Number)
+ Graphics.SvgTree.Types: strokeWidth :: HasDrawAttributes c_apFd => Lens' c_apFd (Last Number)
- Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_apER => Lens' c_apER (Last TextAnchor)
+ Graphics.SvgTree.Types: textAnchor :: HasDrawAttributes c_apFd => Lens' c_apFd (Last TextAnchor)
- Graphics.SvgTree.Types: textPath :: HasTextPath c_ayp6 => Lens' c_ayp6 TextPath
+ Graphics.SvgTree.Types: textPath :: HasTextPath c_ayps => Lens' c_ayps TextPath
- Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_ayp6 => Lens' c_ayp6 TextPathMethod
+ Graphics.SvgTree.Types: textPathMethod :: HasTextPath c_ayps => Lens' c_ayps TextPathMethod
- Graphics.SvgTree.Types: textPathName :: HasTextPath c_ayp6 => Lens' c_ayp6 String
+ Graphics.SvgTree.Types: textPathName :: HasTextPath c_ayps => Lens' c_ayps String
- Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_ayp6 => Lens' c_ayp6 TextPathSpacing
+ Graphics.SvgTree.Types: textPathSpacing :: HasTextPath c_ayps => Lens' c_ayps TextPathSpacing
- Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_ayp6 => Lens' c_ayp6 Number
+ Graphics.SvgTree.Types: textPathStartOffset :: HasTextPath c_ayps => Lens' c_ayps Number
- Graphics.SvgTree.Types: transform :: HasDrawAttributes c_apER => Lens' c_apER (Maybe [Transformation])
+ Graphics.SvgTree.Types: transform :: HasDrawAttributes c_apFd => Lens' c_apFd (Maybe [Transformation])
- Graphics.SvgTree.Types: viewBox :: HasDocument c_axLW => Lens' c_axLW (Maybe (Double, Double, Double, Double))
+ Graphics.SvgTree.Types: viewBox :: HasDocument c_axMi => Lens' c_axMi (Maybe (Double, Double, Double, Double))
- Graphics.SvgTree.Types: width :: HasDocument c_axLW => Lens' c_axLW (Maybe Number)
+ Graphics.SvgTree.Types: width :: HasDocument c_axMi => Lens' c_axMi (Maybe Number)
Files
reanimate-svg.cabal view
@@ -1,5 +1,5 @@ name: reanimate-svg-version: 0.9.3.0+version: 0.9.3.1 synopsis: SVG file loader and serializer description: reanimate-svg provides types representing a SVG document,
src/Graphics/SvgTree/PathParser.hs view
@@ -156,13 +156,7 @@ EndPath -> showChar 'Z' where serializeArg (a, b, c, d, e, V2 x y) =- -- ppD a . showChar ' ' .- -- ppD b . showChar ' ' .- -- ppD c . showChar ' ' .- -- shows (fromEnum d) . showChar ' ' .- -- shows (fromEnum e) . showChar ' ' .- -- ppD x . showChar ',' .- -- ppd y+ showString $ printf "%s %s %s %d %d %s,%s" (ppD a) (ppD b) (ppD c) (fromEnum d) (fromEnum e) (ppD x) (ppD y) serializeArgs = unwordsS . fmap serializeArg