blockly > utils > Rect > clone

utils.Rect.clone() method

Creates a new copy of this rectangle.

Signature:

clone(): Rect;

Returns:

Rect

A copy of this Rect.