connections.startCapString|Object
The start cap (arrow, head or decoration) of the connection.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
{ id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
],
connections: [{
from: "1",
to: "2",
startCap: {
type: "ArrowStart",
fill: {
color: "red"
},
stroke: {
color: "blue",
width: 2
}
}
}]
});
</script>
connections.startCap.fillString|Object
The connection start cap fill options or color.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
{ id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
],
connections: [{
from: "1",
to: "2",
startCap: {
type: "ArrowStart",
fill: "#ff6358"
}
}]
});
</script>
connections.startCap.fill.colorString
(default: "black")
The connection start cap fill color.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
{ id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
],
connections: [{
from: "1",
to: "2",
startCap: {
type: "ArrowStart",
fill: {
color: "#ff6358"
}
}
}]
});
</script>
connections.startCap.fill.opacity
The connection start cap fill opacity.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
{ id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
],
connections: [{
from: "1",
to: "2",
startCap: {
type: "ArrowStart",
fill: {
color: "#ff6358",
opacity: 0.7
}
}
}]
});
</script>
connections.startCap.strokeString|Object
The connection start cap stroke options or color.
Example
<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",
startCap: {
stroke: {
color: "green",
width: 3,
dashType: "dash"
}
}
}
]
});
</script>
connections.startCap.stroke.colorString
The connection start cap stroke color.
Example
<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",
startCap: {
stroke: {
color: "red"
}
}
}
]
});
</script>
connections.startCap.stroke.dashTypeString
The connection start cap stroke dash type.
The following dash types are supported:
- "dash" - A line that consists of dashes
- "dashDot" - A line that consists of a repeating pattern of dash-dot
- "dot" - A line that consists of dots
- "longDash" - A line that consists of a repeating pattern of long-dash
- "longDashDot" - A line that consists of a repeating pattern of long-dash-dot
- "longDashDotDot" - A line that consists of a repeating pattern of long-dash-dot-dot
- "solid" - A solid line
Example
<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",
startCap: {
stroke: {
dashType: "dash"
}
}
}
]
});
</script>
connections.startCap.stroke.widthNumber
The connection start cap stroke width.
Example
<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",
startCap: {
stroke: {
width: 4
}
}
}
]
});
</script>
connections.startCap.typeString
(default: "none")
The connection start cap type.
The supported values are:
- "none": no cap
- "ArrowStart": a filled arrow
- "FilledCircle": a filled circle
Example
<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",
startCap: {
type: "FilledCircle"
}
}
]
});
</script>
connections.startCap.pathString
The SVG path data for the arrow marker. Applies when the type is "ArrowEnd" or "ArrowStart".
Example - using custom SVG path for start cap
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
{ id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
],
connections: [{
from: "1",
to: "2",
startCap: {
type: "ArrowStart",
path: "M 0 0 L 10 5 L 0 10 Z"
}
}]
});
</script>
connections.startCap.anchorObject
The anchor point of the arrow marker. This is the point where the marker will be positioned relative to the line. Applies when the type is "ArrowEnd" or "ArrowStart".
Example - setting custom anchor point for start cap
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
connections: [{
startCap: {
type: "ArrowStart",
path: "M 0 0 L 10 5 L 0 10 Z",
anchor: { x: 5, y: 5 }
}
}]
});
</script>
connections.startCap.anchor.xNumber
The x-coordinate of the anchor point.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
connections: [{
startCap: {
type: "ArrowStart",
path: "M 0 0 L 10 5 L 0 10 Z",
anchor: { x: 8 }
}
}]
});
</script>
connections.startCap.anchor.yNumber
The y-coordinate of the anchor point.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
connections: [{
startCap: {
type: "ArrowStart",
path: "M 0 0 L 10 5 L 0 10 Z",
anchor: { y: 5 }
}
}]
});
</script>
connections.startCap.radiusNumber
(default: 4)
The radius of the filled circle marker. Applies when the type is "FilledCircle".
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
connections: [{
startCap: {
type: "FilledCircle",
radius: 8
}
}]
});
</script>