Files
graphify/tests
Hassan Zidan 5399548ad8 fix(export): show legend tooltip from the whole row and clear it on hide
Follow-up to the review on #4291:

- Hovering anywhere on a legend row except its count (checkbox, dot,
  gaps, padding) now shows the truncated name. The tooltip tracks the
  area the pointer must leave (the whole row for a name, the count
  itself for a count), so moving inside a row doesn't hide or restart it.
- hideSidebarTip() also clears textContent, so a hidden tooltip doesn't
  keep the last name in the DOM.
- Tests: the mock elements now have offsetWidth/offsetHeight, so the
  positioning math is checked (no more NaNpx). New tests cover the
  cursor offset, clamping and flipping near the window edges, and
  hovering every part of a legend row on a parent-linked mock DOM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 1000de9b46)
2026-10-12 22:58:40 +01:00
..