Enable Centered Scaling on Canvas Using Fabric.js

Rahul Gurung
Updated on 19-May-2022 13:37:12

1K+ Views

In this article, we are going to learn how to enable centered scaling on a canvas using FabricJS. In FabricJS, an object gets transformed proportionally when dragged from the corners. We can use the centeredScaling property to use the center as the origin of transformation.Syntaxnew fabric.Canvas(element: HTMLElement|String, { centeredScaling: Boolean }: Object)Parameterselement − This parameter is the element itself which can be derived using Document.getElementById() or the id of the element itself. The FabricJS canvas will be initialized on this element.options (optional) − This parameter is an Object which provides additional customizations to our canvas. Using this parameter ... Read More

Interference with Communication System in Electric Traction

Manish Kumar Saini
Updated on 19-May-2022 13:34:06

2K+ Views

This article explains the phenomenon of interference with the communication systems caused by the electric power lines employed for traction purposes. The phenomenon which modifies a signal in a disruptive manner, when the signal travels along a communication channel between its transmitter and receiver is known as interference in the communication system.As the electric traction system uses high-voltage power lines, the electromagnetic and electrostatic fields produced by these traction power lines disturb the neighbouring communication lines, i.e., the traction power lines cause interference with the communication lines.In electric traction systems, the track is used as the return path for the ... Read More

Resize an Object Non-Uniformly via Corner Points using Fabric.js

Rahul Gurung
Updated on 19-May-2022 13:32:34

898 Views

In this article, we are going to learn how to resize an object non-uniformly via corner points using FabricJS. In FabricJS, an object gets transformed proportionally when dragged from the corners. However, we can control this behavior by pressing the uniScaleKey.Syntaxnew fabric.Canvas(element: HTMLElement|String, { uniScaleKey: String }: Object)Parameterselement − This parameter is the element itself which can be derived using Document.getElementById() or the id of the element itself. The FabricJS canvas will be initialized on this element.options (optional) − This parameter is an Object which provides additional customizations to our canvas. Using this parameter, properties such as color, ... Read More

Electric Traction Motor and Linear Induction Motor

Manish Kumar Saini
Updated on 19-May-2022 13:29:57

3K+ Views

Linear Induction MotorA linear induction motor is a special type of induction motor that gives linear motion instead of rotational motion, as in the case of a conventional motion. In case of linear induction motor, the movement of field and movement of the conductors are linear.Construction and Working of Linear Induction MotorA linear induction motor consists of a three-phase distributed field winding placed in the slots and the secondary winding is nothing but a conducting plate made up of either copper or aluminium as shown in Figure-1.The field system of the linear induction motor may be either of following two ... Read More

Set Width of Selection Area Border on Canvas using Fabric.js

Rahul Gurung
Updated on 19-May-2022 13:29:02

774 Views

In this article, we are going to learn how to set the width of a selection area border on a canvas using FabricJS. A selection area indicates the area selected using the mouse and all objects under that area will get selected. FabricJS allows us to adjust the width of the selection area border with the selectionLineWidth property.Syntaxnew fabric.Canvas(element: HTMLElement|String, { selectionLineWidth: Number }: Object)Parameterselement − This parameter is the element itself which can be derived using document.getElementById() or the id of the element itself. The FabricJS canvas will be initialized on this element.options (optional) − This parameter ... Read More

Electric Traction Motor - AC Series Motor

Manish Kumar Saini
Updated on 19-May-2022 13:25:01

6K+ Views

Many single phase AC motors have been developed for traction purposes but only compensated series type commutator motor is found to be best suited for traction services. Practically, the AC series motor is best suited for traction purpose because of high-starting torque.When DC series motor is fed from AC supply, it works but not satisfactorily due to the following reasons −If a DC series motor is fed from AC supply both the field and the armature currents reverse for every half cycle. Thus, unidirectional torque is developed in the motor at double frequency.When AC supply is given to the DC ... Read More

Set Color of Selection Area on Canvas Using Fabric.js

Rahul Gurung
Updated on 19-May-2022 13:24:55

844 Views

In this article, we are going to learn how to set the color of a selection area on a canvas using FabricJS. We can adjust the color using the selectionColor property.Syntaxnew fabric.Canvas(element: HTMLElement|String, { selectionColor: String }: Object)Parameterselement − This parameter is the element itself which can be derived using document.getElementById() or the id of the element itself. The FabricJS canvas will be initialized on this element.options (optional) − This parameter is an Object which provides additional customizations to our canvas. Using this parameter, properties such as color, cursor, border width and a lot of other properties can ... Read More

Set Border Color of Selection Area on Canvas using Fabric.js

Rahul Gurung
Updated on 19-May-2022 12:39:06

832 Views

In this article, we are going to learn how to set the border color of a selection area on a canvas using FabricJS. A selection indicates whether a group selection should be enabled or not. FabricJS allows us to adjust the border color accordingly with the selectionBorderColor property.Syntaxnew fabric.Canvas(element: HTMLElement|String, { selectionBorderColor: String }: Object)Parameterselement − This parameter is the element itself which can be derived using document.getElementById() or the id of the element itself. The FabricJS canvas will be initialized on this element.options (optional) − This parameter is an Object which provides additional customizations to our canvas. ... Read More

Disable Canvas Interactivity Using Fabric.js

Rahul Gurung
Updated on 19-May-2022 12:34:36

2K+ Views

In this article, we are going to learn how to disable the interactivity of canvas in FabricJS. The interactive layer on top of each object is one of the unique features of FabricJS. As soon as we initialize a canvas, it's possible to select the objects, drag them around or manipulate a group selection. However, all this can be undone by assigning the interactive property to False.Syntaxnew fabric.Canvas(element: HTMLElement|String, { interactive : Boolean }: Object)Parameterselement − This parameter is the element itself which can be derived using document.getElementById() or the id of the element itself. The FabricJS canvas ... Read More

Electric Traction Suitability of DC Series Motor

Manish Kumar Saini
Updated on 19-May-2022 12:21:47

7K+ Views

A DC series motor has the following characteristics that make it suitable for traction work −DC series motors develop high starting torque which is required for traction purpose.DC series motors produce high starting torque at low speeds and low torque at high speeds.The speed of a DC series motor can be controlled easily and effectively.The torque developed by a DC series motor is unaffected by variations in supply voltage.DC series motors are ideally suitable for parallel running. Because, the DC series motors when operated in parallel to drive a vehicle by means of different driving axles, share load almost equally ... Read More

Advertisements