Skip to content

Commit

Permalink
types(vx-axis/AxisRenderer): fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Aug 21, 2020
1 parent efe0ba7 commit 0dd5ba3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vx-axis/src/axis/AxisRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { TextProps } from '@vx/text/lib/Text';
import getLabelTransform from '../utils/getLabelTransform';
import { AxisRendererProps, AxisScale } from '../types';
import Ticks from './Ticks';
import { Orientation } from '..';

const defaultTextProps: Partial<TextProps> = {
textAnchor: 'middle',
Expand All @@ -26,15 +27,15 @@ export default function AxisRenderer<Scale extends AxisScale>({
labelClassName,
labelOffset = 14,
labelProps = defaultTextProps,
orientation,
orientation = Orientation.bottom,
scale,
stroke = '#222',
strokeDasharray,
strokeWidth = 1,
tickClassName,
tickComponent,
tickLabelProps = (/** tickValue, index */) => defaultTextProps,
tickLength,
tickLength = 8,
tickStroke = '#222',
tickTransform,
ticks,
Expand Down

0 comments on commit 0dd5ba3

Please sign in to comment.