reanimate-svg-0.9.3.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 Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

WithDefaultSvg ColorMatrix 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 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 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 Composite Source # 
Instance details

Defined in Graphics.SvgTree.Types

HasFilterAttributes ColorMatrix 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

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 #

(/=) ::