Safe Haskell | None |
---|---|
Language | Haskell2010 |
Svg rendering
- data SvgOptions = SvgOptions {
- size :: Pair Double
- svgId :: Text
- attributes :: [Attribute]
- includeDocType :: Bool
- renderSvg :: SvgOptions -> Chart SVG -> Element
- toText :: SvgOptions -> Chart SVG -> Text
- toFile :: FilePath -> Element -> IO ()
- fileSvg :: FilePath -> SvgOptions -> Chart SVG -> IO ()
- scratch :: Chart SVG -> IO ()
Documentation
data SvgOptions Source #
ToDo: Mathjax capability would be awesome but the html that mathjax generates is not valid svg unless it is wrapped in foreignObject instead of text. foreignObject also cant be a sub-element of a text element. This means extensive digging into Diagrams innards etc
https://stackoverflow.com/questions/15962325/mathjax-inside-svg
Svg options
SvgOptions | |
|