clippedBBox
Returns the bounding box of the element with clipping and transformations applied. Inherited from Element.clippedBBox
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var position = new geom.Point(10, 10);
var text = new draw.Text("Clipped text", position, {
font: "16px Arial"
});
var clipPath = draw.Path.fromRect(new geom.Rect([15, 15], [50, 20]));
text.clip(clipPath);
var surface = draw.Surface.create($("#surface"));
surface.draw(text);
var clippedBBox = text.clippedBBox();
console.log("Clipped bounding box:", clippedBBox);
</script>
Returns
kendo.geometry.Rect
The bounding box of the element with clipping transformations applied.
In this article