DiagramShapeBuilder
Methods
Connectors(System.Action)
Defines 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.
Parameters
configurator - System.Action<DiagramShapeConnectorFactory>
The configurator for the connectors setting.
ConnectorDefaults(System.Action)
Defines default options for all connectors belonging to a given shape.
Parameters
configurator - System.Action<DiagramShapeConnectorDefaultsSettingsBuilder>
The configurator for the connectordefaults setting.
Content(System.Action)
Defines the shapes content settings.
Parameters
configurator - System.Action<DiagramShapeContentSettingsBuilder>
The configurator for the content setting.
Editable(System.Action)
Defines the shape editable options.
Parameters
configurator - System.Action<DiagramShapeEditableSettingsBuilder>
The configurator for the editable setting.
Editable(System.Boolean)
Defines the shape editable options.
Parameters
enabled - System.Boolean
Enables or disables the editable option.
Fill(System.Action)
Defines the background fill options of the shape.
Parameters
configurator - System.Action<DiagramShapeFillSettingsBuilder>
The configurator for the fill setting.
Height(System.Double)
Defines the height of the shape when added to the Diagram.
Parameters
value - System.Double
The value for Height
Hover(System.Action)
Defines the hover configuration.
Parameters
configurator - System.Action<DiagramShapeHoverSettingsBuilder>
The configurator for the hover setting.
Id(System.String)
The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. The connection to and from properties usually point to shape id values.
Parameters
value - System.String
The value for Id
MinHeight(System.Double)
Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.
Parameters
value - System.Double
The value for MinHeight
MinWidth(System.Double)
Defines 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.
Parameters
value - System.Double
The value for MinWidth
Path(System.String)
The 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.").
Parameters
value - System.String
The value for Path
Rotation(System.Action)
Specifies a rotation angle for the shape.
Parameters
configurator - System.Action<DiagramShapeRotationSettingsBuilder>
The configurator for the rotation setting.
Source(System.String)
The source of the shape image. Applicable when the type is set to "image".
Parameters
value - System.String
The value for Source
Stroke(System.Action)
Defines the shape border stroke configuration.
Parameters
configurator - System.Action<DiagramShapeStrokeSettingsBuilder>
The configurator for the stroke setting.
Type(System.String)
Specifies the type of the Shape using any of the built-in shape type. "rectangle" - The default option; "circle" - A circle/ellipse or "image" - An image.
Parameters
value - System.String
The value for Type
Visual(System.String)
A function returning a visual element to render for this shape. For more information, refer to visual.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Visual(System.Func)
A function returning a visual element to render for this shape. For more information, refer to visual.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Width(System.Double)
Defines the width of the shape when added to the Diagram.
Parameters
value - System.Double
The value for Width
X(System.Double)
Defines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.
Parameters
value - System.Double
The value for X
Y(System.Double)
Defines the y-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout. You can see an example at shapes.x
Parameters
value - System.Double
The value for Y