clipkendo.drawing.Path

The element clipping path. Inherited from Element.clip

Example

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

    // Create a circle
    var circleGeometry = new geom.Circle([100, 100], 50);
    var circle = new draw.Circle(circleGeometry).stroke("red", 2).fill("lightblue");

    // Create a clipping path (rectangle)
    var clipPath = new draw.Path()
        .moveTo(75, 75)
        .lineTo(125, 75)
        .lineTo(125, 125)
        .lineTo(75, 125)
        .close();

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

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