Kendo.Mvc.UI.DiagramShape

Kendo UI DiagramShape class

Properties

Connectors

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.

ConnectorDefaults

Defines default options for all connectors belonging to a given shape.

Content

Defines the shapes content settings.

Editable

Defines the shape editable options.

Fill

Defines the background fill options of the shape.

Height

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

Hover

Defines the hover configuration.

Id

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.

MinHeight

Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.

MinWidth

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.

Path

The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (http://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").

Rotation

Specifies a rotation angle for the shape.

Source

The source of the shape image. Applicable when the type is set to "image".

Stroke

Defines the shape border stroke configuration.

Type

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.

Visual

A function returning a visual element to render for this shape. For more information, refer to visual.

Width

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

X

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.

Y

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

Methods

Serialize

Serialize current instance to Dictionary

SerializeSettings

Serialize current instance to Dictionary

In this article
Not finding the help you need?