Diagrams data types
- type Point = (Double, Double)
- data Diagram
- = EmptyDiagram
- | Circle Double
- | Rect Double Double
- | Polyline Bool [Point]
- | Text Position String
- | Move Point Diagram
- | Scale Double Diagram
- | ScaleXY Double Double Diagram
- | Rotate Double Diagram
- | TransformMatrix Double Double Double Double Double Double Diagram
- | Clip Point Point Diagram
- | Fill Color Diagram
- | Stroke Color Diagram
- | StrokeWidth Double Diagram
- | FontFamily String Diagram
- | Link String Diagram
- | Overlay Diagram Diagram
- | Pack Diagram (Diagram -> Diagram)
- | Group Diagram Int Diagram
- | Ref Int
- | Error String Diagram
- data Position
- data Color
Documentation
Diagram data type
EmptyDiagram | empty diagram |
Circle Double | circle with radius |
Rect Double Double | rectangle; width and height |
Polyline Bool [Point] | True: polygon; False: polyline |
Text Position String | text at a given position |
Move Point Diagram | move |
Scale Double Diagram | scale |
ScaleXY Double Double Diagram | scale differently at x and y axes |
Rotate Double Diagram | rotate (radian) |
TransformMatrix Double Double Double Double Double Double Diagram | used internally |
Clip Point Point Diagram | clip a rectangle region (lower-left and upper-right corners) |
Fill Color Diagram | fill with color |
Stroke Color Diagram | set stroke color | FillOpacity Double Diagram -- ^ set fill opacity | StrokeOpacity Double Diagram -- ^ set stroke opacity |
StrokeWidth Double Diagram | set stroke width |
FontFamily String Diagram | set font family |
Link String Diagram | add a html link |
Overlay Diagram Diagram | overlay (the second is diagram over the first one) |
Pack Diagram (Diagram -> Diagram) | pack a diagram (kind of let-construct to save resources) |
Group Diagram Int Diagram | used internally |
Ref Int | used internally |
Error String Diagram | used internally |
Text positions