Skip to content

Type Alias: PickMode ​

ts
type PickMode = 'closest' | 'all' | 'x' | 'y';

Experimental

Hover/pick modes:

  • closest: the single nearest hit within the radius,
  • all: every hit within the radius, nearest first,
  • x / y (2D only): per trace, the point nearest in x (or y) within the radius, sorted by that 1D distance (Plotly's hovermode: 'x'). 3D views treat them as closest: a GPU window cannot express "everything along a screen axis" (ADR-010).

Released under the MIT License.