Skip to main content

Line

A straight line between two points

Extends Item

TYPE
object

Properties

NAMETYPEDESCRIPTION
type"LINE"The type of item
startPositionVector2The start position of the line
endPositionVector2The end position of the line
styleLineStyleThe style of the curve

Type Definitions

LineStyle

TYPE
object

Properties

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