Skip to content

Added redraw re-export from the highlightRenderer #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

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