Shapes
configurationDefines the shape options.
shapes
Arrayshapes.accessibility
ObjectDefines accessibility options for the shape.
shapes.center
ObjectThe center point of the shape.
shapes.connectorDefaults
ObjectDefines default options for all connectors belonging to a given shape.
shapes.connectors
ArrayDefines the connectors available in the shape. A connector is the point in the shape where a connection between this shape and another one can originate from or end.
shapes.content
ObjectDefines the shapes content settings.
shapes.cornerRadius
NumberDefines the corner radius of the shape.
Default: 0
shapes.dataItem
ObjectThe data item associated with the shape.
shapes.editable
Boolean|ObjectDefines the shape editable options.
Default: true
shapes.fill
String|ObjectDefines the background fill options of the shape.
shapes.height
NumberDefines the height of the shape when added to the Diagram.
Default: 100
shapes.hover
ObjectDefines the hover configuration.
shapes.id
Stringshapes.minHeight
NumberDefines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.
Default: 20
shapes.minWidth
NumberDefines the minimum width the shape should have, that is, it cannot be resized to a value smaller than the given one. See example at shapes.minHeight.
Default: 20
shapes.path
StringThe path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (https://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").
shapes.radius
NumberThe radius of circular shapes.
shapes.rotation
ObjectSpecifies a rotation angle for the shape.
shapes.selectable
BooleanSpecifies if the shape can be selected.
Default: true
shapes.source
StringThe source of the shape image. Applicable when the type is set to "image".
shapes.stroke
ObjectDefines the shape border stroke configuration.
shapes.type
StringSpecifies the type of the Shape using any of the built-in shape type.
rectangle: this is the default optioncircle: a circle/ellipseimage: an imagetext: some text
Or common workflow shapes as:
Terminator: Start and end points of the workflow.Process: Standard processing steps or actions.Decision: Decision points with Yes/No or True/False branches.Document: Document creation or data output.PredefinedProcess: Subroutines or predefined operations.Database:Database operations or data storage.Delay:Wait periods or time-based operations.ManualOperation:Manual tasks requiring human intervention.
Default: "rectangle"
shapes.visual
FunctionA function returning a visual element to render for this shape.
The following primitives can be used to construct a composite visual:
The origin of the visual bounding box has to be
(0, 0). If you have a complex path which coordinates cannot be easily adjusted, then position the element as demonstrated in this example.
shapes.width
NumberDefines the width of the shape when added to the Diagram.
Default: 100
shapes.x
NumberDefines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.
Default: 0