vue3-map-chart
Version:
Vue 3 component for rendering interactive SVG maps of the world, continents, and countries with dynamic data.
37 lines (36 loc) • 1.44 kB
TypeScript
/**
* Checks if the given value is an object and not an array or null.
*
* @param {any} value - The value to check.
* @return {boolean} Returns true if the value is an object and not an array or null, false otherwise.
*/
export declare function isObject(value: any): boolean;
/**
* Formats a number with a magnitude suffix.
*
* @param {number} number - The number to be formatted.
* @return {string|number} The formatted number with the magnitude suffix.
*/
export declare function formatNumberWithSIPrefix(number: number): string | number;
/**
* Generates a random integer between the provided minimum and maximum values (inclusive).
*
* @param {number} min - The minimum value for the random integer.
* @param {number} max - The maximum value for the random integer.
* @return {number} The randomly generated integer.
*/
export declare function getRandomInteger(min: number, max: number): number;
/**
* Checks if the given code is a valid ISO code.
*
* @param {string} code - The code to be checked.
* @return {boolean} Returns true if the code is a valid ISO code, false otherwise.
*/
export declare function isValidIsoCode(code: string): boolean;
/**
* Checks if the given string is a valid SVG document.
*
* @param {string} input - The string to be checked.
* @return {boolean} Returns true if the string is a valid SVG document, false otherwise.
*/
export declare function isSVG(input: string): boolean;