clone

Creates a new instance with the same origin and size.

Example

<script>
var geom = kendo.geometry;
var originalRect = new geom.Rect([10, 20], [30, 40]);

// Clone the rectangle
var clonedRect = originalRect.clone();

console.log("Original equals clone:", originalRect.equals(clonedRect)); // true
console.log("Same instance:", originalRect === clonedRect); // false
</script>

Returns

kendo.geometry.Rect A new Rect instance with the same origin and size.

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