SerialisedAnnotation
Defined in: src/context/protocol.ts:512
Serialised annotation data. All properties collected upfront into a plain object for transfer across the worker boundary.
Properties
Section titled “Properties”appearance
Section titled “appearance”appearance:
string|null
Defined in: src/context/protocol.ts:523
attachmentPoints
Section titled “attachmentPoints”attachmentPoints:
SerialisedQuadPoints[] |undefined
Defined in: src/context/protocol.ts:533
author
Section titled “author”author:
string
Defined in: src/context/protocol.ts:520
border
Section titled “border”border:
AnnotationBorder|null
Defined in: src/context/protocol.ts:522
bounds
Section titled “bounds”bounds:
Rect
Defined in: src/context/protocol.ts:516
colour
Section titled “colour”colour:
object
Defined in: src/context/protocol.ts:517
interior
Section titled “interior”interior:
Colour|undefined
stroke
Section titled “stroke”stroke:
Colour|undefined
contents
Section titled “contents”contents:
string
Defined in: src/context/protocol.ts:519
defaultAppearance?
Section titled “defaultAppearance?”
optionaldefaultAppearance:string|null
Defined in: src/context/protocol.ts:524
flags:
number
Defined in: src/context/protocol.ts:518
fontName?
Section titled “fontName?”
optionalfontName:string|null
Defined in: src/context/protocol.ts:526
fontSize
Section titled “fontSize”fontSize:
number
Defined in: src/context/protocol.ts:525
index:
number
Defined in: src/context/protocol.ts:513
inkPaths
Section titled “inkPaths”inkPaths:
object[][] |undefined
Defined in: src/context/protocol.ts:532
line: {
end: {x:number;y:number; };start: {x:number;y:number; }; } |undefined
Defined in: src/context/protocol.ts:530
lineFallback?
Section titled “lineFallback?”
optionallineFallback:boolean
Defined in: src/context/protocol.ts:529
link:
SerialisedLinkTarget|undefined
Defined in: src/context/protocol.ts:537
stackIndex?
Section titled “stackIndex?”
optionalstackIndex:number
Defined in: src/context/protocol.ts:514
stampType?
Section titled “stampType?”
optionalstampType:string|null
Defined in: src/context/protocol.ts:527
subject
Section titled “subject”subject:
string
Defined in: src/context/protocol.ts:521
type:
AnnotationType
Defined in: src/context/protocol.ts:515
vertices
Section titled “vertices”vertices:
object[] |undefined
Defined in: src/context/protocol.ts:531
widget
Section titled “widget”widget:
SerialisedWidgetData|undefined
Defined in: src/context/protocol.ts:535