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 in Fabric.js can be used as a wrapper for the <canvas> elements & is responsible to manage all the fabric objects that belong to a particular canvas. It accepts the id of the element & returns an instance of fabric. Canvas. The complete list of canvas properties are given below:
Members:
- Fabric.js Canvas backgroundColor Property
- Fabric.js Canvas backgroundImage Property
- Fabric.js Canvas containerClass Property
- Fabric.js Canvas defaultCursor Property
- Fabric.js Canvas selection Property