Rahul Gurung

Rahul Gurung

490 Articles Published

Articles by Rahul Gurung

Page 25 of 49

How to lock the vertical skewing of Rectangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 192 Views

In this tutorial, we are going to learn how to lock the vertical skewing of a Rectangle using FabricJS. Just as we can specify the position, colour, opacity and dimension of a rectangle object in the canvas, we can also specify whether we want to stop skewing an object vertically. This can be done by using the lockSkewingY property. Syntax new fabric.Rect({ lockSkewingY : Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter, properties such as colour, cursor, stroke ...

Read More

How to remove current object shadow in the URL string of IText object using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 279 Views

In this tutorial, we are going to learn about how to remove current object shadow in the URL string of IText object using FabricJS. The IText class was introduced in FabricJS version 1.4, extends fabric.Text and is used to create IText instances. An IText instance gives us the freedom to select, cut, paste or add new text without additional configurations. There are also various supported key combinations and mouse/touch combinations which make text interactive which are not provided in Text. Textbox, however, which is based on IText allows us to resize the text rectangle and wraps lines automatically. This ...

Read More

How to set the angle of skew on the X-axis of a Circle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 288 Views

In this tutorial, we are going to learn how to set the angle of skew on X-axis of a Circle using FabricJS. Circle is one of the various shapes provided by FabricJS. In order to create a circle, we will create an instance of fabric.Circle class and add it to the canvas. Our circle object can be customized in various ways like changing its dimensions, adding a background color or by changing the angle of skew on X-axis. We can do this by using the skewX property. Syntax new fabric.Circle({ skewX : Number }: Object) ...

Read More

How to lock the vertical scaling of Triangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 207 Views

In this tutorial, we are going to learn how to lock the vertical scaling of a Triangle using FabricJS. Just as we can specify the position, colour, opacity and dimension of a triangle object in the canvas, we can also specify whether we want to stop scaling an object vertically. This can be done by using the lockScalingY property. Syntax new fabric.Triangle({ lockScalingY : Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our triangle. Using this parameter, ...

Read More

How to set a multiplier to scale by in the URL string of IText object using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 511 Views

In this tutorial, we are going to learn about how to set a multiplier to scale by in the URL string of IText object using FabricJS. The IText class was introduced in FabricJS version 1.4, extends fabric.Text and is used to create IText instances. An IText instance gives us the freedom to select, cut, paste or add new text without additional configurations. There are also various supported key combinations and mouse/touch combinations which make text interactive which are not provided in Text. Textbox, however, which is based on IText allows us to resize the text rectangle and wraps lines ...

Read More

How to set Image objects properties from options using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 880 Views

In this tutorial, we are going to learn how to set Image objects properties from options using FabricJS. We can create an Image object by creating an instance of fabric.Image. Since it is one of the basic elements of FabricJS, we can also easily customize it by applying properties like angle, opacity etc. In order to set Image objects properties from options, we use the setOptions method. Syntax setOptions(options: Object) Parameters options (optional) − This parameter is an Object which provides additional customizations to our object. Using this parameter ...

Read More

How to set the angle of skew on the Y-axis of a Circle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 278 Views

In this tutorial, we are going to learn how to set the angle of skew on Y-axis of a Circle using FabricJS. Circle is one of the various shapes provided by FabricJS. In order to create a circle, we will have to create an instance of fabric.Circle class and add it to the canvas. Our circle object can be customized in various ways like changing its dimensions, adding a background color or by changing the angle of skew on Y-axis. We can do this by using the skewY property. Syntax new ...

Read More

How to maintain stroke width of a Rectangle while scaling using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 329 Views

In this tutorial, we are going to learn how we can maintain the stroke width of Rectangle while scaling using FabricJS. By default, the stroke width increases or decreases with respect to the object's scale values. However, we can disable this behaviour by using the strokeUniform property. Syntax new fabric.Rect({ strokeUniform: Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter, properties such as colour, cursor, stroke width, and a lot of other properties can be changed related to the object ...

Read More

How to set the background colour of text lines with IText using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 753 Views

In this tutorial, we are going to learn how to set the background colour of text lines of IText using FabricJS. The IText class was introduced in FabricJS version 1.4, extends fabric.Text and is used to create IText instances. An IText instance gives us the freedom to select, cut, paste or add new text without additional configurations. There are also various supported key combinations and mouse/touch combinations which make text interactive which are not provided in Text. Textbox, however, which is based on IText allows us to resize the text rectangle and wraps lines automatically. This is not true for ...

Read More

How to set the angle of an Image using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 710 Views

In this tutorial, we are going to learn how to set the angle of an Image using FabricJS. We can create an Image object by creating an instance of fabric.Image. Since it is one of the basic elements of FabricJS, we can also easily customize it by applying properties like angle, opacity etc. In order to set the angle of an Image, we use the angle property. Syntax new fabric.Image( element: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | String, { angle: Number }: Object, callback: function) Parameters ...

Read More
Showing 241–250 of 490 articles
« Prev 1 23 24 25 26 27 49 Next »
Advertisements