ShapeOptions
Defines the configuration options for diagram shapes. Extends the base shape options and adds tooltip support.
Definition
Package:@progress/kendo-angular-diagrams
Properties
accessibility?
AccessibilityOptions
Defines accessibility options for the shape.
Defines the center position of the shape. Applicable for the circle shape.
Defines the default options for the shape 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.
Defines the default shapes content settings.
cornerRadius?
number
Defines the corner radius of the shape.
0
dataItem?
any
Defines the shape dataItem.
editable?
boolean | ShapeEditable
Defines the shape editable options.
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?
number
Defines the default height of shapes in the Diagram.
100
Defines the hover configuration for the shape.
id?
string
The unique identifier for a Shape. The id value is used to identify shapes in connection configurations.
minHeight?
number
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.
20
minWidth?
number
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.
20
path?
string
The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format.
radius?
number
Defines the radius of the shape. Applicable for the circle shape.
Defines the rotation of the shape.
selectable?
boolean
Specifies if Diagram shapes can be selected.
true
source?
string
The path/URL to the shape image. Applicable when the type is set to "image".
Configures the tooltip that displays when you hover over the shape.
tooltipText?
string
Sets the text content displayed in the tooltip.
Specifies the type of the Shape using any of the built-in shape type.
"rectangle"
A function that returns a visual element to render for a given shape.
any
width?
number
Defines the default width of shapes in the Diagram.
100
x?
number
Defines the x-coordinate of shapes added to the Diagram.
0
y?
number
Defines the y-coordinate of shapes added to the Diagram.
0