bbox
Returns the bounding box of the element with transformations applied. Inherited from Element.bbox
Example
<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>
Returns
kendo.geometry.Rect
The bounding box of the element with transformations applied.
In this article