ShapeSettings

23 Sep 20251 minute to read

Interface for ShapeSettings in the Image Editor.

Properties

arrowHead ArrowheadType

Returns the head type of an arrow.

arrowTail ArrowheadType

Returns the tail type of an arrow.

borderRadius number

Returns the border radius of the rectangle annotation.

color string

Returns the font color of the text.

degree number

Returns the degree of rotated shape.

endX number

Returns the end x position of line and arrow.

endY number

Returns the end y position of line and arrow.

fillColor string

Returns the fill color of the shape.

fontFamily string

Returns the font family of the text.

fontSize number

Returns the font size of the text.

fontStyle string[]

Returns the font style of the text.

height number

Returns the height of the shape.

id string

Returns the id of the shape.

imageData string|ImageData

Returns the imageData of the image annotation.

index number

Returns the order of the annotation in which it is placed on the image.

length number

Returns the length of the line or arrow shape.

opacity number

Returns the opacity value of the shape.

points Point[]

Returns the points collection of freehand drawing and path annotation.

radius number

Returns the radius of the ellipse shape.

radiusX number

Returns the width radius of the ellipse shape.

radiusY number

Returns the height radius of the ellipse shape.

startX number

Returns the start x position of the shape.

startY number

Returns the start y position of the shape.

strokeColor string

Returns the stroke color of the shape.

strokeWidth number

Returns the stroke width of the shape.

text string

Returns the text content of the text.

transformCollection TransformationCollection[]

Returns the transform collection of the annotations.

type ShapeType

Returns the type of the shape.

width number

Returns the width of the shape.