Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- boundingBox :: Tree -> (Double, Double, Double, Double)
- svgHeight :: Tree -> Double
- svgWidth :: Tree -> Double
- linePoints :: [LineCommand] -> [RPoint]
- svgBoundingPoints :: Tree -> [RPoint]
Documentation
boundingBox :: Tree -> (Double, Double, Double, Double) Source #
Return bounding box of SVG tree. The four numbers returned are (minimal X-coordinate, minimal Y-coordinate, width, height)
Note: Bounding boxes are computed on a best-effort basis and will not work in all cases. The only supported SVG nodes are: path, circle, polyline, ellipse, line, rectangle, image. All other nodes return (0,0,0,0).
linePoints :: [LineCommand] -> [RPoint] Source #
svgBoundingPoints :: Tree -> [RPoint] Source #