select

    Selects or deselects the shape.

    Parameters

    value Boolean

    Use 'true' to select the shape or 'false' to deselect it.

    Example - selecting the shape

    Open In Dojo
    <div id="diagram"></div>
    <script>
      var Shape = kendo.dataviz.diagram.Shape;
    
      $("#diagram").kendoDiagram();
      var diagram = $("#diagram").data("kendoDiagram");
    
      var shape = new Shape({
        id: 1,
        x: 40,
        y: 40,
        fill: "#c0f0fc",
        connectorDefaults: {
          width: 10,
          height: 10,
          fill: {
            color: "blue",
            opacity: 0.5
          },
          stroke: {
            width: 2,
            color: "lightgreen"
          },
          hover: {
            fill: {
              color: "yellow"
            },
            stroke: {
              color: "lightgreen"
            }
          }
        }
      });
      diagram.addShape(shape);
    
      shape.select(true);
    </script>
    In this article