# `Macaw.Frame.Maps.Voronoi`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/maps/voronoi.ex#L1)

`maps.voronoi` (spec/13 §6.7), a map layer: each projected point's Voronoi cell bounded
by the plot, outlined in `axis` and filled by `category` when `fill_by` asks, with the
points' dashed hull from `delaunay(output: "hull")` on demand. A pick on a cell writes its
point's identity, so the cells are the points' nearest-neighbor hit areas. Copied from
the gallery's scatter plot's Voronoi (`examples/lib/examples/charts/scatter_plot.ex`).

    iex> Macaw.Frame.Maps.Voronoi.id()
    "maps.voronoi"

# `doc`

```elixir
@spec doc() :: String.t()
```

What it draws, for a person and a builder's library.

# `fixtures`

```elixir
@spec fixtures() :: [map()]
```

Its fixture (spec/14 §1): the cities' cells, filled by country, with the hull.

# `fragment`

```elixir
@spec fragment() :: map()
```

The fragment: projection, then voronoi, under a path layer, and the hull's.

# `id`

```elixir
@spec id() :: String.t()
```

The fragment's id in the catalog store.

# `kind`

```elixir
@spec kind() :: :design | :layers
```

What the fragment is: a whole design, or layers placed in one.

# `namespace`

```elixir
@spec namespace() :: :charts | :maps | :diagrams
```

Its namespace (spec/13 §2).

# `parameters`

```elixir
@spec parameters() :: [{String.t(), map()}]
```

Its parameters (spec/13 §6.7).

# `slots`

```elixir
@spec slots() :: %{required(String.t()) =&gt; map()}
```

Its slot: `points`, a longitude and a latitude, an optional category and identity.

---

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