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

Returns the bounding box of the element with clipping and transformations applied. Inherited from Element.clippedBBox

Returns:kendo.geometry.Rect

The bounding box of the element with clipping transformations applied.

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var circleGeometry = new geom.Circle([100, 100], 40);
    var circle = new draw.Circle(circleGeometry).stroke("red", 2).fill("pink");

    // Create a clipping path
    var clipPath = new draw.Path()
        .moveTo(80, 80)
        .lineTo(120, 80)
        .lineTo(120, 120)
        .lineTo(80, 120)
        .close();

    circle.clip(clipPath);

    // Get the clipped bounding box
    var clippedBBox = circle.clippedBBox();
    console.log("Clipped bounding box:", clippedBBox);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(circle);
</script>
Not finding the help you need?
Contact Support