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 arcGeometry = new geom.Arc([100, 100], {
        radiusX: 40,
        radiusY: 30,
        startAngle: 0,
        endAngle: 180
    });
    var arc = new draw.Arc(arcGeometry).stroke("green", 2);

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

    var bbox = arc.bbox();
    console.log("Bounding box:", bbox);
</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