clipkendo.drawing.Path
The element clipping path. Inherited from Element.clip
Example - setting clip path in configuration
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
// Create a clipping path
var clipPath = new draw.Path()
.moveTo(50, 50).lineTo(200, 50).lineTo(200, 200).lineTo(50, 200).close();
var multiPath = new draw.MultiPath({
clip: clipPath,
fill: { color: "red" }
});
multiPath.moveTo(0, 0).lineTo(300, 0).lineTo(300, 300).lineTo(0, 300).close();
var surface = draw.Surface.create($("#surface"));
surface.draw(multiPath);
</script>
In this article