Class: WordSnapper
Less than 1 minute
@ghentcdh/annotated-text / WordSnapper
Class: WordSnapper
Defined in: libs/core/src/lib/adapter/text/snapper/word-snapper/WordSnapper.ts:5
Implements
Constructors
Constructor
new WordSnapper():
WordSnapper
Returns
WordSnapper
Methods
fixOffset()
fixOffset(
action
,annotation
):SnapperResult
Defined in: libs/core/src/lib/adapter/text/snapper/word-snapper/WordSnapper.ts:61
Parameters
action
annotation
color?
{ background
: string
; backgroundActive
: string
; border
: string
; borderActive
: string
; color
: string
; gutterColor
: string
; } = ...
color.background?
string
= ...
color.backgroundActive?
string
= ...
color.border?
string
= ...
color.borderActive?
string
= ...
color.color?
string
= ...
color.gutterColor?
string
= ...
end
number
= ...
id
string
| number
= annotationIdSchema
isGutter
boolean
= ...
label?
string
= ...
start
number
= ...
target?
"text"
| "gutter"
= ...
textSelection?
string
= ...
weight?
number
= ...
Returns
Implementation of
setText()
setText(
text
):void
Defined in: libs/core/src/lib/adapter/text/snapper/word-snapper/WordSnapper.ts:9
Parameters
text
string
Returns
void