clip kendo.drawing.Path

The clipping path for this element.

The path instance will be monitored for changes. It can be replaced by calling the clip method.

Example - setting clipping path on an element

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var clipPath = new draw.Path();
    clipPath.moveTo(0, 0).lineTo(100, 100).lineTo(100, 0).close();

    var circle = new draw.Circle(new geom.Circle([100, 100], 80), {
        clip: clipPath,
        stroke: { color: "red", width: 1 }
    });

    var surface = draw.Surface.create($("#surface"));
    surface.draw(circle);
</script>
In this article