shapeDefaults.type String
(default: "rectangle")
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
- "text": some text
Example - making all Diagram shapes circles by default
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
layout: "layered",
shapeDefaults: {
type: "circle"
},
shapes: [{
id: "1",
content: {
text: "Monday"
}
}, {
id: "2",
content: {
text: "Tuesday"
}
}, {
id: "3",
content: {
text: "Wednesday"
}
}],
connections: [{
from: "1",
to: "2"
},{
from: "2",
to: "3"
}],
connectionDefaults: {
endCap: "ArrowEnd"
}
});
</script>