| Copyright | (c) 2025 |
|---|---|
| License | MIT |
| Maintainer | mschavinda@gmail.com |
| Safe Haskell | None |
| Language | GHC2021 |
Granite.Render.Scene
Description
Synopsis
- data Point = Point !Double !Double
- data Rect = Rect {}
- data Mark
- data Scene = Scene {
- sceneWidth :: !Double
- sceneHeight :: !Double
- sceneMarks :: ![Mark]
- data Style = Style {
- styleFill :: !(Maybe Color)
- styleStroke :: !(Maybe Color)
- styleStrokeWidth :: !Double
- styleFillOpacity :: !Double
- defaultStyle :: Style
- data TextStyle = TextStyle {
- textFill :: !Color
- textSize :: !Double
- textAnchor :: !TextAnchor
- textRotate :: !Double
- textTitle :: !(Maybe Text)
- defaultTextStyle :: TextStyle
- data TextAnchor
- pxPerChar :: Double
- pxPerLine :: Double
Documentation
Axis-aligned rectangle by top-left + size.
Primitive drawable marks. MArc takes (center, radius, a0, a1)
in radians CCW from +x. MPolygon is a closed filled polyline.
MAxisLine is an axis-aligned 1-px line that the terminal backend
writes as box-drawing chars (│ ─ ┼) for crisp axes;
everything else is rasterised through Braille.
Constructors
| Scene | |
Fields
| |
Nothing on fill or stroke means "don't paint that side".
Constructors
| Style | |
Fields
| |
defaultStyle :: Style Source #
Constructors
| TextStyle | |
Fields
| |
data TextAnchor Source #
Constructors
| AnchorStart | |
| AnchorMiddle | |
| AnchorEnd |
Instances
| Show TextAnchor Source # | |
Defined in Granite.Render.Scene Methods showsPrec :: Int -> TextAnchor -> ShowS # show :: TextAnchor -> String # showList :: [TextAnchor] -> ShowS # | |
| Eq TextAnchor Source # | |
Defined in Granite.Render.Scene | |