shapes.connectorDefaults Object
Defines default options for all connectors belonging to a given shape.
Example - customizing the connectors of a Diagram shape
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [{
id: "1",
x: 20,
y: 40,
content: {
text: "Monday"
},
connectorDefaults: {
width: 10,
height: 10,
fill: {
color: "blue",
opacity: 0.5
},
stroke: {
width: 2,
color: "lightgreen"
},
hover: {
fill: {
color: "yellow"
},
stroke: {
color: "lightgreen"
}
}
}
}, {
id: "2",
x: 200,
y: 40,
content: {
text: "Tuesday"
}
}, {
id: "3",
x: 380,
y: 200,
content: {
text: "Wednesday"
}
}],
connections: [{
from: "1",
to: "2"
},{
from: "2",
to: "3"
}],
connectionDefaults: {
endCap: "ArrowEnd"
}
});
</script>
Related Properties
- shapes.connectorDefaults.width
- shapes.connectorDefaults.height
- shapes.connectorDefaults.hover
- shapes.connectorDefaults.hover.fill
- shapes.connectorDefaults.hover.fill.color
- shapes.connectorDefaults.hover.fill.opacity
- shapes.connectorDefaults.hover.stroke
- shapes.connectorDefaults.hover.stroke.color
- shapes.connectorDefaults.hover.stroke.dashType
- shapes.connectorDefaults.hover.stroke.width
- shapes.connectorDefaults.fill
- shapes.connectorDefaults.fill.color
- shapes.connectorDefaults.fill.opacity
- shapes.connectorDefaults.stroke
- shapes.connectorDefaults.stroke.color
- shapes.connectorDefaults.stroke.dashType
- shapes.connectorDefaults.stroke.width