
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 224 Articles for Javascript Library

418 Views
The fabric.Text object of Fabric.JS is used to change the corner style of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class the Text class provides the rich functionality. The text object contains the different properties, but to change the font-weight of a text canvas can be done using one of the font property i.e., fontWeight. The fontWeight property of a Fabric.js Text object specifies the weight or thickness of the text characters. It can be used ... Read More

806 Views
The fabric.Text object of Fabric.JS is used to change the corner style of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class the Text class provides the rich functionality. The text object contains the different properties, but to change the character spacing of a text canvas can be done using one of the property i.e., charSpacing. This property sets the spacing between characters in pixels. You can also use the setCharSpacing method to changing the spacing of ... Read More

697 Views
The fabric.Text object of Fabric.JS is used to change the corner style of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class the Text class provides the rich functionality. The text object contains the different properties, but to change the border color of a text canvas can be done using one of the color property i.e., borderColor. The borderColor property of a Fabric.js Text object specifies the border color of the object. Any valid CSS color value ... Read More

14K+ Views
We will use the React useEffect hook to call our loading function. This hook allows us to specify a function that will run on a specific component lifecycle event, such as when the component mounts. By passing in our loading function as a dependency, we ensure that it will be called whenever the component loads or updates. React useEffect The useEffect is a Hook in React that allows you to synchronize a component with an external system. It runs after the component renders and can be used to fetch data, update the DOM, or set up event listeners. It ... Read More

2K+ Views
We can break out of a forEach() method in Lodash by using the _.breakLoop() method. This method allows us to immediately exit the loop and discontinue the iteration. To use it, we need to pass in the loop variable as an argument to the _.breakLoop() method within the loop's callback function. Let us first see what is LodashJS − Lodash is a JavaScript library that provides utility functions for common programming tasks. It is a modern JavaScript utility library delivering modularity, performance & extras. It is similar to Underscore.js and provides a wide range of functions for working with arrays, ... Read More

14K+ Views
Tp add a Video Player in ReactJS, we first need to install a video player library such as 'react-player' or 'react-video-js'. Next, we import the library and use the designated component in our JSX code. Lastly, we provide the necessary props such as the video source and any customization options to the component. Let us first understand what ReactJS is. React is a JavaScript library for building user interfaces. It makes it easy to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render the right components when your data changes. ... Read More

396 Views
To add vertical skew to a canvas-type text using Fabric.js, we first need to create a text object. Next, we can use the "setSkewY" method and pass in the desired degree of skew as a parameter. Finally, we can call the "renderAll" method to update the canvas with the skewed text. Let us first understand what Fabric.js is. What is Fabric.js? Fabric.js is a JavaScript library that allows you to create and manipulate canvas elements in a web page. It provides a variety of objects such as text, images, shapes, and more that can be added to a canvas, ... Read More

353 Views
To add a third-party library in Deno, we need to import the library from its URL. We can use the "import" statement followed by the URL of the library. It is also possible to use a local file path instead of a URL. The library can then be used in our code by referencing its exported functions or variables. Let us first understand what is Deno.js − What is Deno.js? Deno is a new JavaScript/TypeScript runtime built with V8 JavaScript engine. ... Read More

1K+ Views
We first need to install the react-bootstrap and bootswatch packages using npm. Next, we import the desired theme from bootswatch and apply it to our React components using the 'import' and 'className' properties. Lastly, we can easily switch between themes by simply changing the imported theme. Let us first understand what Bootswatch is. What is Bootswatch? Bootswatch is a collection of free and open-source themes for Bootstrap, a popular front-end development framework. The themes are available in various styles, such as material design, flat, and dark mode. Bootswatch themes are easy to install and customize, allowing developers to quickly ... Read More

4K+ Views
We can add a tag input in NextJS by creating a new component for the input field and using the onChange event to handle the inputted tags. We can also use the state to store the tags and display them as they are inputted. Finally, we can add a button or function to submit the final tag list. Let us first understand what is ReactJS and Tag Input. ReactJS React is a JavaScript library for building user interfaces. It makes it easy to create interactive UIs. Design simple views for each state in your application, and React will efficiently update ... Read More