bbox
Returns the bounding box of the element with transformations applied. Inherited from Element.bbox
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var path = new draw.Path()
.moveTo(50, 50)
.lineTo(200, 100)
.lineTo(150, 200)
.close();
var bbox = path.bbox();
console.log("Bounding box:", bbox);
console.log("Top-left:", bbox.topLeft());
console.log("Size:", bbox.size);
var surface = draw.Surface.create($("#surface"));
surface.draw(path);
</script>
Returns
kendo.geometry.Rect
The bounding box of the element with transformations applied.
In this article