Javascript Articles

Page 198 of 534

How to flip a Triangle vertically using FabricJS?

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

In this tutorial, we are going to learn how we can flip a Triangle object vertically using FabricJS. Triangle is one of the various shapes provided by FabricJS. In order to create a triangle, we will have to create an instance of fabric.Triangle class and add it to the canvas. We can flip a triangle object vertically using the flipY property. Syntax new fabric.Triangle({ flipY: Boolean }: Object) Parameters Options (optional) − This parameter is an Object which provides additional customizations to our ...

Read More

How to hide the controlling borders of a Triangle using FabricJS?

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

In this tutorial, we are going to learn how to hide the controlling borders of a Triangle using FabricJS. Triangle is one of the various shapes provided by FabricJS. In order to create a triangle, we will have to create an instance of fabric.Triangle class and add it to the canvas. We can customize our controlling borders in many ways such as adding a specific colour to it, a dash pattern, etc. We can also eliminate the borders completely by using the hasBorders property. Syntax new fabric.Triangle({ hasBorders: Boolean }: Object) Parameters ...

Read More

How to hide the controlling corners of a Triangle using FabricJS?

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

In this tutorial, we are going to learn how to hide the controlling corners of a Triangle using FabricJS. Triangle is one of the various shapes provided by FabricJS. In order to create a triangle, we will have to create an instance of fabric.Triangle class and add it to the canvas. The controlling corners of an object allow us to increase or decrease its scale, stretch or change its position. We can customize our controlling corners in many ways such as adding a specific colour to it, changing its size, etc. We can also hide them using the hasControls ...

Read More

How to lock the flipping during scaling of Triangle using FabricJS?

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

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

Read More

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

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 180 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 lock the horizontal scaling of Triangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 170 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 lock the horizontal skewing of Triangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 190 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 lock the rotation of a Triangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 196 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 lock the vertical movement of Triangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 188 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 lock the vertical scaling of Rectangle using FabricJS?

Rahul Gurung
Rahul Gurung
Updated on 15-Mar-2026 221 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
Showing 1971–1980 of 5,340 articles
« Prev 1 196 197 198 199 200 534 Next »
Advertisements