Skip to main content

Ruler

A straight line ruler

Extends Item

TYPE
object

Properties

NAMETYPEDESCRIPTION
type"RULER"The type of item
startPositionVector2The start position of the ruler
endPositionVector2The end position of the ruler
measurementstringThe value to display on the ruler
styleRulerStyleThe style of the ruler

Type Definitions

RulerStyle

TYPE
object

Properties

NAMETYPEDESCRIPTION
variant"FILLED" | "DASHED"The visual style of the ruler background