Abstract Class: Snapper
@ghentcdh/annotated-text / Snapper
Abstract Class: Snapper
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:11
Extended by
Constructors
Constructor
new Snapper():
Snapper
Returns
Snapper
Methods
fixOffset()
abstractfixOffset(annotation):SnapperResult
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:14
Parameters
annotation
_drawMetadata
{ color?: { active: { border?: string; borderWidth: number; fill?: string; }; default: { border?: string; borderWidth: number; fill?: string; }; edit: { border?: string; borderWidth: number; fill?: string; }; hover: { border?: string; borderWidth: number; fill?: string; }; tag: { border?: string; borderWidth: number; fill?: string; text?: string; }; }; dimensions?: { x: number; y1: number; y2: number; }; draws: object[]; } = annotationDrawMetadataSchema
_drawMetadata.color?
{ active: { border?: string; borderWidth: number; fill?: string; }; default: { border?: string; borderWidth: number; fill?: string; }; edit: { border?: string; borderWidth: number; fill?: string; }; hover: { border?: string; borderWidth: number; fill?: string; }; tag: { border?: string; borderWidth: number; fill?: string; text?: string; }; } = ...
_drawMetadata.color.active
{ border?: string; borderWidth: number; fill?: string; } = annotationDrawColorSchema
_drawMetadata.color.active.border?
string = ...
_drawMetadata.color.active.borderWidth
number = ...
_drawMetadata.color.active.fill?
string = ...
_drawMetadata.color.default
{ border?: string; borderWidth: number; fill?: string; } = annotationDrawColorSchema
_drawMetadata.color.default.border?
string = ...
_drawMetadata.color.default.borderWidth
number = ...
_drawMetadata.color.default.fill?
string = ...
_drawMetadata.color.edit
{ border?: string; borderWidth: number; fill?: string; } = annotationDrawColorSchema
_drawMetadata.color.edit.border?
string = ...
_drawMetadata.color.edit.borderWidth
number = ...
_drawMetadata.color.edit.fill?
string = ...
_drawMetadata.color.hover
{ border?: string; borderWidth: number; fill?: string; } = annotationDrawColorSchema
_drawMetadata.color.hover.border?
string = ...
_drawMetadata.color.hover.borderWidth
number = ...
_drawMetadata.color.hover.fill?
string = ...
_drawMetadata.color.tag
{ border?: string; borderWidth: number; fill?: string; text?: string; } = tagColorSchema
_drawMetadata.color.tag.border?
string = ...
_drawMetadata.color.tag.borderWidth
number = ...
_drawMetadata.color.tag.fill?
string = ...
_drawMetadata.color.tag.text?
string = ...
_drawMetadata.dimensions?
{ x: number; y1: number; y2: number; } = ...
_drawMetadata.dimensions.x
number = ...
_drawMetadata.dimensions.y1
number = ...
_drawMetadata.dimensions.y2
number = ...
_drawMetadata.draws
object[] = ...
_render
{ isGutter: boolean; lines: object[]; render: string; style: { color: { background?: string; backgroundActive?: string; border?: string; borderActive?: string; color?: string; gutterColor?: string; tagBackground?: string; tagColor?: string; }; renderStyle: any; }; weight?: number; } = renderSchema
_render.isGutter
boolean = ...
_render.lines
object[] = ...
_render.render
string = ...
_render.style
{ color: { background?: string; backgroundActive?: string; border?: string; borderActive?: string; color?: string; gutterColor?: string; tagBackground?: string; tagColor?: string; }; renderStyle: any; } = renderStyleSchema
_render.style.color
{ background?: string; backgroundActive?: string; border?: string; borderActive?: string; color?: string; gutterColor?: string; tagBackground?: string; tagColor?: string; } = annotationColorSchema
_render.style.color.background?
string = ...
_render.style.color.backgroundActive?
string = ...
_render.style.color.border?
string = ...
_render.style.color.borderActive?
string = ...
_render.style.color.color?
string = ...
_render.style.color.gutterColor?
string = ...
_render.style.color.tagBackground?
string = ...
_render.style.color.tagColor?
string = ...
_render.style.renderStyle
any = ...
_render.weight?
number = ...
end
number = ...
id?
string | number = annotationIdSchema
label?
string = ...
start
number = ...
textSelection?
string = ...
Returns
setText()
abstractsetText(text,offsetStart):void
Defined in: libs/core/src/lib/adapter/text/snapper/snapper.ts:12
Parameters
text
string
offsetStart
number
Returns
void