Set Minimum Allowed Scale Value of Rectangle using Fabric.js

Rahul Gurung
Updated on 30-Jun-2022 14:33:09

170 Views

In this tutorial, we are going to learn how to set the minimum allowed scale of Rectangle using FabricJS. Rectangle is one of the various shapes provided by FabricJS. In order to create a rectangle, we will have to create an instance of fabric.Rect class and add it to the canvas.We can customize a rectangle object by adding a fill colour to it, eliminate its borders or even make changes in its dimensions. Similarly, we can also set its minimum allowed scale by using the minScaleLimit property.Syntaxnew fabric.Rect({ minScaleLimit : Number }: Object)ParametersOptions (optional) − This parameter is an Object ... Read More

Difference Between Liquidity and Profitability

Probir Banerjee
Updated on 30-Jun-2022 14:19:22

13K+ Views

LiquidityThe liquidity and profitability of a company are directly related to the working capital. When a company maintains high temporary working capital in current assets, it is known to be more liquid. The companies that maintain a lower level of working capital are known as less liquid.Companies that maintain higher liquidity and considered to be at lower risk. They are able to meet the needs of the company and their reservoir of current assets lets them have the freedom to stay solvent.However, more liquid companies have lower profitability because their funds are tied up in operations and these funds cannot ... Read More

Set Horizontal Scale Factor of a Rectangle Using Fabric.js

Rahul Gurung
Updated on 30-Jun-2022 13:30:43

291 Views

In this tutorial, we are going to learn how to set the horizontal scale factor of a Rectangle using FabricJS. Rectangle is one of the various shapes provided by FabricJS. In order to create a rectangle, we will have to create an instance of fabric.Rect class and add it to the canvas.Just as we can specify the position, colour, opacity and dimension of a rectangle object in the canvas, we can also set the horizontal scale of a rectangle object. This can be done by using the scaleX property.Syntaxnew fabric.Rect({ scaleX : Number }: Object)ParametersOptions (optional) − This parameter is ... Read More

Set Fill Colour of a Rectangle Using Fabric.js

Rahul Gurung
Updated on 30-Jun-2022 13:29:23

575 Views

In this tutorial, we are going to learn how we can change the appearance of a Rectangle object by changing its fill colour using FabricJS. Rectangle is one of the various shapes provided by FabricJS. In order to create a rectangle, we will have to create an instance of fabric.Rect class and add it to the canvas.We can change the fill colour by using the fill property which allows us to specify the colour of the object’s fill.Syntaxnew fabric.Rect({ fill: String }: Object)ParametersOptions (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter, ... Read More

Set Dash Pattern for Controlling Corners of a Rectangle using Fabric.js

Rahul Gurung
Updated on 30-Jun-2022 13:27:31

205 Views

In this tutorial, we are going to learn how we can implement the dash pattern of controlling corners of Rectangle using FabricJS. The controlling corners of an object allow us to 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 specify a dash pattern for the controlling corners by using the cornerDashArray property.Syntaxnew fabric.Rect({ cornerDashArray: Array }: Object)ParametersOptions (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter, properties such as colour, cursor, ... Read More

Set Colour of Controlling Corners of a Rectangle Using Fabric.js

Rahul Gurung
Updated on 30-Jun-2022 13:25:31

195 Views

In this tutorial, we are going to set the colour of the controlling corners of Rectangle using FabricJS. The cornerColor property allows us to manipulate the colour of the controlling corners when the object is active.Syntaxnew fabric.Rect({ cornerColor: String }: Object)ParametersOptions (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 of which the cornerColor is a property.Options keyscornerColor − This property accepts a String which allows us to assign a color to ... Read More

Objectives of Credit Policy

Probir Banerjee
Updated on 30-Jun-2022 12:07:50

5K+ Views

What is Credit Policy?The credit policy of a firm is a marketing tool or it can be used as a marketing tool to expand the business. A firm that has a good credit policy in place is advantageous among its peers in the industry. Buyers would prefer a seller that offers its goods or services through a credit policy that is not too stringent. Credit policy helps firms retain old customers and create new ones. It is therefore essential for firms to have a good credit policy to grow in business.Before we consider the objectives of credit policy, it is ... Read More

What is a Credit Policy?

Probir Banerjee
Updated on 30-Jun-2022 12:06:35

1K+ Views

The credit policy is an important tool to improve the selling efforts of a company. However, before discussing about credit policy, it is important to first understand about trade credit and its characteristics.What is Trade Credit?Trade credit is an important feature of a business policy of a firm. Companies need to sell their products or services the value of which will be paid in the future to make their offers to sellers more competitive. Trade credit is also a way manufacturers adopt to make the product offer more attractive to the point of sale sellers.Trade credit creates trade debtors or ... Read More

3 Working Capital Financing Policies

Probir Banerjee
Updated on 30-Jun-2022 12:04:57

7K+ Views

A business firm may choose to go with long-term, short-term, or a mix of the two to finance its operations.Depending on the mix of short- and long-term approaches, three types of working capital policies may be found which are as follows −Matching ApproachWhen the expected life of assets is matched with the expected life of the source of funds, the approach is known as the matching approach. In this approach, short-term financing is used for short-term assets while long-term financing is used for long-term assets.The justification for such an approach is that since financing is meant for paying the assets, ... Read More

Trade-off Between Long-term and Short-term Financing

Probir Banerjee
Updated on 30-Jun-2022 12:03:10

635 Views

Businesses often need to decide whether they will go for short or long-term financing for running their businesses. The main aim of an organization is to offer maximum wealth to shareholders which is possible when a firm generates enough profits. However, the organizations must also keep an eye on the interest rates because the rates may sometimes be palpable to eat a significant chunk of earnings.It has been generally observed that short-term financing is preferable to long-term funding. Short-term financing has the benefits of cost and flexibility that make it more attractive than long-term financing.Following points will help you understand ... Read More

Advertisements