Props for the ShapeComponent.
Backing data for the vertex. Required.
Shape library to use to render the shape. Required. The type value in obj will be used to find the appropriate SVG to render.
type
obj
If true, a label will be written on the shape (using an SVG text element)
The name of the property that identifies some vertex's label. Defaults to "label".
Optional stroke width to use for labels. Defaults to "0.25px".
Props for the ShapeComponent.
Param: obj
Backing data for the vertex. Required.
Param: shapeLibrary
Shape library to use to render the shape. Required. The
type
value inobj
will be used to find the appropriate SVG to render.Param: showLabels
If true, a label will be written on the shape (using an SVG text element)
Param: labelProperty
The name of the property that identifies some vertex's label. Defaults to "label".
Param: labelStrokeWidth
Optional stroke width to use for labels. Defaults to "0.25px".