Repository navigation
Commit 62fddae
committed
spec(ChartTooltip): a dot-only chart's tooltip describes the dot nearest the pointer
Adds module:ChartTooltip/pointMode. On a chart whose primary series are
all dot-family marks, ChartTooltip picks the one dot nearest the pointer
in x and y, within the dot's painted radius + 8 CSS px; a tie goes to
the dot painted last, and the card closes beyond reach. Every other
chart keeps x-group selection.
ChartTooltip is the only card renderer: dot marks expose their geometry
through a private seam and draw no card, halo or hit target, and
dotGLInteractive takes no renderTooltip. The pick comes from an exact
indexed query; an accelerator may only narrow or confirm its
candidates. Pick work runs only while a point-mode tooltip is mounted,
and move-to-card p95 stays under 16 ms at 10,000 dots on a throttled
phone.
component:ChartTooltip lists the module and changes nothing else.1 parent 200a36f commit 62fddae
2 files changed
Lines changed: 267 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments