@graphty/graph-io / styles / ArrowAnnotation
Interface: ArrowAnnotation ​
Defined in: styles/annotations.ts:103
A line between two points, with an arrowhead at either end.
Extends ​
Properties ​
color ​
readonlycolor:`#${string}`
Defined in: styles/annotations.ts:111
The line color.
from ​
readonlyfrom:AnnotationPoint
Defined in: styles/annotations.ts:107
Where the line starts.
id ​
readonlyid:string
Defined in: styles/annotations.ts:29
The file's id for the annotation, or its index when the file gives none.
Inherited from ​
kind ​
readonlykind:"arrow"
Defined in: styles/annotations.ts:105
What the annotation is: always "arrow" for an arrow.
layer ​
readonlylayer:"background"|"foreground"
Defined in: styles/annotations.ts:31
Whether it is drawn behind the graph or in front of it.
Inherited from ​
opacity ​
readonlyopacity:number
Defined in: styles/annotations.ts:113
The line's opacity, 0..1.
sourceArrow ​
readonlysourceArrow:StyleArrowShape
Defined in: styles/annotations.ts:117
The arrowhead at the start.
sourceColor ​
readonlysourceColor:`#${string}`
Defined in: styles/annotations.ts:125
The arrowhead color at the start.
sourceHeadLength? ​
readonlyoptionalsourceHeadLength?:number
Defined in: styles/annotations.ts:132
How long the start's arrowhead is along the line, in the units of the points, size included; absent, the drawing program's own length for the line's width.
sourceHeadWidth? ​
readonlyoptionalsourceHeadWidth?:number
Defined in: styles/annotations.ts:134
How wide the start's arrowhead is across the line, as sourceHeadLength says.
sourceSize ​
readonlysourceSize:number
Defined in: styles/annotations.ts:121
The start's arrowhead size as a factor of the normal size.
targetArrow ​
readonlytargetArrow:StyleArrowShape
Defined in: styles/annotations.ts:119
The arrowhead at the end.
targetColor ​
readonlytargetColor:`#${string}`
Defined in: styles/annotations.ts:127
The arrowhead color at the end.
targetHeadLength? ​
readonlyoptionaltargetHeadLength?:number
Defined in: styles/annotations.ts:136
How long the end's arrowhead is along the line, as sourceHeadLength says.
targetHeadWidth? ​
readonlyoptionaltargetHeadWidth?:number
Defined in: styles/annotations.ts:138
How wide the end's arrowhead is across the line, as sourceHeadLength says.
targetSize ​
readonlytargetSize:number
Defined in: styles/annotations.ts:123
The end's arrowhead size as a factor of the normal size.
to ​
readonlyto:AnnotationPoint
Defined in: styles/annotations.ts:109
Where it ends.
width ​
readonlywidth:number
Defined in: styles/annotations.ts:115
The line width.
z ​
readonlyz:number
Defined in: styles/annotations.ts:33
Its drawing order within its layer, lowest first.