connectionDefaults.hover Object
Defines the default styling that is applied when the user hovers over a connection.
Example - turning the connection red on hover
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes:[
{
id:"1",
content:{
text: "State 1"
},
x: 20,
y: 20
},
{
id:"2",
content: {
text: "State 2"
},
x: 200,
y: 20
}
],
connections:[
{
from: "1",
to: "2"
}
],
connectionDefaults: {
hover: {
stroke: {color: "red"}
},
stroke: {
color: "#979797",
width: 4
},
type: "polyline",
startCap: "FilledCircle",
endCap: "ArrowEnd"
}
});
</script>
connectionDefaults.hover.stroke Object
Defines the default hover configuration of the connection lines.
connectionDefaults.hover.stroke.color String
(default: "#70CAFF")
Defines the highlight color when the mouse pointer hovers over connections.