New to Kendo UI for jQueryStart a free 30-day trial

Bbox

methods

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.

<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>
Not finding the help you need?
Contact Support