Repository navigation
Commit 661dde2
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 eligible dot nearest
the pointer in x and y, within the dot's painted radius + 8 CSS px; a
tie goes to the dot drawn on top, and the card closes beyond reach.
Every other chart keeps x-group selection, and utility annotations do
not change the mode.
For built-in marks, ChartTooltip is the only card renderer: dot marks
expose their geometry through a package-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 the move-to-paint p95 stays under 16 ms at
10,000 dots under a throttled phone emulation profile.
component:ChartTooltip lists the module and changes nothing else.1 parent 200a36f commit 661dde2
2 files changed
Lines changed: 279 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