KdeLayer
Defined in: packages/core/src/scene/types.ts:164
A smooth 2D kernel density estimate (mplsoccer's kdeplot), evaluated
on a grid and painted as a continuous surface. Unlike the binned
layers, low-density areas fade out rather than being filled with
colorMin, so the pitch stays visible underneath. Canvas-rendered.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
bandwidth? | readonly | number | Kernel bandwidth in provider units; omitted = Silverman's rule of thumb per axis. | packages/core/src/scene/types.ts:174 |
colorMax? | readonly | string | - | packages/core/src/scene/types.ts:176 |
colorMin? | readonly | string | - | packages/core/src/scene/types.ts:175 |
data | readonly | readonly T[] | - | packages/core/src/scene/types.ts:166 |
maxOpacity? | readonly | number | Opacity at the densest cell; density fades linearly to fully transparent at zero. | packages/core/src/scene/types.ts:178 |
resolution? | readonly | number | Grid cells per axis the estimate is sampled on; higher = smoother, slower. | packages/core/src/scene/types.ts:172 |
type | readonly | "kde" | - | packages/core/src/scene/types.ts:165 |
weight? | readonly | Accessor<T, number> | Omitted = every point counts equally; provided = each point's contribution is scaled by this. | packages/core/src/scene/types.ts:170 |
x | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:167 |
y | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:168 |