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;
var position = new geom.Point(20, 20);
var text = new draw.Text("Clipped Text", position, {
font: "20px Arial"
});
var clipPath = draw.Path.fromRect(new geom.Rect([25, 25], [80, 30]));
text.clip(clipPath);
var surface = draw.Surface.create($("#surface"));
surface.draw(text);
</script>
In this article