ShapeOptions
Defines the shape options.
Name | Type | Default | Description |
---|---|---|---|
center? |
|
Defines the center position of the shape. Applicable for the circle shape. | |
connectorDefaults? |
|
Defines the default options for the shape connectors. | |
connectors? |
|
Defines the connectors the shape owns. A connector is the point in the shape where a connection between this shape and another one can originate from or end. You can define your own custom connectors or use the predefined types. | |
content? |
|
Defines the default shapes content settings. | |
cornerRadius? |
|
|
Defines the corner radius of the shape. |
dataItem? |
|
Defines the shape dataItem. | |
editable? |
|
Defines the shape editable options. | |
fill? |
|
Defines the fill options of the shape. Use these settings to apply a single-color or a gradient background to all shapes in the Diagram. | |
height? |
|
|
Defines the default height of shapes in the Diagram. |
hover? |
|
Defines the hover configuration for the shape. | |
id? |
|
The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. | |
minHeight? |
|
|
Defines the minimum height the shape can have. Use this setting to apply a lower limit to the height of shapes when users resize them. |
minWidth? |
|
|
Defines the minimum width the shape can have. Use this setting to apply a lower limit to the width of shapes when users resize them. |
path? |
|
The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format. | |
radius? |
|
Defines the radius of the shape. Applicable for the circle shape. | |
rotation? |
|
Defines the rotation of the shape. | |
selectable? |
|
|
Specifies if Diagram shapes can be selected. |
source? |
|
The path/URL to the shape image. Applicable when the type is set to "image". | |
stroke? |
|
Defines the configuration of the border around Diagram shapes. | |
type? |
|
|
Specifies the type of the Shape using any of the built-in shape type. |
visual? |
|
A function that returns a visual element to render for a given shape. | |
width? |
|
|
Defines the default width of shapes in the Diagram. |
x? |
|
|
Defines the x-coordinate of shapes added to the Diagram. |
y? |
|
|
Defines the y-coordinate of shapes added to the Diagram. |