reanimate-svg-0.13.0.0: SVG file loader and serializer

Safe HaskellNone
LanguageHaskell2010

Graphics.SvgTree.Types

Contents

Description

This module define all the types used in the definition of a svg scene.

Most of the types are lensified.

Synopsis

Basic building types

type Coord = Double Source #

Basic coordinate type.

data Origin Source #

Tell if a path command is absolute (in the current user coordiante) or relative to the previous poitn.

Constructors

OriginAbsolute

Next point in absolute coordinate

OriginRelative

Next point relative to the previous

Instances
Eq Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Methods

(==) :: Origin -> Origin -> Bool #

(/=) :: Origin -> Origin -> Bool #

Show Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Generic Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep Origin :: Type -> Type #

Methods

from :: Origin -> Rep Origin x #

to :: Rep Origin x -> Origin #

Hashable Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Origin -> Int #

hash :: Origin -> Int #

type Rep Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep Origin = D1 (MetaData "Origin" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "OriginAbsolute" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "OriginRelative" PrefixI False) (U1 :: Type -> Type))

type Point = (Number, Number) Source #

Possibly context dependant point.

type RPoint = V2 Coord Source #

Real Point, fully determined and not dependant of the rendering context.

data PathCommand Source #

Path command definition.

Constructors

MoveTo !Origin ![RPoint]

M or m command

LineTo !Origin ![RPoint]

Line to, L or l Svg path command.

HorizontalTo !Origin ![Coord]

Equivalent to the H or h svg path command.

VerticalTo !Origin ![Coord]

Equivalent to the V or v svg path command.

CurveTo !Origin ![(RPoint, RPoint, RPoint)]

Cubic bezier, C or c command

SmoothCurveTo !Origin ![(RPoint, RPoint)]

Smooth cubic bezier, equivalent to S or s command

QuadraticBezier !Origin ![(RPoint, RPoint)]

Quadratic bezier, Q or q command

SmoothQuadraticBezierCurveTo !Origin ![RPoint]

Quadratic bezier, T or t command

EllipticalArc !Origin ![(Coord, Coord, Coord, Bool, Bool, RPoint)]

Eliptical arc, A or a command.

EndPath

Close the path, Z or z svg path command.

Instances
Eq PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep PathCommand :: Type -> Type #

Hashable PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

type Rep PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep PathCommand = D1 (MetaData "PathCommand" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (((C1 (MetaCons "MoveTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [RPoint])) :+: C1 (MetaCons "LineTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [RPoint]))) :+: (C1 (MetaCons "HorizontalTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Coord])) :+: (C1 (MetaCons "VerticalTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Coord])) :+: C1 (MetaCons "CurveTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [(RPoint, RPoint, RPoint)]))))) :+: ((C1 (MetaCons "SmoothCurveTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [(RPoint, RPoint)])) :+: C1 (MetaCons "QuadraticBezier" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [(RPoint, RPoint)]))) :+: (C1 (MetaCons "SmoothQuadraticBezierCurveTo" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [RPoint])) :+: (C1 (MetaCons "EllipticalArc" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Origin) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [(Coord, Coord, Coord, Bool, Bool, RPoint)])) :+: C1 (MetaCons "EndPath" PrefixI False) (U1 :: Type -> Type)))))

data Transformation Source #

Describe the content of the transformation attribute. see _transform and transform.

Constructors

TransformMatrix !Coord !Coord !Coord !Coord !Coord !Coord

Directly encode the translation matrix.

Translate !Double !Double

Translation along a vector

Scale !Double !(Maybe Double)

Scaling on both axis or on X axis and Y axis.

Rotate !Double !(Maybe (Double, Double))

Rotation around `(0, 0)` or around an optional point.

SkewX !Double

Skew transformation along the X axis.

SkewY !Double

Skew transformation along the Y axis.

TransformUnknown

Unkown transformation, like identity.

Instances
Eq Transformation Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show Transformation Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic Transformation Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep Transformation :: Type -> Type #

Hashable Transformation Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

type Rep Transformation Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep Transformation = D1 (MetaData "Transformation" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) ((C1 (MetaCons "TransformMatrix" PrefixI False) ((S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord))) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Coord)))) :+: (C1 (MetaCons "Translate" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double)) :+: C1 (MetaCons "Scale" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double))))) :+: ((C1 (MetaCons "Rotate" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Double, Double)))) :+: C1 (MetaCons "SkewX" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double))) :+: (C1 (MetaCons "SkewY" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Double)) :+: C1 (MetaCons "TransformUnknown" PrefixI False) (U1 :: Type -> Type))))

data ElementRef Source #

Correspond to the possible values of the the attributes which are either none or `url(#elem)`

Constructors

RefNone

Value for none

Ref String

Equivalent to `url()` attribute.

Instances
Eq ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep ElementRef :: Type -> Type #

Hashable ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

type Rep ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep ElementRef = D1 (MetaData "ElementRef" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "RefNone" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Ref" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))

data CoordinateUnits Source #

Define the possible values of various *units attributes used in the definition of the gradients and masks.

Constructors

CoordUserSpace

userSpaceOnUse value

CoordBoundingBox

objectBoundingBox value

Instances
Eq CoordinateUnits Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Show CoordinateUnits Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Generic CoordinateUnits Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep CoordinateUnits :: Type -> Type #

Hashable CoordinateUnits Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

type Rep CoordinateUnits Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep CoordinateUnits = D1 (MetaData "CoordinateUnits" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "CoordUserSpace" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CoordBoundingBox" PrefixI False) (U1 :: Type -> Type))

Building helpers

serializeNumber :: Number -> String Source #

Encode the number to string which can be used in a CSS or a svg attributes.

serializeTransformation :: Transformation -> String Source #

Convert the Transformation to a string which can be directly used in a svg attributes.

serializeTransformations :: [Transformation] -> String Source #

Transform a list of transformations to a string for svg transform attributes.

Drawing control types

data Cap Source #

Describe how the line should be terminated when stroking them. Describe the values of the `stroke-linecap` attribute. See _strokeLineCap

Constructors

CapRound

End with a round (round value)

CapButt

Define straight just at the end (butt value)

CapSquare

Straight further of the ends (square value)

Instances
Eq Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Methods

(==) :: Cap -> Cap -> Bool #

(/=) :: Cap -> Cap -> Bool #

Show Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Methods

showsPrec :: Int -> Cap -> ShowS #

show :: Cap -> String #

showList :: [Cap] -> ShowS #

Generic Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep Cap :: Type -> Type #

Methods

from :: Cap -> Rep Cap x #

to :: Rep Cap x -> Cap #

Hashable Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Cap -> Int #

hash :: Cap -> Int #

type Rep Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep Cap = D1 (MetaData "Cap" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "CapRound" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "CapButt" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CapSquare" PrefixI False) (U1 :: Type -> Type)))

data LineJoin Source #

Define the possible values of the `stroke-linejoin` attribute. see _strokeLineJoin

Constructors

JoinMiter

miter value

JoinBevel

bevel value

JoinRound

round value

Instances
Eq LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Show LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Generic LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep LineJoin :: Type -> Type #

Methods

from :: LineJoin -> Rep LineJoin x #

to :: Rep LineJoin x -> LineJoin #

Hashable LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> LineJoin -> Int #

hash :: LineJoin -> Int #

type Rep LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep LineJoin = D1 (MetaData "LineJoin" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "JoinMiter" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "JoinBevel" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "JoinRound" PrefixI False) (U1 :: Type -> Type)))

data Tree Source #

Main type for the scene description, reorient to specific type describing each tag.

Instances
Eq Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

(==) :: Tree -> Tree -> Bool #

(/=) :: Tree -> Tree -> Bool #

Show Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

Generic Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep Tree :: Type -> Type #

Methods

from :: Tree -> Rep Tree x #

to :: Rep Tree x -> Tree #

Hashable Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Tree -> Int #

hash :: Tree -> Int #

CssMatcheable Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

WithDefaultSvg Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

HasDrawAttributes Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

type Rep Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep Tree = D1 (MetaData "Tree" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "CachedTree" PrefixI True) (S1 (MetaSel (Just "_treeBranch") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TreeBranch) :*: S1 (MetaSel (Just "_treeHash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

pattern Tree :: TreeBranch -> Tree Source #

pattern None :: Tree Source #

data TreeBranch Source #

Instances
Eq TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep TreeBranch :: Type -> Type #

Hashable TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

WithDefaultSvg TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

HasDrawAttributes TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

type Rep TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep TreeBranch = D1 (MetaData "TreeBranch" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) ((((C1 (MetaCons "NoNode" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UseNode" PrefixI True) (S1 (MetaSel (Just "useInformation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Use) :*: S1 (MetaSel (Just "useSubTree") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Tree)))) :+: (C1 (MetaCons "GroupNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Group)) :+: (C1 (MetaCons "SymbolNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Group)) :+: C1 (MetaCons "DefinitionNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Group))))) :+: ((C1 (MetaCons "FilterNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Filter)) :+: (C1 (MetaCons "PathNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Path)) :+: C1 (MetaCons "CircleNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Circle)))) :+: (C1 (MetaCons "PolyLineNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PolyLine)) :+: (C1 (MetaCons "PolygonNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Polygon)) :+: C1 (MetaCons "EllipseNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Ellipse)))))) :+: (((C1 (MetaCons "LineNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Line)) :+: (C1 (MetaCons "RectangleNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Rectangle)) :+: C1 (MetaCons "TextNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TextPath)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) :+: (C1 (MetaCons "ImageNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Image)) :+: (C1 (MetaCons "LinearGradientNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LinearGradient)) :+: C1 (MetaCons "RadialGradientNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RadialGradient))))) :+: ((C1 (MetaCons "MeshGradientNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MeshGradient)) :+: (C1 (MetaCons "PatternNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Pattern)) :+: C1 (MetaCons "MarkerNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Marker)))) :+: (C1 (MetaCons "MaskNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Mask)) :+: (C1 (MetaCons "ClipPathNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ClipPath)) :+: C1 (MetaCons "SvgNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Document)))))))

data Number Source #

Encode complex number possibly dependant to the current render size.

Constructors

Num Double

Simple coordinate in current user coordinate.

Px Double

With suffix "px"

Em Double

Number relative to the current font size.

Percent Double

Number relative to the current viewport size.

Pc Double 
Mm Double

Number in millimeters, relative to DPI.

Cm Double

Number in centimeters, relative to DPI.

Point Double

Number in points, relative to DPI.

Inches Double

Number in inches, relative to DPI.

Instances
Eq Number Source # 
Instance details

Defined in Graphics.SvgTree.CssTypes

Methods

(==) :: Number -> Number -> Bool #

(/=) :: Number -> Number -> Bool #

Show Number Source # 
Instance details

Defined in Graphics.SvgTree.CssTypes

Generic Number Source # 
Instance details

Defined in Graphics.SvgTree.CssTypes

Associated Types

type Rep Number :: Type -> Type #

Methods

from :: Number -> Rep Number x #

to :: Rep Number x -> Number #

Hashable Number Source # 
Instance details

Defined in Graphics.SvgTree.CssTypes

Methods

hashWithSalt :: Int -> Number -> Int #

hash :: Number -> Int #

type Rep Number Source # 
Instance details

Defined in Graphics.SvgTree.CssTypes

data Spread Source #

Define the possible values for the spreadMethod values used for the gradient definitions.

Constructors

SpreadRepeat

reapeat value

SpreadPad

pad value

SpreadReflect

`reflect value`

Instances
Eq Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

(==) :: Spread -> Spread -> Bool #

(/=) :: Spread -> Spread -> Bool #

Show Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep Spread :: Type -> Type #

Methods

from :: Spread -> Rep Spread x #

to :: Rep Spread x -> Spread #

Hashable Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Spread -> Int #

hash :: Spread -> Int #

type Rep Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep Spread = D1 (MetaData "Spread" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "SpreadRepeat" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SpreadPad" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SpreadReflect" PrefixI False) (U1 :: Type -> Type)))

data Texture Source #

Describe the different value which can be used in the fill or stroke attributes.

Constructors

ColorRef PixelRGBA8

Direct solid color (rgb)

TextureRef String

Link to a complex texture (url(#name))

FillNone

Equivalent to the none value.

Instances
Eq Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Methods

(==) :: Texture -> Texture -> Bool #

(/=) :: Texture -> Texture -> Bool #

Show Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Generic Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep Texture :: Type -> Type #

Methods

from :: Texture -> Rep Texture x #

to :: Rep Texture x -> Texture #

Hashable Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Texture -> Int #

hash :: Texture -> Int #

type Rep Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep Texture = D1 (MetaData "Texture" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "ColorRef" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PixelRGBA8)) :+: (C1 (MetaCons "TextureRef" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) :+: C1 (MetaCons "FillNone" PrefixI False) (U1 :: Type -> Type)))

data Element Source #

Sum types helping keeping track of all the namable elemens in a SVG document.

Instances
Eq Element Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

(==) :: Element -> Element -> Bool #

(/=) :: Element -> Element -> Bool #

Show Element Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic Element Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep Element :: Type -> Type #

Methods

from :: Element -> Rep Element x #

to :: Rep Element x -> Element #

Hashable Element Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Element -> Int #

hash :: Element -> Int #

type Rep Element Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

data FillRule Source #

Describe the possile filling algorithms. Map the values of the `fill-rule` attributes.

Constructors

FillEvenOdd

Correspond to the evenodd value.

FillNonZero

Correspond to the nonzero value.

Instances
Eq FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Show FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Generic FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

Associated Types

type Rep FillRule :: Type -> Type #

Methods

from :: FillRule -> Rep FillRule x #

to :: Rep FillRule x -> FillRule #

Hashable FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> FillRule -> Int #

hash :: FillRule -> Int #

type Rep FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types.Basic

type Rep FillRule = D1 (MetaData "FillRule" "Graphics.SvgTree.Types.Basic" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "FillEvenOdd" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "FillNonZero" PrefixI False) (U1 :: Type -> Type))

data FontStyle Source #

Classify the font style, used to search a matching font in the FontCache.

Instances
Eq FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep FontStyle :: Type -> Type #

Hashable FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

type Rep FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep FontStyle = D1 (MetaData "FontStyle" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "FontStyleNormal" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "FontStyleItalic" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "FontStyleOblique" PrefixI False) (U1 :: Type -> Type)))

type Dpi = Int Source #

Alias describing a "dot per inch" information used for size calculation (see toUserUnit).

class WithDefaultSvg a where Source #

Define an empty 'default' element for the SVG tree. It is used as base when parsing the element from XML.

Methods

defaultSvg :: a Source #

The default element.

Instances
WithDefaultSvg DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FilterAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg PreserveAspectRatio Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FuncB Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FuncG Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FuncR Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FuncA Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg ComponentTransfer Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg MergeNode Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Merge Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Tile Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Offset Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Flood Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Blend Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg ImageF Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg DropShadow Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Morphology Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg DiffuseLighting Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg ConvolveMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg SpecularLighting Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg FilterElement Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg TreeBranch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

WithDefaultSvg Text Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg TextPath Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg TextSpan Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg TextInfo Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Use Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Image Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg MeshGradientRow Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg MeshGradientPatch Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg GradientStop Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Group Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Path Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Line Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

WithDefaultSvg PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Main type

data Document Source #

Represent a full svg document with style, geometry and named elements.

Instances
Eq Document Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show Document Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic Document Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

Hashable Document Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

Methods

hashWithSalt :: Int -> Document -> Int #

hash :: Document -> Int #

type Rep Document Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

pattern SvgTree :: Document -> Tree Source #

documentSize :: Dpi -> Document -> (Int, Int) Source #

Calculate the document size in function of the different available attributes in the document.

Drawing attributes

data DrawAttributes Source #

This type define how to draw any primitives, which color to use, how to stroke the primitives and the potential transformations to use.

All these attributes are propagated to the children.

Constructors

DrawAttributes 

Fields

Instances
Eq DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Show DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Generic DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Associated Types

type Rep DrawAttributes :: Type -> Type #

Semigroup DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Monoid DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Hashable DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Hashable

WithDefaultSvg DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

HasDrawAttributes DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

drawAttributes :: Lens' DrawAttributes DrawAttributes Source #

attrClass :: Lens' DrawAttributes [Text] Source #

attrId :: Lens' DrawAttributes (Maybe String) Source #

clipPathRef :: Lens' DrawAttributes (Last ElementRef) Source #

clipRule :: Lens' DrawAttributes (Last FillRule) Source #

fillColor :: Lens' DrawAttributes (Last Texture) Source #

fillOpacity :: Lens' DrawAttributes (Maybe Float) Source #

fillRule :: Lens' DrawAttributes (Last FillRule) Source #

filterRef :: Lens' DrawAttributes (Last ElementRef) Source #

fontFamily :: Lens' DrawAttributes (Last [String]) Source #

fontSize :: Lens' DrawAttributes (Last Number) Source #

fontStyle :: Lens' DrawAttributes (Last FontStyle) Source #

groupOpacity :: Lens' DrawAttributes (Maybe Float) Source #

markerEnd :: Lens' DrawAttributes (Last ElementRef) Source #

markerMid :: Lens' DrawAttributes (Last ElementRef) Source #

markerStart :: Lens' DrawAttributes (Last ElementRef) Source #

maskRef :: Lens' DrawAttributes (Last ElementRef) Source #

strokeColor :: Lens' DrawAttributes (Last Texture) Source #

strokeDashArray :: Lens' DrawAttributes (Last [Number]) Source #

strokeLineCap :: Lens' DrawAttributes (Last Cap) Source #

strokeLineJoin :: Lens' DrawAttributes (Last LineJoin) Source #

strokeMiterLimit :: Lens' DrawAttributes (Last Double) Source #

strokeOffset :: Lens' DrawAttributes (Last Number) Source #

strokeOpacity :: Lens' DrawAttributes (Maybe Float) Source #

strokeWidth :: Lens' DrawAttributes (Last Number) Source #

textAnchor :: Lens' DrawAttributes (Last TextAnchor) Source #

transform :: Lens' DrawAttributes (Maybe [Transformation]) Source #

type Rep DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

type Rep DrawAttributes = D1 (MetaData "DrawAttributes" "Graphics.SvgTree.Types.Internal" "reanimate-svg-0.13.0.0-Hn5EZrDBHcX186X2rLEalr" False) (C1 (MetaCons "DrawAttributes" PrefixI True) ((((S1 (MetaSel (Just "_strokeWidth") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Number)) :*: (S1 (MetaSel (Just "_strokeColor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Texture)) :*: S1 (MetaSel (Just "_strokeOpacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Float)))) :*: (S1 (MetaSel (Just "_strokeLineCap") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Cap)) :*: (S1 (MetaSel (Just "_strokeLineJoin") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last LineJoin)) :*: S1 (MetaSel (Just "_strokeMiterLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Double))))) :*: ((S1 (MetaSel (Just "_fillColor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Texture)) :*: (S1 (MetaSel (Just "_fillOpacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Float)) :*: S1 (MetaSel (Just "_groupOpacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Float)))) :*: ((S1 (MetaSel (Just "_transform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Transformation])) :*: S1 (MetaSel (Just "_fillRule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last FillRule))) :*: (S1 (MetaSel (Just "_maskRef") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef)) :*: S1 (MetaSel (Just "_clipPathRef") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef)))))) :*: (((S1 (MetaSel (Just "_clipRule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last FillRule)) :*: (S1 (MetaSel (Just "_attrClass") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_attrId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe String)))) :*: (S1 (MetaSel (Just "_strokeOffset") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Number)) :*: (S1 (MetaSel (Just "_strokeDashArray") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last [Number])) :*: S1 (MetaSel (Just "_fontSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last Number))))) :*: ((S1 (MetaSel (Just "_fontFamily") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last [String])) :*: (S1 (MetaSel (Just "_fontStyle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last FontStyle)) :*: S1 (MetaSel (Just "_textAnchor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last TextAnchor)))) :*: ((S1 (MetaSel (Just "_markerStart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef)) :*: S1 (MetaSel (Just "_markerMid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef))) :*: (S1 (MetaSel (Just "_markerEnd") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef)) :*: S1 (MetaSel (Just "_filterRef") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Last ElementRef))))))))

class HasDrawAttributes c where Source #

Minimal complete definition

drawAttributes

Instances
HasDrawAttributes DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types.Internal

Methods

drawAttributes :: Lens' DrawAttributes DrawAttributes Source #

attrClass :: Lens' DrawAttributes [Text] Source #

attrId :: Lens' DrawAttributes (Maybe String) Source #

clipPathRef :: Lens' DrawAttributes (Last ElementRef) Source #

clipRule :: Lens' DrawAttributes (Last FillRule) Source #

fillColor :: Lens' DrawAttributes (Last Texture) Source #

fillOpacity :: Lens' DrawAttributes (Maybe Float) Source #

fillRule :: Lens' DrawAttributes (Last FillRule) Source #

filterRef :: Lens' DrawAttributes (Last ElementRef) Source #

fontFamily :: Lens' DrawAttributes (Last [String]) Source #

fontSize :: Lens' DrawAttributes (Last Number) Source #

fontStyle :: Lens' DrawAttributes (Last FontStyle) Source #

groupOpacity :: Lens' DrawAttributes (Maybe Float) Source #

markerEnd :: Lens' DrawAttributes (Last ElementRef) Source #

markerMid :: Lens' DrawAttributes (Last ElementRef) Source #

markerStart :: Lens' DrawAttributes (Last ElementRef) Source #

maskRef :: Lens' DrawAttributes (Last ElementRef) Source #

strokeColor :: Lens' DrawAttributes (Last Texture) Source #

strokeDashArray :: Lens' DrawAttributes (Last [Number]) Source #

strokeLineCap :: Lens' DrawAttributes (Last Cap) Source #

strokeLineJoin :: Lens' DrawAttributes (Last LineJoin) Source #

strokeMiterLimit :: Lens' DrawAttributes (Last Double) Source #

strokeOffset :: Lens' DrawAttributes (Last Number) Source #

strokeOpacity :: Lens' DrawAttributes (Maybe Float) Source #

strokeWidth :: Lens' DrawAttributes (Last Number) Source #

textAnchor :: Lens' DrawAttributes (Last TextAnchor) Source #

transform :: Lens' DrawAttributes (Maybe [Transformation]) Source #

HasDrawAttributes Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

Methods

drawAttributes :: Lens' RadialGradient DrawAttributes Source #

attrClass :: Lens' RadialGradient [Text] Source #

attrId :: Lens' RadialGradient (Maybe String) Source #

clipPathRef :: Lens' RadialGradient (Last ElementRef) Source #

clipRule :: Lens' RadialGradient (Last FillRule) Source #

fillColor :: Lens' RadialGradient (Last Texture) Source #

fillOpacity :: Lens' RadialGradient (Maybe Float) Source #

fillRule :: Lens' RadialGradient (Last FillRule) Source #

filterRef :: Lens' RadialGradient (Last ElementRef) Source #

fontFamily :: Lens' RadialGradient (Last [String]) Source #

fontSize :: Lens' RadialGradient (Last Number) Source #

fontStyle :: Lens' RadialGradient (Last FontStyle) Source #

groupOpacity :: Lens' RadialGradient (Maybe Float) Source #

markerEnd :: Lens' RadialGradient (Last ElementRef) Source #

markerMid :: Lens' RadialGradient (Last ElementRef) Source #

markerStart :: Lens' RadialGradient (Last ElementRef) Source #

maskRef :: Lens' RadialGradient (Last ElementRef) Source #

strokeColor :: Lens' RadialGradient (Last Texture) Source #

strokeDashArray :: Lens' RadialGradient (Last [Number]) Source #

strokeLineCap :: Lens' RadialGradient (Last Cap) Source #

strokeLineJoin :: Lens' RadialGradient (Last LineJoin) Source #

strokeMiterLimit :: Lens' RadialGradient (Last Double) Source #

strokeOffset :: Lens' RadialGradient (Last Number) Source #

strokeOpacity :: Lens' RadialGradient (Maybe Float) Source #

strokeWidth :: Lens' RadialGradient (Last Number) Source #

textAnchor :: Lens' RadialGradient (Last TextAnchor) Source #

transform :: Lens' RadialGradient (Maybe [Transformation]) Source #

HasDrawAttributes LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

Methods

drawAttributes :: Lens' LinearGradient DrawAttributes Source #

attrClass :: Lens' LinearGradient [Text] Source #

attrId :: Lens' LinearGradient (Maybe String) Source #

clipPathRef :: Lens' LinearGradient (Last ElementRef) Source #

clipRule :: Lens' LinearGradient (Last FillRule) Source #

fillColor :: Lens' LinearGradient (Last Texture) Source #

fillOpacity :: Lens' LinearGradient (Maybe Float) Source #

fillRule :: Lens' LinearGradient (Last FillRule) Source #

filterRef :: Lens' LinearGradient (Last ElementRef) Source #

fontFamily :: Lens' LinearGradient (Last [String]) Source #

fontSize :: Lens' LinearGradient (Last Number) Source #

fontStyle :: Lens' LinearGradient (Last FontStyle) Source #

groupOpacity :: Lens' LinearGradient (Maybe Float) Source #

markerEnd :: Lens' LinearGradient (Last ElementRef) Source #

markerMid :: Lens' LinearGradient (Last ElementRef) Source #

markerStart :: Lens' LinearGradient (Last ElementRef) Source #

maskRef :: Lens' LinearGradient (Last ElementRef) Source #

strokeColor :: Lens' LinearGradient (Last Texture) Source #

strokeDashArray :: Lens' LinearGradient (Last [Number]) Source #

strokeLineCap :: Lens' LinearGradient (Last Cap) Source #

strokeLineJoin :: Lens' LinearGradient (Last LineJoin) Source #

strokeMiterLimit :: Lens' LinearGradient (Last Double) Source #

strokeOffset :: Lens' LinearGradient (Last Number) Source #

strokeOpacity :: Lens' LinearGradient (Maybe Float) Source #

strokeWidth :: Lens' LinearGradient (Last Number) Source #

textAnchor :: Lens' LinearGradient (Last TextAnchor) Source #

transform :: Lens' LinearGradient (Maybe [Transformation]) Source #

HasDrawAttributes Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

Methods

drawAttributes :: Lens' GaussianBlur DrawAttributes Source #

attrClass :: Lens' GaussianBlur [Text] Source #

attrId :: Lens' GaussianBlur (Maybe String) Source #

clipPathRef :: Lens' GaussianBlur (Last ElementRef) Source #

clipRule :: Lens' GaussianBlur (Last FillRule) Source #

fillColor :: Lens' GaussianBlur (Last Texture) Source #

fillOpacity :: Lens' GaussianBlur (Maybe Float) Source #

fillRule :: Lens' GaussianBlur (Last FillRule) Source #

filterRef :: Lens' GaussianBlur (Last ElementRef) Source #

fontFamily :: Lens' GaussianBlur (Last [String]) Source #

fontSize :: Lens' GaussianBlur (Last Number) Source #

fontStyle :: Lens' GaussianBlur (Last FontStyle) Source #

groupOpacity :: Lens' GaussianBlur (Maybe Float) Source #

markerEnd :: Lens' GaussianBlur (Last ElementRef) Source #

markerMid :: Lens' GaussianBlur (Last ElementRef) Source #

markerStart :: Lens' GaussianBlur (Last ElementRef) Source #

maskRef :: Lens' GaussianBlur (Last ElementRef) Source #

strokeColor :: Lens' GaussianBlur (Last Texture) Source #

strokeDashArray :: Lens' GaussianBlur (Last [Number]) Source #

strokeLineCap :: Lens' GaussianBlur (Last Cap) Source #

strokeLineJoin :: Lens' GaussianBlur (Last LineJoin) Source #

strokeMiterLimit :: Lens' GaussianBlur (Last Double) Source #

strokeOffset :: Lens' GaussianBlur (Last Number) Source #

strokeOpacity :: Lens' GaussianBlur (Maybe Float) Source #

strokeWidth :: Lens' GaussianBlur (Last Number) Source #

textAnchor :: Lens' GaussianBlur (Last TextAnchor) Source #

transform :: Lens' GaussianBlur (Maybe [Transformation]) Source #

HasDrawAttributes Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

Methods

drawAttributes :: Lens' ColorMatrix DrawAttributes Source #

attrClass :: Lens' ColorMatrix [Text] Source #

attrId :: Lens' ColorMatrix (Maybe String) Source #

clipPathRef :: Lens' ColorMatrix (Last ElementRef) Source #

clipRule :: Lens' ColorMatrix (Last FillRule) Source #

fillColor :: Lens' ColorMatrix (Last Texture) Source #

fillOpacity :: Lens' ColorMatrix (Maybe Float) Source #

fillRule :: Lens' ColorMatrix (Last FillRule) Source #

filterRef :: Lens' ColorMatrix (Last ElementRef) Source #

fontFamily :: Lens' ColorMatrix (Last [String]) Source #

fontSize :: Lens' ColorMatrix (Last Number) Source #

fontStyle :: Lens' ColorMatrix (Last FontStyle) Source #

groupOpacity :: Lens' ColorMatrix (Maybe Float) Source #

markerEnd :: Lens' ColorMatrix (Last ElementRef) Source #

markerMid :: Lens' ColorMatrix (Last ElementRef) Source #

markerStart :: Lens' ColorMatrix (Last ElementRef) Source #

maskRef :: Lens' ColorMatrix (Last ElementRef) Source #

strokeColor :: Lens' ColorMatrix (Last Texture) Source #

strokeDashArray :: Lens' ColorMatrix (Last [Number]) Source #

strokeLineCap :: Lens' ColorMatrix (Last Cap) Source #

strokeLineJoin :: Lens' ColorMatrix (Last LineJoin) Source #

strokeMiterLimit :: Lens' ColorMatrix (Last Double) Source #

strokeOffset :: Lens' ColorMatrix (Last Number) Source #

strokeOpacity :: Lens' ColorMatrix (Maybe Float) Source #

strokeWidth :: Lens' ColorMatrix (Last Number) Source #

textAnchor :: Lens' ColorMatrix (Last TextAnchor) Source #

transform :: Lens' ColorMatrix (Maybe [Transformation]) Source #

HasDrawAttributes FuncB Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes FuncG Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes FuncR Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes FuncA Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes ComponentTransfer Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

Methods

drawAttributes :: Lens' ComponentTransfer DrawAttributes Source #

attrClass :: Lens' ComponentTransfer [Text] Source #

attrId :: Lens' ComponentTransfer (Maybe String) Source #

clipPathRef :: Lens' ComponentTransfer (Last ElementRef) Source #

clipRule :: Lens' ComponentTransfer (Last FillRule) Source #

fillColor :: Lens' ComponentTransfer (Last Texture) Source #

fillOpacity :: Lens' ComponentTransfer (Maybe Float) Source #

fillRule :: Lens' ComponentTransfer (Last FillRule) Source #

filterRef :: Lens' ComponentTransfer (Last ElementRef) Source #

fontFamily :: Lens' ComponentTransfer (Last [String]) Source #

fontSize :: Lens' ComponentTransfer (Last Number) Source #

fontStyle :: Lens' ComponentTransfer (Last FontStyle) Source #

groupOpacity :: Lens' ComponentTransfer (Maybe Float) Source #

markerEnd :: Lens' ComponentTransfer (Last ElementRef) Source #

markerMid :: Lens' ComponentTransfer (Last ElementRef) Source #

markerStart :: Lens' ComponentTransfer (Last ElementRef) Source #

maskRef :: Lens' ComponentTransfer (Last ElementRef) Source #

strokeColor :: Lens' ComponentTransfer (Last Texture) Source #

strokeDashArray :: Lens' ComponentTransfer (Last [Number]) Source #

strokeLineCap :: Lens' ComponentTransfer (Last Cap) Source #

strokeLineJoin :: Lens' ComponentTransfer (Last LineJoin) Source #

strokeMiterLimit :: Lens' ComponentTransfer (Last Double) Source #

strokeOffset :: Lens' ComponentTransfer (Last Number) Source #

strokeOpacity :: Lens' ComponentTransfer (Maybe Float) Source #

strokeWidth :: Lens' ComponentTransfer (Last Number) Source #

textAnchor :: Lens' ComponentTransfer (Last TextAnchor) Source #

transform :: Lens' ComponentTransfer (Maybe [Transformation]) Source #

HasDrawAttributes MergeNode Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Merge Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Tile Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Offset Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances

HasDrawAttributes Flood Source # 
Instance details

Defined in Graphics.SvgTree.Types.Instances