decentraland-ui
Version:
Decentraland's UI components and styles
21 lines (20 loc) • 1.33 kB
TypeScript
export declare const HOVERED_BAR_COLOR = "pink";
export declare const LOADING_BAR_COLOR = "grey";
export declare const ACTIVE_BAR_COLOR = "#ff2d55";
export declare const NON_ACTIVE_BAR_COLOR = "#4f1414";
export declare const CHART_LOG_SCALE = 5;
export declare const numberFormatter: Intl.NumberFormat;
export declare const formatAndRoundNumberString: (number: string) => string;
export declare const roundRange: (range: number[]) => [string, string];
export declare const inverseScale: (number: number) => number;
export declare const roundNumber: (number: number, decimals?: number) => number;
export declare const fixedNumber: (value: string, decimals: number) => string;
export declare const createExponentialRange: (min: number, max: number, upperBound?: number, decimals?: number) => number[];
export declare const getBarChartRanges: (data: Record<string, number>, min: number, max: number, upperBound?: number, rangeDecimals?: number) => any[];
export declare const isValuesInCurrentRange: (range: number[], min: number, max: number) => boolean;
export declare const formatValueToLocale: (value: [string, string]) => [string, string];
export declare const getFlooredFixed: (v: number, d: number) => string;
export declare const getDatasetBounds: (data: Record<string, number>) => {
min: number;
max: number;
};