connectionDefaults Object
Defines the defaults of the connections. Whenever a connection is created, the specified connectionDefaults will be used and merged with the (optional) configuration passed through the connection creation method.
Example - typical connectionDefaults
<div id="diagram"></div>
<script>
var Point = kendo.dataviz.diagram.Point;
$("#diagram").kendoDiagram({
shapes:[
{
id:"1",
content:{
text: "State 1"
},
x: 20,
y: 20
},
{
id:"2",
content: {
text: "State 2"
},
x: 160,
y: 20
},
{
id:"3",
content: {
text: "State 3"
},
x: 60,
y: 160
}
],
connections:[
{
from: new Point(100,100),
to: new Point(100,200)
},
{
from: "1",
to: "2"
}
],
connectionDefaults: {
stroke: {
color: "#979797",
width: 1
},
type:"polyline",
startCap: "FilledCircle",
endCap: "ArrowEnd"
}
});
</script>
Related Properties
- connectionDefaults.endCap
- connectionDefaults.endCap.fill
- connectionDefaults.endCap.fill.color
- connectionDefaults.endCap.fill.opacity
- connectionDefaults.endCap.stroke
- connectionDefaults.endCap.stroke.color
- connectionDefaults.endCap.stroke.dashType
- connectionDefaults.endCap.stroke.width
- connectionDefaults.endCap.type
- connectionDefaults.fromConnector
- connectionDefaults.hover
- connectionDefaults.hover.stroke
- connectionDefaults.hover.stroke.color
- connectionDefaults.selectable
- connectionDefaults.stroke
- connectionDefaults.stroke.color
- connectionDefaults.stroke.width
- connectionDefaults.toConnector
- connectionDefaults.startCap
- connectionDefaults.startCap.fill
- connectionDefaults.startCap.fill.color
- connectionDefaults.startCap.fill.opacity
- connectionDefaults.startCap.stroke
- connectionDefaults.startCap.stroke.color
- connectionDefaults.startCap.stroke.dashType
- connectionDefaults.startCap.stroke.width
- connectionDefaults.startCap.type
- connectionDefaults.type
- connectionDefaults.selection
- connectionDefaults.selection.handles
- connectionDefaults.selection.handles.fill
- connectionDefaults.selection.handles.fill.color
- connectionDefaults.selection.handles.stroke
- connectionDefaults.selection.handles.stroke.color
- connectionDefaults.selection.handles.width
- connectionDefaults.selection.handles.height
- connectionDefaults.editable
- connectionDefaults.editable.drag
- connectionDefaults.editable.remove
- connectionDefaults.editable.tools
- connectionDefaults.editable.tools.name
- connectionDefaults.content
- connectionDefaults.content.color
- connectionDefaults.content.fontFamily
- connectionDefaults.content.fontSize
- connectionDefaults.content.fontStyle
- connectionDefaults.content.fontWeight
- connectionDefaults.content.template
- connectionDefaults.content.text
- connectionDefaults.content.visual