Skip to content

Commit 35f120d

Browse files
committed
Reverting TextSelector core model
1 parent 5fe1892 commit 35f120d

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

packages/text-annotator/src/model/TextAnnotation.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,10 @@ export interface TextAnnotationTarget extends AnnotationTarget {
1212

1313
}
1414

15-
/**
16-
* Matches the `Text Quote Selector` spec
17-
* @see https://www.w3.org/TR/annotation-model/#text-quote-selector
18-
*/
19-
export interface TextQuoteSelector {
15+
export interface TextSelector {
2016

2117
quote: string;
22-
23-
quotePrefix: string;
24-
25-
quoteSuffix: string;
26-
27-
}
28-
29-
/**
30-
* Matches the `Text Position Selector` spec
31-
* @see https://www.w3.org/TR/annotation-model/#text-position-selector
32-
*/
33-
export interface TextPositionSelector {
34-
18+
3519
start: number;
3620

3721
end: number;
@@ -41,6 +25,3 @@ export interface TextPositionSelector {
4125
offsetReference?: HTMLElement
4226

4327
}
44-
45-
export type TextSelector = TextQuoteSelector & TextPositionSelector;
46-

0 commit comments

Comments
 (0)