| Copyright | (c) 2015 Jeffrey Rosenbluth |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | jeffrey.rosenbluth@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Graphics.Svg.Core
Contents
Description
svg-builder Core types and functions.
Synopsis
- data Attribute
- data Element
- class ToElement a where
- class Term result where
- makeAttribute :: Text -> Text -> Attribute
- makeElement :: Text -> Element -> Element
- makeElementNoEnd :: Text -> Element
- makeElementDoctype :: Text -> Element
- with :: Element -> [Attribute] -> Element
- renderBS :: Element -> ByteString
- renderToFile :: FilePath -> Element -> IO ()
- renderText :: Element -> Text
Types
Attribute name value.
Type of an SVG element.
Things that can be converted to SVG elements.
Minimal complete definition
Used to make specific SVG element builders.
Minimal complete definition
Combinators
Make an attribute.
makeElement :: Text -> Element -> Element #
Make an SVG element builder
makeElementNoEnd :: Text -> Element #
Make an SVG element with no end tag, contains only attributes.
makeElementDoctype :: Text -> Element #
Make an SVG doctype element builder.
Rendering
renderBS :: Element -> ByteString #
Render a Element to lazy bytestring.
renderText :: Element -> Text #
Reder an Element to lazy text.