Private.Data
Internal data.
type segment = [
| `Sub of Gg.p2 |
| `Line of Gg.p2 |
| `Qcurve of Gg.p2 * Gg.p2 |
| `Ccurve of Gg.p2 * Gg.p2 * Gg.p2 |
| `Earc of bool * bool * float * Gg.size2 * Gg.p2 |
| `Close |
]
The type for path segments.
type path = segment list
The type for paths. The segment list is reversed. A few invariants apply. See the comment in Vg
's source.
The type for transforms. Not uniformely expressed as a matrix since renderers may have shorter syntaxes for some transforms.
type primitive =
| Const of Gg.color |
| Axial of Gg.Color.stops * Gg.p2 * Gg.p2 |
| Radial of Gg.Color.stops * Gg.p2 * Gg.p2 * float |
| Raster of Gg.box2 * Gg.raster |
The type for image primitives.
type glyph_run = {
font : font; | |
text : string option; | |
o : Gg.p2; | (* Unused for now, always P2.o *) |
blocks : bool * (int * int) list; | |
advances : Gg.v2 list; | |
glyphs : glyph list; |
}
The type for glyph runs.