Skip to content

Files

Latest commit

3985d7f · Jan 15, 2025

History

History

helper-functions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 27, 2024
Jul 28, 2023
Mar 12, 2024
Jan 12, 2021
Jan 12, 2021
Jan 12, 2021
Jun 27, 2022
Jul 12, 2021
Aug 5, 2021
Jan 12, 2021
Jan 15, 2025
Jan 15, 2025
Mar 12, 2024

helper-functions

gemstone logo

The Gemstone Web Library organizes all Gemstone functionality related to web.

GitHub license

This library includes helpful npm package component for various helper functions such as generating information about a given html element, checking if a value is a number or an integer, or generating a random color.

Usage

# returns Unique GUID
CreateGuid();

# returns Text height
GetTextHeight(font: string, fontSize: string, word: string);

# returns Text width
GetTextWidth(font: string, fontSize: string, word: string);

# returns Node size
GetNodeSize(node: HTMLElement | null);

# returns True if int and false otherwise
IsInteger(value: any);

# returns True if number and false otherwise
IsNumber(value: any);

# returns random color
RandomColor();