diagrams-svg-1.3.1.10: SVG backend for diagrams drawing EDSL.

Copyright(c) 2015 Diagrams team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Backend.SVG.Attributes

Contents

Description

Attributes that are specific to the SVG backend. The intent of this module is to allow adding the attributes class, and id attributes to an SVG. For those embedding the resulting SVG into a webpage, this allows some interactivity with javascript and stylesheets.

Synopsis

Id

newtype SvgId

The SVG id attribute.

Constructors

SvgId 

Fields

getSvgId :: String
 

svgId :: HasStyle a => String -> a -> a

Set the Id attribute.

Class

newtype SvgClass

The SVG class attribute.

Constructors

SvgClass 

Fields

getSvgClass :: String
 

svgClass :: HasStyle a => String -> a -> a

Set the class attribute.