title | page_title |
---|---|
Rect |
API reference for methods and fields of Kendo UI Geometry Rectangle |
A rectangle with set origin (top-left corner) and size.
<script>
var geom = kendo.geometry;
var origin = new geom.Point(10, 10);
var size = new geom.Size(20, 20);
var rect = new geom.Rect(origin, size);
</script>
<script>
var geom = kendo.geometry;
var rect = new geom.Rect([10, 10], [20, 20]);
</script>
The origin (top-left corner) of the rectangle or equivalent [x, y] array.
The size of the rectangle or an equivalent [width, height] array.
The origin (top-left corner) of the rectangle.
The size of the rectangle.
Creates a Rect instance that contains the points given as arguments.
The first point.
The second point.
Multiple arguments are accepted.
kendo.geometry.Rect
The new Rect instance.
Creates a new Rect instance that encloses the two rectangles given as arguments.
The first rectangle.
The second rectangle.
kendo.geometry.Rect
The new Rect instance.
Returns the bounding box of this rectangle after applying the specified transformation matrix.
Transformation matrix to apply.
kendo.geometry.Rect
The bounding box after applying the transformation matrix.
Gets the position of the bottom-left corner of the rectangle. This is also the rectangle origin
kendo.geometry.Point
The position of the bottom-left corner.
Gets the position of the bottom-right corner of the rectangle.
kendo.geometry.Point
The position of the bottom-right corner.
Gets the position of the center of the rectangle.
kendo.geometry.Point
The position of the center.
Creates a new instance with the same origin and size.
kendo.geometry.Rect
A new Rect instance with the same origin and size.
Compares this rectangle with another instance.
The rectangle to compare with.
Boolean
true if the origin and size is the same for both rectangles; false otherwise.
Gets the origin (top-left point) of the rectangle.
kendo.geometry.Point
The origin (top-left point).
Gets the rectangle size.
kendo.geometry.Size
The current rectangle Size.
Gets the rectangle height.
Number
The rectangle height.
Sets the origin (top-left point) of the rectangle.
The new origin Point or equivalent [x, y] array.
kendo.geometry.Rect
The current rectangle instance.
Sets the rectangle size.
The new rectangle Size or equivalent [width, height] array.
kendo.geometry.Rect
The current rectangle instance.
Gets the position of the top-left corner of the rectangle. This is also the rectangle origin
kendo.geometry.Point
The position of the top-left corner.
Gets the position of the top-right corner of the rectangle.
kendo.geometry.Point
The position of the top-right corner.
Gets the rectangle width.
Number
The rectangle width.