Skip to content

@graphty/graph-io / styles / ImageAnnotation

Interface: ImageAnnotation ​

Defined in: styles/annotations.ts:145

A picture placed in a box, which readImageAnnotations() reads.

Extends ​

Properties ​

borderColor ​

readonly borderColor: `#${string}`

Defined in: styles/annotations.ts:159

The outline's color.


borderOpacity ​

readonly borderOpacity: number

Defined in: styles/annotations.ts:161

The outline's opacity, 0..1 (0 draws none).


borderWidth ​

readonly borderWidth: number

Defined in: styles/annotations.ts:163

The outline's width (0 draws none).


center ​

readonly center: AnnotationPoint

Defined in: styles/annotations.ts:149

The box's center.


height ​

readonly height: number

Defined in: styles/annotations.ts:153

The box's height.


id ​

readonly id: string

Defined in: styles/annotations.ts:29

The file's id for the annotation, or its index when the file gives none.

Inherited from ​

AnnotationBase.id


kind ​

readonly kind: "image"

Defined in: styles/annotations.ts:147

What the annotation is: always "image" for a picture.


layer ​

readonly layer: "background" | "foreground"

Defined in: styles/annotations.ts:31

Whether it is drawn behind the graph or in front of it.

Inherited from ​

AnnotationBase.layer


opacity ​

readonly opacity: number

Defined in: styles/annotations.ts:157

The picture's opacity, 0..1.


rotation ​

readonly rotation: number

Defined in: styles/annotations.ts:42

The turn in degrees, clockwise on screen.

Inherited from ​

RotatedAnnotation.rotation


url ​

readonly url: string

Defined in: styles/annotations.ts:155

Where the picture is, as the file names it.


width ​

readonly width: number

Defined in: styles/annotations.ts:151

The box's width; the picture is stretched to it.


z ​

readonly z: number

Defined in: styles/annotations.ts:33

Its drawing order within its layer, lowest first.

Inherited from ​

AnnotationBase.z