forked from recogito/text-annotator-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into recogito#71-fix-losing-styleClass
# Conflicts: # packages/text-annotator/src/highlight/canvas/highlightRenderer.ts
- Loading branch information
Showing
33 changed files
with
1,316 additions
and
915 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import type { DrawingStyle, FormatAdapter, PointerSelectAction } from '@annotorious/core'; | ||
import type { FormatAdapter, PointerSelectAction } from '@annotorious/core'; | ||
import type { PresencePainterOptions } from './presence'; | ||
import type { TextAnnotation } from './model'; | ||
import type { HighlightStyleExpression } from './highlight'; | ||
|
||
export interface TextAnnotatorOptions<T extends unknown = TextAnnotation> { | ||
|
||
adapter?: FormatAdapter<TextAnnotation, T> | null; | ||
|
||
experimentalCSSRenderer?: boolean; | ||
renderer?: RendererType; | ||
|
||
offsetReferenceSelector?: string; | ||
|
||
pointerAction?: PointerSelectAction | ((annotation: TextAnnotation) => PointerSelectAction); | ||
|
||
presence?: PresencePainterOptions; | ||
|
||
style?: DrawingStyle | ((annotation: TextAnnotation) => DrawingStyle); | ||
style?: HighlightStyleExpression; | ||
|
||
} | ||
|
||
export type RendererType = 'SPANS' | 'CANVAS' | 'CSS_HIGHLIGHTS'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { AnnotationState } from '@annotorious/core'; | ||
import type { AnnotationRects } from '../state'; | ||
|
||
export interface Highlight extends AnnotationRects { | ||
|
||
state: AnnotationState; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.