@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
35 lines (32 loc) • 1.39 kB
TypeScript
/**
* Various utils for tying Smart Mapping renderers to the Smart Mapping
* slider widgets.
*
* @since 4.12
*/
/**
* Formats a UNIX timestamp to a basic date string. This function is only intended for convenience in
* formatting thumb values in slider widgets and does not include additional formatting options.
*
* @param value - The UNIX timestamp to convert to a formatted date string.
* @returns Returns a formatted date string.
* @since 4.14
*/
export function formatDateLabel(value: number): string;
/**
* Formats a numeric value for display as a label based on the current locale.
*
* @param value - The value to convert to a formatted label.
* @returns Returns a formatted label based on the current locale.
* @since 4.19
*/
export function formatNumberLabel(value: number): string;
/**
* Computes and returns standard deviation values based on the given average and standard deviation.
*
* @param standardDeviation - The standard deviation from the given `average`.
* @param average - The average of the dataset from which to compute standard deviation values.
* @param count - The number of standard deviations from the mean to compute.
* @returns Returns the standard deviation values from the given average.
*/
export function getDeviationValues(standardDeviation: number | null | undefined, average: number | null | undefined, count: number): number[];