DiagramShapeBuilder

Methods

Type(Kendo.Mvc.UI.DiagramShapeType)

Specifies the type of the Diagram Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text.

Parameters

value - DiagramShapeType

The value for Type

RETURNS

Returns the current DiagramShapeBuilder instance.

Type(Kendo.Mvc.UI.FlowchartShapeType)

Specifies the type of the Workflow Shape type using any of the built-in shape types. 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. or ManualOperation:Manual tasks requiring human intervention.

Parameters

value - FlowchartShapeType

The value for Type

RETURNS

Returns the current DiagramShapeDefaultsSettings instance.

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.

RETURNS

Returns the current instance of DiagramShapeBuilder .

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.

RETURNS

Returns the current instance of DiagramShapeBuilder .

Content(System.Action)

Defines the shapes content settings.

Parameters

configurator - System.Action<DiagramShapeContentSettingsBuilder>

The configurator for the content setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

Editable(System.Action)

Defines the shape editable options.

Parameters

configurator - System.Action<DiagramShapeEditableSettingsBuilder>

The configurator for the editable setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

Editable(System.Boolean)

Defines the shape editable options.

Parameters

enabled - System.Boolean

Enables or disables the editable option.

RETURNS

Returns the current instance of DiagramShapeEditableSettingsBuilder .

Fill(System.Action)

Defines the background fill options of the shape.

Parameters

configurator - System.Action<DiagramShapeFillSettingsBuilder>

The configurator for the fill setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

Height(System.Double)

Defines the height of the shape when added to the Diagram.

Parameters

value - System.Double

The value for Height

RETURNS

Returns the current DiagramShapeBuilder instance.

Hover(System.Action)

Defines the hover configuration.

Parameters

configurator - System.Action<DiagramShapeHoverSettingsBuilder>

The configurator for the hover setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

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

RETURNS

Returns the current DiagramShapeBuilder instance.

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

RETURNS

Returns the current DiagramShapeBuilder instance.

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

RETURNS

Returns the current DiagramShapeBuilder instance.

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

RETURNS

Returns the current DiagramShapeBuilder instance.

Rotation(System.Action)

Specifies a rotation angle for the shape.

Parameters

configurator - System.Action<DiagramShapeRotationSettingsBuilder>

The configurator for the rotation setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

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

RETURNS

Returns the current DiagramShapeBuilder instance.

Stroke(System.Action)

Defines the shape border stroke configuration.

Parameters

configurator - System.Action<DiagramShapeStrokeSettingsBuilder>

The configurator for the stroke setting.

RETURNS

Returns the current instance of DiagramShapeBuilder .

Type(System.String)

Specifies the type of the Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: 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. or ManualOperation:Manual tasks requiring human intervention..

Parameters

value - System.String

The value for Type

RETURNS

Returns the current DiagramShapeBuilder instance.

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.

RETURNS

Returns the current DiagramShapeBuilder instance.

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.

RETURNS

Returns the current DiagramShapeBuilder instance.

Width(System.Double)

Defines the width of the shape when added to the Diagram.

Parameters

value - System.Double

The value for Width

RETURNS

Returns the current DiagramShapeBuilder instance.

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

RETURNS

Returns the current DiagramShapeBuilder instance.

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

RETURNS

Returns the current DiagramShapeBuilder instance.