-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.d.ts
51 lines (42 loc) · 1.21 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export = PersonalitySunburstChart;
declare type Exclude = 'personality' | 'needs' | 'values';
declare type Locale = 'ar' | 'de' | 'en' | 'es' | 'fr' | 'it' | 'ja' | 'ko' | 'pt-br' | 'zh-tw' | 'zh';
declare type Version = 'v2' | 'v3';
declare type D3Version = 'v3' | 'v4';
declare type SunburstChartOptions = {
selector?: string,
element?: any,
version?: Version,
d3version?: D3Version,
locale?: Locale,
scale?: number,
colors?: SunburstChartColors,
exclude?: Exclude[]
};
declare type SunburstChartColors = {
traits_dark: string,
traits_light: string,
facet: string,
needs_dark: string,
needs_light: string,
need: string,
values_dark: string,
values_light: string,
value: string
};
declare class PersonalitySunburstChart {
constructor(options?: SunburstChartOptions);
defaultOptions(): {
locale: Locale,
version: Version,
d3version: D3Version,
scale: number,
colors: SunburstChartColors
};
setLocale(locale: Locale, render?: boolean): void;
setImage(url: string, render?: boolean): void;
setProfile(profile: any, render?: boolean): void;
setColors(colors: SunburstChartColors, render?: boolean);
render(): void;
show(profile: any, imageUrl?: string): void;
}