forked from plouc/nivo
/
props.ts
44 lines (33 loc) · 1000 Bytes
/
props.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
import { RadarGridLabel } from './RadarGridLabel'
import { RadarSliceTooltip } from './RadarSliceTooltip'
import { RadarLayerId } from './types'
export const svgDefaultProps = {
layers: ['grid', 'layers', 'slices', 'dots', 'legends'] as RadarLayerId[],
maxValue: 'auto' as const,
curve: 'linearClosed' as const,
borderWidth: 2,
borderColor: { from: 'color' },
gridLevels: 5,
gridShape: 'circular' as const,
gridLabelOffset: 16,
gridLabel: RadarGridLabel,
enableDots: true,
dotSize: 6,
dotColor: { from: 'color' },
dotBorderWidth: 0,
dotBorderColor: { from: 'color' },
enableDotLabel: false,
dotLabel: 'formattedValue',
dotLabelYOffset: -12,
colors: { scheme: 'nivo' as const },
fillOpacity: 0.25,
blendMode: 'normal' as const,
isInteractive: true,
sliceTooltip: RadarSliceTooltip,
legends: [],
role: 'img',
animate: true,
motionConfig: 'gentle' as const,
defs: [],
fill: [],
}