Macaw.Frame.Transforms.MonthOutline (macaw_frame v0.1.0)

Copy Markdown View Source

The month_outline step (spec/04 §7.1, spec/13 §7.1): a calendar heatmap's month outlines, a frame concern (needs: [:frame]), drawn by a path layer.

Its rows are days with their calendar parts (macaw_data's time_parts): fields: [week, weekday] (["week", "weekday"] by default) place each day in its cell, and by ("month") groups the days. The cells are the calendar's own bands: the weeks along the plot's width in order of first appearance and the weekdays 1 to 7 down its height, each a band scale without padding, as the calendar's frame declares them. A month's outline is the closed path around its cells: the column of its first day from that day down, its whole weeks, and the column of its last day down to that day, so two months meet along a stepped line. One row a month, in order of first appearance, with by and the outline under path. A day without a number for its week, or a weekday outside 1 to 7, places nothing.