clippedBBox
Returns the bounding box of the element with clipping and transformations applied. Inherited from Element.clippedBBox
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var rect = new geom.Rect([10, 10], [200, 150]);
var image = new draw.Image("https://demos.telerik.com/kendo-ui/content/web/editor/tenerife.png", rect);
var clipPath = new draw.Path();
clipPath.moveTo(50, 50).lineTo(150, 50).lineTo(150, 150).lineTo(50, 150).close();
image.clip(clipPath);
var clippedBBox = image.clippedBBox();
console.log("Clipped bounding box:", clippedBBox);
var surface = draw.Surface.create($("#surface"));
surface.draw(image);
</script>
Returns
kendo.geometry.Rect
The bounding box of the element with clipping transformations applied.
In this article