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

Clip

methods

Gets or sets the element clipping path. Inherited from Element.clip

Parameters:clipkendo.drawing.Path

The element clipping path.

Returns:kendo.drawing.Path

The current element clipping path.

<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
    var draw = kendo.drawing;

    var path = new draw.Path()
        .moveTo(50, 50)
        .lineTo(200, 50)
        .lineTo(200, 200)
        .lineTo(50, 200)
        .close();

    // Create a circular clipping path
    var clipPath = new draw.Path()
        .arc(125, 125, 75, 0, 360)
        .close();

    // Apply the clipping path
    path.clip(clipPath);

    console.log("Current clip path:", path.clip());

    var surface = draw.Surface.create($("#surface"));
    surface.draw(path);
</script>
Not finding the help you need?
Contact Support