bbox
Returns the bounding box of the element with transformations applied. Inherited from Element.bbox
Returns
kendo.geometry.Rect
The bounding box of the element with transformations applied.
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var rectGeometry = new geom.Rect([50, 50], [100, 100]);
var rect = new draw.Rect(rectGeometry).fill("blue");
// Get the bounding box
var bbox = rect.bbox();
console.log("Bounding box:", bbox.topLeft(), bbox.size);
var surface = draw.Surface.create($("#surface"));
surface.draw(rect);
</script>
In this article