Class: DefaultSnapper
Less than 1 minute
@ghentcdh/annotated-text / DefaultSnapper
Class: DefaultSnapper
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:20
Extends
Constructors
Constructor
new DefaultSnapper():
DefaultSnapper
Returns
DefaultSnapper
Inherited from
Methods
fixOffset()
fixOffset(
action
,annotation
):SnapperResult
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:21
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
Overrides
setText()
setText(
text
):void
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:12
Parameters
text
string
Returns
void