# `Plushie.Canvas.Shape.HitRect`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.6.0/lib/plushie/canvas/shape/hit_rect.ex#L1)

Explicit hit test rectangle override for interactive canvas shapes.

# `t`

```elixir
@type t() :: %Plushie.Canvas.Shape.HitRect{
  h: number(),
  w: number(),
  x: number(),
  y: number()
}
```

# `from_opts`

```elixir
@spec from_opts(keyword()) :: t()
```

Constructs a hit rect from a keyword list.

---

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