shapeDefaults.rotation Object
(default: null)
Defines the rotation of the shape.
Example - applying a default rotation to Diagram shapes
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
layout: "layered",
shapeDefaults: {
rotation: {
angle: 25
}
},
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>
shapeDefaults.rotation.angle Number
(default: 0)
Sets the rotational angle of the shape.