shapes.connectors Array
Defines the connectors available in the shape. A connector is the point in the shape where a connection between this shape and another one can originate from or end.
Example - limiting the available connectors in a shape
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [{
id: "1",
x: 20,
y: 40,
content: {
text: "Monday"
},
connectors: [{name: "top", width: 20, height: 20}, {name: "right", width: 10, height: 10}]
}, {
id: "2",
x: 200,
y: 40,
content: {
text: "Tuesday"
}
}, {
id: "3",
x: 380,
y: 200,
content: {
text: "Wednesday"
}
}],
connections: [{
from: "1",
to: "2",
fromConnector: "top"
},{
from: "2",
to: "3"
}],
connectionDefaults: {
endCap: "ArrowEnd"
}
});
</script>
Related Properties
- shapes.connectors.description
- shapes.connectors.name
- shapes.connectors.position
- shapes.connectors.width
- shapes.connectors.height
- shapes.connectors.hover
- shapes.connectors.hover.fill
- shapes.connectors.hover.fill.color
- shapes.connectors.hover.fill.opacity
- shapes.connectors.hover.stroke
- shapes.connectors.hover.stroke.color
- shapes.connectors.hover.stroke.dashType
- shapes.connectors.hover.stroke.width
- shapes.connectors.fill
- shapes.connectors.fill.color
- shapes.connectors.fill.opacity
- shapes.connectors.stroke
- shapes.connectors.stroke.color
- shapes.connectors.stroke.dashType
- shapes.connectors.stroke.width