# `Bsp.Node`
[🔗](https://github.com/W3NDO/jigsaw/tree/main/apps/jigsaw/blob/main/lib/bsp/node.ex#L1)

Node represents a split in the layout with a left and right side. Direction represents the direction of the split.

The `ratio` field is currently experimental and reserved for future proportional layout support and is not used when calculating geometry.

# `t`

```elixir
@type t() :: %Bsp.Node{
  direction: Types.Direction.t(),
  id: Types.Id.t(),
  left: Bsp.Pane.t(),
  ratio: float(),
  right: Bsp.Pane.t()
}
```

---

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