Fabric.js Itext scaleX Property Last Updated : 25 Jul, 2021 Comments Improve Suggest changes Like Article Like Report Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the class of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirement. In this article, we will be using scaleX property. Approach: First import the fabric.js library. After importing the library, create a canvas block in the body tag which will contain the Itext. After this, initialize an instance of Canvas and Itext class provided by Fabric.JS and use the scaleX property. Syntax: fabric.Itext (Itext , { scaleX: number }); Parameters: This function takes a single parameter as mentioned above and described below: scaleX: This parameter takes a number value. Example: This example uses FabricJS to set the scaleX property of the canvas Itext as shown in the below example: HTML <!DOCTYPE html> <html> <head> <!-- FabricJS CDN --> <script src= "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"> </script> </head> <body> <div style="text-align: center;width: 400px;"> <h1 style="color: green;"> GeeksforGeeks </h1> <b> Fabric.js | Itext scaleX Property </b> </div> <div style="text-align: center;"> <canvas id="canvas" width="400" height="200" style="border:1px solid green;"> </canvas> </div> <script> var canvas = new fabric.Canvas("canvas"); var geek = new fabric.IText('GeeksforGeeks', { scaleX: 1.6 }); console.log(geek.willDrawShadow()) canvas.add(geek); canvas.centerObject(geek); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article Fabric.js Image scaleX Property D dheerchanana2002 Follow Improve Article Tags : JavaScript JavaScript-Properties Fabric.js Similar Reads Fabric.js Itext scaleY Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the class of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirement. In this article, we will be using scaleY property. 2 min read Fabric.js Itext skewX Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the class of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirement. In this article, we will be using the skewX propert 2 min read Fabric.js Image scaleX Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Image is one of the class of fabric.js that is used to create Image instances. The Image in Fabric.js is movable and can be stretched according to requirement. In this article, we will be using the scaleX property to set 2 min read Fabric.js Itext visible Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the classes of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirement. In this article, we will be using the visible pro 2 min read Fabric.js Image scaleY Property Fabric.js is a JavaScript HTML5 canvas library that is used to work with canvas. The canvas image is one of the class of fabric.js that is used to create image instances. The canvas image means the Image is movable and can be stretched according to requirement.In this article we will be using, scale 2 min read Fabric.js Itext type Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the classes of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirements. In this article, we will be using type property 2 min read Like