Rahul Gurung

Rahul Gurung

490 Articles Published

Articles by Rahul Gurung

Page 24 of 49

How to lock the vertical skewing of a Circle using FabricJS?

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

In this tutorial, we are going to learn how to lock the vertical skewing of a Circle using FabricJS. Just as we can specify the position, colour, opacity and dimension of a circle 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.Circle({ lockSkewingY : Boolean }: Object) Parameters options (optional) − This parameter is an Object which provides additional customizations to our circle. ...

Read More

How to lock the rotation of a Triangle using FabricJS?

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

In this tutorial, we are going to learn how to lock the rotation 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 it to rotate or not. This can be done by using the lockRotation property. Syntax new fabric.Triangle({ lockRotation : Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our ...

Read More

How to make a text path in IText invisible using FabricJS?

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

In this tutorial, we are going to learn about how to make a text path in IText invisible 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 make a circle invisible using FabricJS?

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

In this tutorial, we are going to learn how to make a Circle invisible using FabricJS. Circle is one of the various shapes provided by FabricJS. In order to create a circle, we 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 making it visible or invisible. We can do this by using the visible property. Syntax new fabric.Circle({ visible: Boolean }) Parameters ...

Read More

How to lock the vertical movement of Triangle using FabricJS?

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

In this tutorial, we are going to learn how to lock the vertical movement 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 it to move only in the X-axis. This can be done by using the lockMovementY property. Syntax new fabric.Triangle({ lockMovementY: Boolean }: Object) Parameters ...

Read More

How to move an object to the top of the stack of drawn objects in IText using FabricJS?

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

In this tutorial, we are going to learn about how to move an object to the top of the stack of drawn objects in 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 ...

Read More

How to make the controlling corners of a Circle transparent using FabricJS?

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

In this tutorial, we are going to learn how to make the controlling corners of Circle transparent 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. The transparentCorners property allows us to control whether the selection corners are transparent or opaque. Syntax new fabric.Circle({ transparentCorners: Boolean }: Object) Parameters options (optional) − This parameter is an Object which provides additional ...

Read More

How to lock the vertical scaling of Rectangle using FabricJS?

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

In this tutorial, we are going to learn how to lock the vertical scaling 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 scaling an object vertically. This can be done by using the lockScalingY property. Syntax new fabric.Rect({ lockScalingY: Boolean }) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this ...

Read More

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

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

In this tutorial, we are going to learn about how to remove current object transform (scale, angle, flip, skew) 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 ...

Read More

How to set the angle of rotation of a Circle using FabricJS?

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

In this tutorial, we are going to set the angle of rotation of a Circle using FabricJS. Circle is one of the various shapes provided by FabricJS. In order to create a circle, we have to create an instance of fabric.Circle class and add it to the canvas. The angle property in FabricJS defines the angle of 2D rotation of an object. We also have the centeredRotation property that allows us to use the center point of a circle as the origin of transformation. Syntax new fabric.Circle({ angle: Number, centeredRotation: Boolean }: Object) Parameters ...

Read More
Showing 231–240 of 490 articles
« Prev 1 22 23 24 25 26 49 Next »
Advertisements