# `Macaw.Draw.Layout.Gantt.Result`
[🔗](https://github.com/dcoai/macaw_draw/blob/v0.1.0/lib/macaw/draw/layout/gantt/result.ex#L1)

A Gantt layout (spec/08 §14.3), as `Macaw.Draw.Layout.Gantt.generate/3` answers it:

- `rows`: `%{id, row, section, top, bottom}` in drawing order;
- `bars`: `%{id, row, x0, y0, x1, y1, progress, start, end}`, `progress` the progress
  bar's right end or `nil`;
- `milestones`: `%{id, row, x, y, size, path, start}`, the diamond's center, its
  half-diagonal and its `Macaw.Draw.IR.Path`;
- `dependencies`: `%{from, to, row, points, path}`, one per `after` edge;
- `grid`: `%{x, tick, y0, y1}`, one line per tick of the scale;
- `shades`: `%{x0, x1, y0, y1, from, to}`, the `excludes` spans clipped to the range;
- `now`: `%{x, y0, y1}` or `nil`;
- `sections`: `%{name, y0, y1}` in order;
- `height`, the rows' total height.

# `t`

```elixir
@type t() :: %Macaw.Draw.Layout.Gantt.Result{
  bars: [map()],
  dependencies: [map()],
  grid: [map()],
  height: number(),
  milestones: [map()],
  now: map() | nil,
  rows: [map()],
  sections: [map()],
  shades: [map()]
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
