topLeft
Gets the position of the top-left corner of the rectangle. This is also the rectangle origin
Example
<script>
var geom = kendo.geometry;
var rect = new geom.Rect([10, 20], [30, 40]);
// Get top-left corner
var topLeft = rect.topLeft();
console.log("Top-left x:", topLeft.x); // 10
console.log("Top-left y:", topLeft.y); // 20
console.log("Same as origin:", topLeft.equals(rect.origin)); // true
</script>
Returns
kendo.geometry.Point
The position of the top-left corner.
In this article