forked from visa/visa-chart-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prop-types.ts
160 lines (148 loc) · 3.18 KB
/
prop-types.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/**
* Copyright (c) 2020, 2021 Visa, Inc.
*
* This source code is licensed under the MIT license
* https://github.com/visa/visa-chart-components/blob/master/LICENSE
*
**/
export interface IBoxModelType {
top: number;
bottom: number;
right: number;
left: number;
}
export interface IDataLabelType {
visible: boolean;
placement?: string;
labelAccessor?: string;
format?: any;
collisionHideOnly?: boolean;
collisionPlacement?: string;
}
export interface IAxisType {
visible: boolean;
gridVisible?: boolean;
label?: string;
format?: string;
tickInterval?: number;
unit?: string;
placement?: string;
scales?: string;
onlyTickExtents?: boolean;
}
export interface ILegendType {
visible: boolean;
labels?: string | string[];
interactive?: boolean;
format?: string;
type?: string;
}
export interface IHoverStyleType {
color?: string;
strokeWidth?: string | number;
}
export interface IClickStyleType {
color?: string;
strokeWidth?: string | number;
}
export interface IAnimationConfig {
disabled?: boolean;
}
export interface IKeyConfig {
disabled?: boolean;
}
export interface IAccessibilityType {
longDescription?: string;
executiveSummary?: string;
purpose?: string;
contextExplanation?: string;
title?: string;
elementDescriptionAccessor?: string;
statisticalNotes?: string;
structureNotes?: string;
includeDataKeyNames?: boolean;
hideDataTableButton?: boolean;
disableValidation?: boolean;
elementsAreInterface?: any;
onChangeFunc?: any;
hideTextures?: boolean;
hideStrokes?: boolean;
showSmallLabels?: boolean;
showExperimentalTextures?: boolean;
keyboardNavConfig?: IKeyConfig;
}
export interface IReferenceStyleType {
color?: string;
strokeWidth?: string;
opacity?: number;
dashed?: string;
}
export interface ITooltipLabelType {
labelAccessor: string[];
labelTitle: string[];
format: any[];
}
export interface IFocusStyleType {
key?: string;
sizeFromBar?: number;
}
export interface IBarStyleType {
opacity?: number;
width?: number;
colorRule?: string;
}
export interface IMarkerStyleType {
visible: boolean;
type?: string;
sizeFromBar?: number;
}
export interface ISeriesLabelType {
visible: boolean;
placement?: string;
label?: string | string[];
format?: string;
collisionHideOnly?: boolean;
collisionPlacement?: string;
}
export interface IDifferenceLabelType {
visible: boolean;
placement?: string;
calculation?: string;
format?: any;
collisionHideOnly?: boolean;
collisionPlacement?: string;
}
export interface IMapMarkerStyleType {
visible: boolean;
fill?: boolean;
blend?: boolean;
radius?: number;
radiusRange?: string | number[];
opacity?: number;
color?: string;
strokeWidth?: number;
}
export interface ICountryStyleType {
fill: boolean;
opacity?: number;
color?: string;
strokeWidth?: number;
}
export interface ISecondaryLinesType {
keys: string[];
showDataLabel: boolean;
showSeriesLabel: boolean;
opacity: number;
}
export interface INodeConfigType {
fill: boolean;
width: number;
padding: number;
alignment: string;
compare: boolean;
}
export interface ILinkConfigType {
visible: boolean;
fillMode: string;
opacity: number;
}