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 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 bbox = image.bbox();
    console.log("Bounding box:", bbox.origin.x, bbox.origin.y, bbox.size.width, bbox.size.height);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(image);
</script>

Returns

kendo.geometry.Rect The bounding box of the element with transformations applied.

In this article
bbox
Not finding the help you need?
Contact Support