Skip to content

Commit

Permalink
Merge branch 'refs/heads/recogito#103-redraw-export' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/text-annotator/src/TextAnnotator.ts
  • Loading branch information
oleksandr-danylchenko committed Jul 9, 2024
2 parents 3f09c77 + 183d229 commit 0e159b8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/text-annotator/src/TextAnnotator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ export const createTextAnnotator = <E extends unknown = TextAnnotation>(
selectionHandler.setFilter(filter);
};

const setStyle = (style: HighlightStyleExpression | undefined) =>
highlightRenderer.setStyle(style);

const setUser = (user: User) => {
currentUser = user;
selectionHandler.setUser(user);
Expand All @@ -124,9 +121,6 @@ export const createTextAnnotator = <E extends unknown = TextAnnotation>(
}
};

const setVisible = (visible: boolean) =>
highlightRenderer.setVisible(visible);

const destroy = () => {
highlightRenderer.destroy();
selectionHandler.destroy();
Expand All @@ -141,12 +135,13 @@ export const createTextAnnotator = <E extends unknown = TextAnnotation>(
element: container,
getUser,
setFilter,
setStyle,
setStyle: highlightRenderer.setStyle.bind(highlightRenderer),
redraw: highlightRenderer.redraw.bind(highlightRenderer),
redraw: highlightRenderer.redraw.bind(highlightRenderer),
setUser,
setSelected,
setPresenceProvider,
setVisible,
setVisible: highlightRenderer.setVisible.bind(highlightRenderer),
on: lifecycle.on,
off: lifecycle.off,
scrollIntoView: scrollIntoView(container, store),
Expand Down

0 comments on commit 0e159b8

Please sign in to comment.