UNPKG
react-d3-axis-mod
Version:
latest (0.1.9)
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
React-based Axis component for D3 (fork with text shadow)
cmdcolin/react-d3-axis-mod
react-d3-axis-mod
/
src
/
types.ts
13 lines
(11 loc)
•
290 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
type
Scaler
<T> =
(
x
: T
) =>
number
;
export
type
Orients
=
'TOP'
|
'RIGHT'
|
'BOTTOM'
|
'LEFT'
;
export
type
AxisStyle
= {
orient
:
Orients
;
tickSizeInner
:
number
;
tickSizeOuter
:
number
;
tickPadding
:
number
;
strokeWidth
:
number
;
tickFont
:
string
;
tickFontSize
:
number
; };