-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
props.ts
40 lines (39 loc) · 1.06 KB
/
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
import BulletMarkersItem from './BulletMarkersItem'
import BulletRectsItem from './BulletRectsItem'
import {
defaultAnimate,
defaultMotionStiffness,
defaultMotionDamping,
// @ts-ignore
defaultMargin,
} from '@nivo/core'
export const defaultProps = {
layout: 'horizontal',
reverse: false,
spacing: 30,
axisPosition: 'after',
titlePosition: 'before',
titleAlign: 'middle',
titleRotation: 0,
titleOffsetX: 0,
titleOffsetY: 0,
rangeComponent: BulletRectsItem,
rangeColors: 'seq:cool',
measureComponent: BulletRectsItem,
measureColors: 'seq:red_purple',
markers: [],
markerComponent: BulletMarkersItem,
markerColors: 'seq:red_purple',
rangeBorderWidth: 0,
rangeBorderColor: { from: 'color' },
measureSize: 0.4,
measureBorderWidth: 0,
measureBorderColor: { from: 'color' },
markerSize: 0.6,
isInteractive: true,
animate: defaultAnimate,
motionStiffness: defaultMotionStiffness,
motionDamping: defaultMotionDamping,
margin: defaultMargin,
role: 'img',
} as const