reanimate-svg-0.10.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

Methods

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

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

Show Origin Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Show PathCommand Source # 
Instance details

Defined in Graphics.SvgTree.Types

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.

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

Show ElementRef Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Building helpers

toPoint :: Number -> Number -> Point Source #

Little helper function to build a point.

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

Methods

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

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

Show Cap Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Cap -> ShowS #

show :: Cap -> String #

showList :: [Cap] -> ShowS #

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

Show LineJoin Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Methods

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

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

Show Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

CssMatcheable Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

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

Methods

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

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

Show Spread Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Methods

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

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

Show Texture Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Methods

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

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

Show Element Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Show FillRule Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

Show FontStyle Source # 
Instance details

Defined in Graphics.SvgTree.Types

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

WithDefaultSvg FilterAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg PreserveAspectRatio Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg FilterElement Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg TextPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg TextSpan Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg TextInfo Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg MeshGradientRow Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg MeshGradientPatch Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg GradientStop Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

defaultSvg :: Group a Source #

Main type

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

Show DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

Semigroup DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

Monoid DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' DrawAttributes (Maybe String) 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 #

class HasDrawAttributes c where Source #

Minimal complete definition

drawAttributes

Instances
HasDrawAttributes DrawAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' DrawAttributes (Maybe String) 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

HasDrawAttributes ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' RadialGradient (Maybe String) 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

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 #

preRendered :: Lens' LinearGradient (Maybe String) 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

HasDrawAttributes GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' GaussianBlur (Maybe String) 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

Methods

drawAttributes :: Lens' Turbulence DrawAttributes Source #

attrClass :: Lens' Turbulence [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Turbulence (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasDrawAttributes Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' Composite DrawAttributes Source #

attrClass :: Lens' Composite [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Composite (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasDrawAttributes ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' ColorMatrix (Maybe String) 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 DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' DisplacementMap DrawAttributes Source #

attrClass :: Lens' DisplacementMap [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' DisplacementMap (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasDrawAttributes Tree Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' MeshGradient DrawAttributes Source #

attrClass :: Lens' MeshGradient [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' MeshGradient (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasDrawAttributes Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' Rectangle DrawAttributes Source #

attrClass :: Lens' Rectangle [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Rectangle (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasDrawAttributes Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Definitions a) DrawAttributes Source #

attrClass :: Lens' (Definitions a) [Text] Source #

attrId :: Lens' (Definitions a) (Maybe String) Source #

clipPathRef :: Lens' (Definitions a) (Last ElementRef) Source #

clipRule :: Lens' (Definitions a) (Last FillRule) Source #

fillColor :: Lens' (Definitions a) (Last Texture) Source #

fillOpacity :: Lens' (Definitions a) (Maybe Float) Source #

fillRule :: Lens' (Definitions a) (Last FillRule) Source #

filterRef :: Lens' (Definitions a) (Last ElementRef) Source #

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

fontSize :: Lens' (Definitions a) (Last Number) Source #

fontStyle :: Lens' (Definitions a) (Last FontStyle) Source #

groupOpacity :: Lens' (Definitions a) (Maybe Float) Source #

markerEnd :: Lens' (Definitions a) (Last ElementRef) Source #

markerMid :: Lens' (Definitions a) (Last ElementRef) Source #

markerStart :: Lens' (Definitions a) (Last ElementRef) Source #

maskRef :: Lens' (Definitions a) (Last ElementRef) Source #

preRendered :: Lens' (Definitions a) (Maybe String) Source #

strokeColor :: Lens' (Definitions a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Definitions a) (Last Cap) Source #

strokeLineJoin :: Lens' (Definitions a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Definitions a) (Last Double) Source #

strokeOffset :: Lens' (Definitions a) (Last Number) Source #

strokeOpacity :: Lens' (Definitions a) (Maybe Float) Source #

strokeWidth :: Lens' (Definitions a) (Last Number) Source #

textAnchor :: Lens' (Definitions a) (Last TextAnchor) Source #

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

HasDrawAttributes (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Symbol a) DrawAttributes Source #

attrClass :: Lens' (Symbol a) [Text] Source #

attrId :: Lens' (Symbol a) (Maybe String) Source #

clipPathRef :: Lens' (Symbol a) (Last ElementRef) Source #

clipRule :: Lens' (Symbol a) (Last FillRule) Source #

fillColor :: Lens' (Symbol a) (Last Texture) Source #

fillOpacity :: Lens' (Symbol a) (Maybe Float) Source #

fillRule :: Lens' (Symbol a) (Last FillRule) Source #

filterRef :: Lens' (Symbol a) (Last ElementRef) Source #

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

fontSize :: Lens' (Symbol a) (Last Number) Source #

fontStyle :: Lens' (Symbol a) (Last FontStyle) Source #

groupOpacity :: Lens' (Symbol a) (Maybe Float) Source #

markerEnd :: Lens' (Symbol a) (Last ElementRef) Source #

markerMid :: Lens' (Symbol a) (Last ElementRef) Source #

markerStart :: Lens' (Symbol a) (Last ElementRef) Source #

maskRef :: Lens' (Symbol a) (Last ElementRef) Source #

preRendered :: Lens' (Symbol a) (Maybe String) Source #

strokeColor :: Lens' (Symbol a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Symbol a) (Last Cap) Source #

strokeLineJoin :: Lens' (Symbol a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Symbol a) (Last Double) Source #

strokeOffset :: Lens' (Symbol a) (Last Number) Source #

strokeOpacity :: Lens' (Symbol a) (Maybe Float) Source #

strokeWidth :: Lens' (Symbol a) (Last Number) Source #

textAnchor :: Lens' (Symbol a) (Last TextAnchor) Source #

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

HasDrawAttributes (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Group a) DrawAttributes Source #

attrClass :: Lens' (Group a) [Text] Source #

attrId :: Lens' (Group a) (Maybe String) Source #

clipPathRef :: Lens' (Group a) (Last ElementRef) Source #

clipRule :: Lens' (Group a) (Last FillRule) Source #

fillColor :: Lens' (Group a) (Last Texture) Source #

fillOpacity :: Lens' (Group a) (Maybe Float) Source #

fillRule :: Lens' (Group a) (Last FillRule) Source #

filterRef :: Lens' (Group a) (Last ElementRef) Source #

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

fontSize :: Lens' (Group a) (Last Number) Source #

fontStyle :: Lens' (Group a) (Last FontStyle) Source #

groupOpacity :: Lens' (Group a) (Maybe Float) Source #

markerEnd :: Lens' (Group a) (Last ElementRef) Source #

markerMid :: Lens' (Group a) (Last ElementRef) Source #

markerStart :: Lens' (Group a) (Last ElementRef) Source #

maskRef :: Lens' (Group a) (Last ElementRef) Source #

preRendered :: Lens' (Group a) (Maybe String) Source #

strokeColor :: Lens' (Group a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Group a) (Last Cap) Source #

strokeLineJoin :: Lens' (Group a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Group a) (Last Double) Source #

strokeOffset :: Lens' (Group a) (Last Number) Source #

strokeOpacity :: Lens' (Group a) (Maybe Float) Source #

strokeWidth :: Lens' (Group a) (Last Number) Source #

textAnchor :: Lens' (Group a) (Last TextAnchor) Source #

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

Filters

class HasFilterAttributes c_asYk where Source #

Lenses for the FilterAttributes type.

Minimal complete definition

filterAttributes

Instances
HasFilterAttributes FilterAttributes Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes FilterElement Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

data ColorMatrix Source #

Instances
Eq ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' ColorMatrix (Maybe String) 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 #

HasFilterAttributes ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasColorMatrix ColorMatrix Source # 
Instance details

Defined in Graphics.SvgTree.Types

data Composite Source #

Instances
Eq Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' Composite DrawAttributes Source #

attrClass :: Lens' Composite [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Composite (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasFilterAttributes Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasComposite Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

data EdgeMode Source #

Instances
Eq EdgeMode Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show EdgeMode Source # 
Instance details

Defined in Graphics.SvgTree.Types

data GaussianBlur Source #

Instances
Eq GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' GaussianBlur (Maybe String) 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 #

HasFilterAttributes GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasGaussianBlur GaussianBlur Source # 
Instance details

Defined in Graphics.SvgTree.Types

data Turbulence Source #

Instances
Eq Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' Turbulence DrawAttributes Source #

attrClass :: Lens' Turbulence [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Turbulence (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasFilterAttributes Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasTurbulence Turbulence Source # 
Instance details

Defined in Graphics.SvgTree.Types

data StitchTiles Source #

Constructors

NoStitch 
Stitch 
Instances
Eq StitchTiles Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show StitchTiles Source # 
Instance details

Defined in Graphics.SvgTree.Types

data DisplacementMap Source #

Instances
Eq DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' DisplacementMap DrawAttributes Source #

attrClass :: Lens' DisplacementMap [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' DisplacementMap (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

HasFilterAttributes DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDisplacementMap DisplacementMap Source # 
Instance details

Defined in Graphics.SvgTree.Types

SVG drawing primitives

Rectangle

data Rectangle Source #

Define a rectangle. Correspond to `<rectangle>` svg tag.

Constructors

Rectangle 

Fields

Instances
Eq Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasRectangle Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Rectangle Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' Rectangle DrawAttributes Source #

attrClass :: Lens' Rectangle [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' Rectangle (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

Line

data Line Source #

Define a simple line. Correspond to the `<line>` tag.

Constructors

Line 

Fields

Instances
Eq Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

WithDefaultSvg Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasLine Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Line Source # 
Instance details

Defined in Graphics.SvgTree.Types

Polygon

data Polygon Source #

Primitive decriving polygon composed of segements. Correspond to the `<polygon>` tag

Constructors

Polygon 

Fields

Instances
Eq Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasPolygon Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Polygon Source # 
Instance details

Defined in Graphics.SvgTree.Types

Polyline

data PolyLine Source #

This primitive describe an unclosed suite of segments. Correspond to the `<polyline>` tag.

Constructors

PolyLine 

Fields

Instances
Eq PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasPolyLine PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes PolyLine Source # 
Instance details

Defined in Graphics.SvgTree.Types

Path

data Path Source #

Type mapping the `<path>` svg tag.

Constructors

Path 

Fields

Instances
Eq Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

WithDefaultSvg Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasPath Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Path Source # 
Instance details

Defined in Graphics.SvgTree.Types

class HasPath c_alhy where Source #

Lenses for the Path type

Minimal complete definition

path

Circle

data Circle Source #

Define a `<circle>`.

Constructors

Circle 

Fields

Instances
Eq Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasCircle Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Circle Source # 
Instance details

Defined in Graphics.SvgTree.Types

Ellipse

data Ellipse Source #

Define an `<ellipse>`

Constructors

Ellipse 

Fields

Instances
Eq Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasEllipse Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Ellipse Source # 
Instance details

Defined in Graphics.SvgTree.Types

Mesh (gradient mesh)

data GradientPathCommand Source #

Description of path used in meshgradient tag

Constructors

GLine !Origin !(Maybe RPoint)

Line to, L or l Svg path command.

GCurve !Origin !RPoint !RPoint !(Maybe RPoint)

Cubic bezier, C or c command

GClose

Z command

data MeshGradient Source #

Define a `<meshgradient>` tag.

Constructors

MeshGradient 

Fields

Instances
Eq MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasMeshGradient MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes MeshGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' MeshGradient DrawAttributes Source #

attrClass :: Lens' MeshGradient [Text] Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

preRendered :: Lens' MeshGradient (Maybe String) Source #

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

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

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

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

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

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

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

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

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

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

Image

data Image Source #

Define an `<image>` tag.

Constructors

Image 

Fields

Instances
Eq Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Image -> ShowS #

show :: Image -> String #

showList :: [Image] -> ShowS #

WithDefaultSvg Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasImage Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Image Source # 
Instance details

Defined in Graphics.SvgTree.Types

Use

data Use Source #

Define an `<use>` for a named content. Every named content can be reused in the document using this element.

Constructors

Use 

Fields

Instances
Eq Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Use -> ShowS #

show :: Use -> String #

showList :: [Use] -> ShowS #

WithDefaultSvg Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasUse Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Use Source # 
Instance details

Defined in Graphics.SvgTree.Types

Grouping primitives

Group

data Group a Source #

Define a SVG group, corresponding `<g>` tag.

Constructors

Group 

Fields

Instances
Eq a => Eq (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

(==) :: Group a -> Group a -> Bool #

(/=) :: Group a -> Group a -> Bool #

Show a => Show (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Group a -> ShowS #

show :: Group a -> String #

showList :: [Group a] -> ShowS #

WithDefaultSvg (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

defaultSvg :: Group a Source #

HasDrawAttributes (Group a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Group a) DrawAttributes Source #

attrClass :: Lens' (Group a) [Text] Source #

attrId :: Lens' (Group a) (Maybe String) Source #

clipPathRef :: Lens' (Group a) (Last ElementRef) Source #

clipRule :: Lens' (Group a) (Last FillRule) Source #

fillColor :: Lens' (Group a) (Last Texture) Source #

fillOpacity :: Lens' (Group a) (Maybe Float) Source #

fillRule :: Lens' (Group a) (Last FillRule) Source #

filterRef :: Lens' (Group a) (Last ElementRef) Source #

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

fontSize :: Lens' (Group a) (Last Number) Source #

fontStyle :: Lens' (Group a) (Last FontStyle) Source #

groupOpacity :: Lens' (Group a) (Maybe Float) Source #

markerEnd :: Lens' (Group a) (Last ElementRef) Source #

markerMid :: Lens' (Group a) (Last ElementRef) Source #

markerStart :: Lens' (Group a) (Last ElementRef) Source #

maskRef :: Lens' (Group a) (Last ElementRef) Source #

preRendered :: Lens' (Group a) (Maybe String) Source #

strokeColor :: Lens' (Group a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Group a) (Last Cap) Source #

strokeLineJoin :: Lens' (Group a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Group a) (Last Double) Source #

strokeOffset :: Lens' (Group a) (Last Number) Source #

strokeOpacity :: Lens' (Group a) (Maybe Float) Source #

strokeWidth :: Lens' (Group a) (Last Number) Source #

textAnchor :: Lens' (Group a) (Last TextAnchor) Source #

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

HasGroup (Group a) a Source # 
Instance details

Defined in Graphics.SvgTree.Types

class HasGroup g a | g -> a where Source #

Lenses associated to the Group type.

Minimal complete definition

group

Symbol

newtype Symbol a Source #

Define the `<symbol>` tag, equivalent to a hidden named group.

Constructors

Symbol 

Fields

Instances
Eq a => Eq (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

(==) :: Symbol a -> Symbol a -> Bool #

(/=) :: Symbol a -> Symbol a -> Bool #

Show a => Show (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Symbol a -> ShowS #

show :: Symbol a -> String #

showList :: [Symbol a] -> ShowS #

WithDefaultSvg (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes (Symbol a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Symbol a) DrawAttributes Source #

attrClass :: Lens' (Symbol a) [Text] Source #

attrId :: Lens' (Symbol a) (Maybe String) Source #

clipPathRef :: Lens' (Symbol a) (Last ElementRef) Source #

clipRule :: Lens' (Symbol a) (Last FillRule) Source #

fillColor :: Lens' (Symbol a) (Last Texture) Source #

fillOpacity :: Lens' (Symbol a) (Maybe Float) Source #

fillRule :: Lens' (Symbol a) (Last FillRule) Source #

filterRef :: Lens' (Symbol a) (Last ElementRef) Source #

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

fontSize :: Lens' (Symbol a) (Last Number) Source #

fontStyle :: Lens' (Symbol a) (Last FontStyle) Source #

groupOpacity :: Lens' (Symbol a) (Maybe Float) Source #

markerEnd :: Lens' (Symbol a) (Last ElementRef) Source #

markerMid :: Lens' (Symbol a) (Last ElementRef) Source #

markerStart :: Lens' (Symbol a) (Last ElementRef) Source #

maskRef :: Lens' (Symbol a) (Last ElementRef) Source #

preRendered :: Lens' (Symbol a) (Maybe String) Source #

strokeColor :: Lens' (Symbol a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Symbol a) (Last Cap) Source #

strokeLineJoin :: Lens' (Symbol a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Symbol a) (Last Double) Source #

strokeOffset :: Lens' (Symbol a) (Last Number) Source #

strokeOpacity :: Lens' (Symbol a) (Maybe Float) Source #

strokeWidth :: Lens' (Symbol a) (Last Number) Source #

textAnchor :: Lens' (Symbol a) (Last TextAnchor) Source #

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

HasGroup (Symbol a) a Source # 
Instance details

Defined in Graphics.SvgTree.Types

groupOfSymbol :: Lens (Symbol s) (Symbol t) (Group s) (Group t) Source #

Lenses associated with the Symbol type.

Definitions

newtype Definitions a Source #

Define the `<defs>` tag, equivalent to a named symbol.

Constructors

Definitions 
Instances
Eq a => Eq (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show a => Show (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes (Definitions a) Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

drawAttributes :: Lens' (Definitions a) DrawAttributes Source #

attrClass :: Lens' (Definitions a) [Text] Source #

attrId :: Lens' (Definitions a) (Maybe String) Source #

clipPathRef :: Lens' (Definitions a) (Last ElementRef) Source #

clipRule :: Lens' (Definitions a) (Last FillRule) Source #

fillColor :: Lens' (Definitions a) (Last Texture) Source #

fillOpacity :: Lens' (Definitions a) (Maybe Float) Source #

fillRule :: Lens' (Definitions a) (Last FillRule) Source #

filterRef :: Lens' (Definitions a) (Last ElementRef) Source #

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

fontSize :: Lens' (Definitions a) (Last Number) Source #

fontStyle :: Lens' (Definitions a) (Last FontStyle) Source #

groupOpacity :: Lens' (Definitions a) (Maybe Float) Source #

markerEnd :: Lens' (Definitions a) (Last ElementRef) Source #

markerMid :: Lens' (Definitions a) (Last ElementRef) Source #

markerStart :: Lens' (Definitions a) (Last ElementRef) Source #

maskRef :: Lens' (Definitions a) (Last ElementRef) Source #

preRendered :: Lens' (Definitions a) (Maybe String) Source #

strokeColor :: Lens' (Definitions a) (Last Texture) Source #

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

strokeLineCap :: Lens' (Definitions a) (Last Cap) Source #

strokeLineJoin :: Lens' (Definitions a) (Last LineJoin) Source #

strokeMiterLimit :: Lens' (Definitions a) (Last Double) Source #

strokeOffset :: Lens' (Definitions a) (Last Number) Source #

strokeOpacity :: Lens' (Definitions a) (Maybe Float) Source #

strokeWidth :: Lens' (Definitions a) (Last Number) Source #

textAnchor :: Lens' (Definitions a) (Last TextAnchor) Source #

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

HasGroup (Definitions a) a Source # 
Instance details

Defined in Graphics.SvgTree.Types

groupOfDefinitions :: Lens (Definitions s) (Definitions t) (Group s) (Group t) Source #

Lenses associated with the Definitions type.

Filter

data Filter Source #

Define the `<filter>` tag.

Instances
Eq Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes Filter Source # 
Instance details

Defined in Graphics.SvgTree.Types

Text related types

Text

data Text Source #

Define the global `<tag>` SVG tag.

Constructors

Text 

Fields

Instances
Eq Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Text -> ShowS #

show :: Text -> String #

showList :: [Text] -> ShowS #

WithDefaultSvg Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasText Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Text Source # 
Instance details

Defined in Graphics.SvgTree.Types

class HasText c_aorD where Source #

Lenses for the Text type.

Minimal complete definition

text

data TextAnchor Source #

Tell where to anchor the text, where the position given is realative to the text.

Constructors

TextAnchorStart

The text with left aligned, or start at the postion If the point is the * then the text will be printed this way:

 *THE_TEXT_TO_PRINT

Equivalent to the start value.

TextAnchorMiddle

The text is middle aligned, so the text will be at the left and right of the position:

  THE_TEXT*TO_PRINT

Equivalent to the middle value.

TextAnchorEnd

The text is right aligned.

  THE_TEXT_TO_PRINT*

Equivalent to the end value.

Instances
Eq TextAnchor Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show TextAnchor Source # 
Instance details

Defined in Graphics.SvgTree.Types

textAt :: Point -> Text -> Text Source #

Little helper to create a SVG text at a given baseline position.

Text path

data TextPath Source #

Describe the `<textpath>` SVG tag.

Constructors

TextPath 

Fields

data TextPathSpacing Source #

Describe the content of the spacing text path attribute.

Constructors

TextPathSpacingExact

Map to the exact value.

TextPathSpacingAuto

Map to the auto value.

data TextPathMethod Source #

Describe the content of the method attribute on text path.

Constructors

TextPathAlign

Map to the align value.

TextPathStretch

Map to the stretch value.

Text span.

data TextSpanContent Source #

Define the content of a `<tspan>` tag.

Constructors

SpanText !Text

Raw text

SpanTextRef !String

Equivalent to a `<tref>`

SpanSub !TextSpan

Define a `<tspan>`

data TextSpan Source #

Define a `<tspan>` tag.

Constructors

TextSpan 

Fields

data TextInfo Source #

Define position information associated to `<text>` or `<tspan>` svg tag.

Constructors

TextInfo 

Fields

data TextAdjust Source #

Define the possible values of the lengthAdjust attribute.

Constructors

TextAdjustSpacing

Value spacing

TextAdjustSpacingAndGlyphs

Value spacingAndGlyphs

Instances
Eq TextAdjust Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show TextAdjust Source # 
Instance details

Defined in Graphics.SvgTree.Types

Marker definition

data Marker Source #

Define the `<marker>` tag.

Constructors

Marker 

Fields

Instances
Eq Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasMarker Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Marker Source # 
Instance details

Defined in Graphics.SvgTree.Types

data Overflow Source #

Define the content of the markerUnits attribute on the Marker.

Constructors

OverflowVisible

Value visible

OverflowHidden

Value hidden

Instances
Eq Overflow Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show Overflow Source # 
Instance details

Defined in Graphics.SvgTree.Types

data MarkerOrientation Source #

Define the orientation, associated to the orient attribute on the Marker

Constructors

OrientationAuto

Auto value

OrientationAngle Coord

Specific angle.

data MarkerUnit Source #

Define the content of the markerUnits attribute on the Marker.

Constructors

MarkerUnitStrokeWidth

Value strokeWidth

MarkerUnitUserSpaceOnUse

Value userSpaceOnUse

Instances
Eq MarkerUnit Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show MarkerUnit Source # 
Instance details

Defined in Graphics.SvgTree.Types

Gradient definition

data GradientStop Source #

Define a color stop for the gradients. Represent the `<stop>` SVG tag.

Constructors

GradientStop 

Fields

Linear Gradient

data LinearGradient Source #

Define a `<linearGradient>` tag.

Constructors

LinearGradient 

Fields

Instances
Eq LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasLinearGradient LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes LinearGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' LinearGradient (Maybe String) 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 #

Radial Gradient

data RadialGradient Source #

Define a `<radialGradient>` tag.

Constructors

RadialGradient 

Fields

Instances
Eq RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasRadialGradient RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes RadialGradient Source # 
Instance details

Defined in Graphics.SvgTree.Types

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 #

preRendered :: Lens' RadialGradient (Maybe String) 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 #

Pattern definition

data Pattern Source #

Define a `<pattern>` tag.

Constructors

Pattern 

Fields

Instances
Eq Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasPattern Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Pattern Source # 
Instance details

Defined in Graphics.SvgTree.Types

Mask definition

data Mask Source #

Define a SVG `<mask>` tag.

Constructors

Mask 

Fields

Instances
Eq Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

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

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

Show Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

Methods

showsPrec :: Int -> Mask -> ShowS #

show :: Mask -> String #

showList :: [Mask] -> ShowS #

WithDefaultSvg Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasMask Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes Mask Source # 
Instance details

Defined in Graphics.SvgTree.Types

Clip path definition

data ClipPath Source #

Define a `<clipPath>` tag.

Constructors

ClipPath 

Fields

Instances
Eq ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasClipPath ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasDrawAttributes ClipPath Source # 
Instance details

Defined in Graphics.SvgTree.Types

Aspect Ratio description

data Alignment Source #

This type represent the align information of the preserveAspectRatio SVGattribute

Constructors

AlignNone

"none" value

AlignxMinYMin 
AlignxMidYMin

"xMidYMin" value

AlignxMaxYMin

"xMaxYMin" value

AlignxMinYMid

"xMinYMid" value

AlignxMidYMid

"xMidYMid" value

AlignxMaxYMid

"xMaxYMid" value

AlignxMinYMax

"xMinYMax" value

AlignxMidYMax

"xMidYMax" value

AlignxMaxYMax

"xMaxYMax" value

Instances
Eq Alignment Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show Alignment Source # 
Instance details

Defined in Graphics.SvgTree.Types

data MeetSlice Source #

This type represent the "meet or slice" information of the preserveAspectRatio SVGattribute

Constructors

Meet 
Slice 
Instances
Eq MeetSlice Source # 
Instance details

Defined in Graphics.SvgTree.Types

Show MeetSlice Source # 
Instance details

Defined in Graphics.SvgTree.Types

MISC functions

isPathArc :: PathCommand -> Bool Source #

Tell if the path command is an EllipticalArc.

isPathWithArc :: Foldable f => f PathCommand -> Bool Source #

Tell if a full path contain an EllipticalArc.

nameOfTree :: Tree -> Text Source #

For every element of a svg tree, associate it's SVG tag name.

zipTree :: ([[Tree]] -> Tree) -> Tree -> Tree Source #

Map a tree while propagating context information. The function passed in parameter receive a list representing the the path used to go arrive to the current node.

mapTree :: (Tree -> Tree) -> Tree -> Tree Source #

Helper function mapping every tree element.

foldTree :: (a -> Tree -> a) -> a -> Tree -> a Source #

Fold all nodes of a SVG tree.

toUserUnit :: Dpi -> Number -> Number Source #

This function replace all device dependant units to user units given it's DPI configuration. Preserve percentage and "em" notation.

mapNumber :: (Double -> Double) -> Number -> Number Source #

Helper function to modify inner value of a number