@graphty/graph-io / styles / ImageAnnotation
Interface: ImageAnnotation ​
Defined in: styles/annotations.ts:145
A picture placed in a box, which readImageAnnotations() reads.
Extends ​
AnnotationBase.RotatedAnnotation
Properties ​
borderColor ​
readonlyborderColor:`#${string}`
Defined in: styles/annotations.ts:159
The outline's color.
borderOpacity ​
readonlyborderOpacity:number
Defined in: styles/annotations.ts:161
The outline's opacity, 0..1 (0 draws none).
borderWidth ​
readonlyborderWidth:number
Defined in: styles/annotations.ts:163
The outline's width (0 draws none).
center ​
readonlycenter:AnnotationPoint
Defined in: styles/annotations.ts:149
The box's center.
height ​
readonlyheight:number
Defined in: styles/annotations.ts:153
The box's height.
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:"image"
Defined in: styles/annotations.ts:147
What the annotation is: always "image" for a picture.
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:157
The picture's opacity, 0..1.
rotation ​
readonlyrotation:number
Defined in: styles/annotations.ts:42
The turn in degrees, clockwise on screen.
Inherited from ​
RotatedAnnotation.rotation
url ​
readonlyurl:string
Defined in: styles/annotations.ts:155
Where the picture is, as the file names it.
width ​
readonlywidth:number
Defined in: styles/annotations.ts:151
The box's width; the picture is stretched to it.
z ​
readonlyz:number
Defined in: styles/annotations.ts:33
Its drawing order within its layer, lowest first.