From 727877681b4c47a87eb7c1b1a034eacf12444995 Mon Sep 17 00:00:00 2001 From: Oleksandr Danylchenko Date: Thu, 4 Apr 2024 14:01:26 +0300 Subject: [PATCH] Added text-specific `setStyle` override --- packages/text-annotator/src/TextAnnotator.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/text-annotator/src/TextAnnotator.ts b/packages/text-annotator/src/TextAnnotator.ts index fb55f33c..2d6e2a28 100644 --- a/packages/text-annotator/src/TextAnnotator.ts +++ b/packages/text-annotator/src/TextAnnotator.ts @@ -17,6 +17,8 @@ export interface TextAnnotator extends Annot element: HTMLElement; + setStyle(style: HighlightStyleExpression | undefined): void; + // Returns true if successful (or false if the annotation is not currently rendered) scrollIntoView(annotation: TextAnnotation): boolean;