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"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var position = new geom.Point(10, 10);
    var text = new draw.Text("Sample text", position, {
        font: "16px Arial"
    });

    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);

    var bbox = text.bbox();
    console.log("Text bounding box:", bbox);
</script>
Not finding the help you need?
Contact Support