Rahul Gurung

Rahul Gurung

490 Articles Published

Articles by Rahul Gurung

Page 23 of 49

How to get the left boundary of a word in IText using FabricJS?

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

In this tutorial, we are going to learn about how to get the left boundary of a word 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 lines automatically. This is not ...

Read More

How to lock the rotation of a Circle using FabricJS?

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

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

Read More

How to lock the horizontal movement of a Triangle using FabricJS?

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

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

Read More

How to get the right boundary of a word in IText using FabricJS?

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

In this tutorial, we are going to learn about how to get the right boundary of a word 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 lines automatically. This is not ...

Read More

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

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

In this tutorial, we are going to learn how to lock the vertical movement 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 it to move only in the X-axis. This can be done by using the lockMovementY property. Syntax new fabric.Circle({ lockMovementY: Boolean }: Object) Parameters options (optional) − This parameter is an Object which provides additional customizations to our circle. Using this parameter, ...

Read More

How to lock the horizontal scaling of Triangle using FabricJS?

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

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

Read More

How to indicate whether text is in editing mode or not in IText using FabricJS?

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

In this tutorial, we are going to learn about how to indicate whether text is in editing mode or not 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 lines automatically. This ...

Read More

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

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

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

Read More

How to lock the horizontal skewing 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 horizontal skewing 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 skewing an object horizontally. This can be done by using the lockSkewingX property. Syntax new fabric.Triangle({ lockSkewingX : Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our triangle. ...

Read More

How to insert characters in IText using FabricJS?

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

In this tutorial, we are going to learn about how to insert characters 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 lines automatically. This is not true for IText as height ...

Read More
Showing 221–230 of 490 articles
« Prev 1 21 22 23 24 25 49 Next »
Advertisements