Skip to main content

Shape

A circle, rectangle, triangle or hexagon

Extends Item

TYPE
object

Properties

NAMETYPEDESCRIPTION
type"SHAPE"The type of item
widthnumberThe width of the shape
heightnumberThe height of the shape
shapeType"RECTANGLE" | "CIRCLE" | "TRIANGLE" | "HEXAGON"The type of shape
styleShapeStyleThe style of the shape

Type Definitions

ShapeStyle

TYPE
object

Properties

NAMETYPEDESCRIPTION
fillColorstringThe fill color of the shape
fillOpacitynumberThe fill opacity of the shape between 0 and 1
strokeColorstringThe stroke color of the shape
strokeOpacitynumberThe stroke opacity of the shape between 0 and 1
strokeWidthnumberThe stroke width of the shape in pixels
strokeDashnumber[]The pattern of the stroke dash