width

Gets the rectangle width.

Example

<script>
var geom = kendo.geometry;
var rect = new geom.Rect([10, 20], [25, 35]);

// Get the width
var width = rect.width();

console.log("Rectangle width:", width); // 25
console.log("Same as size width:", width === rect.size.width); // true
</script>

Returns

Number The rectangle width.

In this article
width
Not finding the help you need?
Contact Support