Skip to content

Conversation

oleksandr-danylchenko
Copy link
Contributor

@oleksandr-danylchenko oleksandr-danylchenko commented Jun 6, 2024

Issue - #103

Changes Made

  1. redraw method to the TextAnnotator definition
  2. Added direct re-exports for the highlightRenderer methods
(Soomo Staged)

@oleksandr-danylchenko
Copy link
Contributor Author

oleksandr-danylchenko commented Apr 4, 2025

Hello, @rsimon 👋🏻
I discovered a new useful case for exposing the redraw. It's needed for annotations made on scrollable tables. A consumer can add a scroll listener and, in the handler, run the:

const handleScroll = () => {
	r.state.store.recalculatePositions();
	r.redraw(true);
};

CleanShot 2025-04-03 at 14 12 18

Would it be possible to make this change a merge candidate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant