UNPKG

@opendatasoft/visualizations-react

Version:

Opendatasoft's React wrapper for visualization components.

95 lines (94 loc) 2.05 kB
import { Source } from '@opendatasoft/visualizations'; export declare const COLORS: { red: string; orange: string; yellow: string; green: string; blue: string; purple: string; grey: string; }; export declare const IMAGES: { gov: string; trophy: string; rocket: string; }; export declare function generateArrayOf<T>(generator: (index: number) => T, size: number): T[]; export declare const CONTROLS: { text: { control: { type: string; }; }; number: { control: { type: string; }; }; image: { options: string[]; mapping: { none: null; gov: string; trophy: string; rocket: string; }; control: { type: string; }; }; fontWeight: { options: string[]; control: { type: string; }; }; borderStyle: { options: string[]; control: { type: string; }; }; flexDirection: { options: string[]; control: { type: string; }; }; justifyContent: { options: string[]; control: { type: string; }; }; alignItems: { options: string[]; control: { type: string; }; }; color: { control: { type: string; presetColors: string[]; }; }; textAlign: { options: string[]; control: { type: string; }; }; alignSelf: { options: string[]; control: { type: string; }; }; }; export declare const defaultSource: Source; export declare const simpleFormatter: Intl.NumberFormat; export declare const compactNumberFormatter: Intl.NumberFormat; export declare const ratioFormatter: Intl.NumberFormat; export declare const comparisonFormatter: Intl.NumberFormat; export declare function timeout(ms: number): Promise<void>;