Class: AnnotationLink
Defined in: editor/annotationCells.ts:55
Diagram-only annotation link, exported and imported with the diagram.
Extends
Constructors
Constructor
new AnnotationLink(
props):AnnotationLink
Defined in: diagram/elements.ts:320
Parameters
| Parameter | Type |
|---|---|
|
Returns
AnnotationLink
Inherited from
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
|
| Events for the graph link. | |||
|
|
| Unique and immutable link ID on the diagram. | ||
|
|
| ‐ | ‐ | |
|
| ‐ | ‐ |
Accessors
linkState
Get Signature
get linkState():
TemplateState
Defined in: diagram/elements.ts:398
Gets a serializable template-specific state for the link.
Returns
Inherited from
sourceId
Get Signature
get sourceId():
string
Defined in: diagram/elements.ts:345
Gets an immutable link source element ID.
Returns
string
Inherited from
targetId
Get Signature
get targetId():
string
Defined in: diagram/elements.ts:352
Gets an immutable link target element ID.
Returns
string
Inherited from
typeId
Get Signature
get typeId():
LinkTypeIri
Defined in: diagram/elements.ts:359
Gets the link type IRI.
Returns
Inherited from
vertices
Get Signature
get vertices(): readonly
Vector[]
Defined in: diagram/elements.ts:375
Gets the link geometry (intermediate points in paper coordinates in order from the link source to the target).
Returns
readonly Vector[]
Inherited from
Methods
redraw()
redraw():
void
Defined in: diagram/elements.ts:418
Forces a re-render of the link displayed by a template on a canvas.
Returns
void
Inherited from
setLinkState()
setLinkState(
value):void
Defined in: diagram/elements.ts:408
Sets a new value for linkState property.
Triggers LinkEvents.changeLinkState event if new value does not equal to the previous one.
Parameters
| Parameter | Type |
|---|---|
|
Returns
void
Inherited from
setVertices()
setVertices(
value):void
Defined in: diagram/elements.ts:388
Sets a new value for vertices property.
Triggers LinkEvents.changeVertices event if new geometry does not equal to the previous one.
Parameters
| Parameter | Type |
|---|---|
| readonly |
Returns
void
See
Inherited from
toJSON()
toJSON():
SerializedAnnotationLink
Defined in: editor/annotationCells.ts:80
Returns
fromJSON()
staticfromJSON(state,options):undefined|AnnotationLink
Defined in: editor/annotationCells.ts:64
Parameters
| Parameter | Type |
|---|---|
| |
|
Returns
undefined | AnnotationLink
generateId()
staticgenerateId():string
Defined in: diagram/elements.ts:338
Generates a new unique ID for an link.
Returns
string