@graphty/graph-io / styles / ShapeAnnotation
Interface: ShapeAnnotation ​
Defined in: styles/annotations.ts:49
A filled, outlined shape.
Extends ​
AnnotationBase.RotatedAnnotation
Properties ​
borderColor ​
readonlyborderColor:`#${string}`
Defined in: styles/annotations.ts:65
The outline's color.
borderOpacity ​
readonlyborderOpacity:number
Defined in: styles/annotations.ts:67
The outline's opacity, 0..1.
borderWidth ​
readonlyborderWidth:number
Defined in: styles/annotations.ts:69
The outline's width.
center ​
readonlycenter:AnnotationPoint
Defined in: styles/annotations.ts:53
The box's center.
fill ​
readonlyfill:`#${string}`|null
Defined in: styles/annotations.ts:61
The fill color, or null for none.
fillOpacity ​
readonlyfillOpacity:number
Defined in: styles/annotations.ts:63
The fill's opacity, 0..1.
height ​
readonlyheight:number
Defined in: styles/annotations.ts:57
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:"shape"
Defined in: styles/annotations.ts:51
What the annotation is: always "shape" for a shape.
layer ​
readonlylayer:"background"|"foreground"
Defined in: styles/annotations.ts:31
Whether it is drawn behind the graph or in front of it.
Inherited from ​
rotation ​
readonlyrotation:number
Defined in: styles/annotations.ts:42
The turn in degrees, clockwise on screen.
Inherited from ​
RotatedAnnotation.rotation
shape ​
readonlyshape:StyleNodeShape
Defined in: styles/annotations.ts:59
The outline's shape.
width ​
readonlywidth:number
Defined in: styles/annotations.ts:55
The box's width.
z ​
readonlyz:number
Defined in: styles/annotations.ts:33
Its drawing order within its layer, lowest first.