New to Kendo UI for jQueryStart a free 30-day trial

Hover.stroke

configuration

Defines the hover stroke options of the connector.

hover.stroke

String|Object
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            hover: {
                stroke: {
                    color: "red",
                    width: 3,
                    dashType: "dash"
                }
            }
        }
    }
});
</script>

Defines the hover stroke color.

Default: "Black"

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            hover: {
                stroke: {
                    color: "crimson"
                }
            }
        }
    }
});
</script>

The hover stroke dash type.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            hover: {
                stroke: {
                    color: "blue",
                    dashType: "dashDot"
                }
            }
        }
    }
});
</script>

Defines the thickness or width of the connector's stroke on hover.

Default: 1

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            hover: {
                stroke: {
                    color: "orange",
                    width: 4
                }
            }
        }
    }
});
</script>