Fabric.js Rect Class Complete Reference

Fabric.js is an open-source JavaScript canvas library, which provides the interactive object model built on top of the canvas element. It is also an SVG-to-canvas & canvas-to-SVG parser.

The canvas rectangle means the rectangle is movable and can be stretched according to requirement, along with facilitating the customizable option when it comes to initial stroke color, height, width, fill color, or stroke width. The complete list of Rect canvas class properties are given below:

Members:


Contact Us