clipkendo.drawing.Path

The group clipping path. Inherited from Element.clip

Example

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var group = new draw.Group();

    var pathA = new draw.Path().moveTo(0, 0).lineTo(100, 100);
    var pathB = new draw.Path().moveTo(0, 100).lineTo(100, 0);
    group.append(pathA, pathB);

    var clipPath = new draw.Path()
        .moveTo(25, 25)
        .lineTo(75, 25)
        .lineTo(75, 75)
        .lineTo(25, 75)
        .close();

    group.clip = clipPath;

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