topRight
Gets the position of the top-right corner of the rectangle.
Example
<script>
var geom = kendo.geometry;
var rect = new geom.Rect([10, 20], [30, 40]);
// Get top-right corner
var topRight = rect.topRight();
console.log("Top-right x:", topRight.x); // 40 (10 + 30)
console.log("Top-right y:", topRight.y); // 20
</script>
Returns
kendo.geometry.Point
The position of the top-right corner.
In this article