Canvas implementation of the Rect class.
CanvasRect is not intended to be used directly. Instead, use the Rect class.
If the browser lacks SVG capabilities but has
Canvas capabilities, the Rect
class will point to the CanvasRect class.
Draws the shape.
Indicates the type of shape