Open In App

Fabric.js TextBox Class Complete Reference

Last Updated : 07 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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 Textbox class in Fabric.js allows to resize the text rectangle and wraps lines automatically. The Y scaling is locked in the Textboxes, only width can be changed. The height can be adjusted according to the wrapping of lines automatically. The list of complete Textbox canvas class properties are given below:

Members:



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads