Skip to main content

ShapeComponentProps

Props for the ShapeComponent.

Properties

labelColor?

optional labelColor: string

Color for the label. Defaults to #000000.


labelFillRatio?

optional labelFillRatio: number

When using a multiline label, defines the maximum width of any given line.


labelProperty?

optional labelProperty: string

Name of the property containing the object's label. Defaults to "label".


labelStrokeWidth?

optional labelStrokeWidth: number

Stroke width for the label text.


multilineLabels?

optional multilineLabels: boolean

Defaults to true - the label will be drawn across multiple lines.


obj

obj: ObjectData

Backing data for the vertex


showLabels?

optional showLabels: boolean

Whether or not to show labels Defaults to false.