Macaw.Frame.Layers.Grid (macaw_frame v0.1.0)

Copy Markdown View Source

The grid kind (spec/04 §5.2): a Gantt chart's time grid, its columns and their headers (a calendar's days, weeks or months), new in the second cut.

ChannelRole, familyTypes
x0, x1position: the column's left and right, the layout's pixelsnumberreq
labeltext: the column's headertext, category, number
seriesseriescategory, text, number

Parts: stroke, font. Paint: stroke, the theme's grid by default. One column per row: a rule at x0 down the plot's height, and its label centered over the column in the header band at the plot's top (the font's height and a half), inked in the theme's text and cut with an ellipsis to the column's width by the text estimate. Not bent. Anchor: the header's center. Budget: w. Auxiliary: it is the time axis of a Gantt chart, never data.