shapeDefaultsObject

Defines the default options that will be applied to all shapes in the Diagram.

Example

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        width: 120,
        height: 60,
        fill: "lightblue",
        stroke: {
            color: "navy",
            width: 2
        }
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
        { id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
    ],
    connections: [
        { from: "1", to: "2" }
    ]
});
</script>

Related Properties

In this article
shapeDefaultsRelated Properties
Not finding the help you need?
Contact Support