Skip to content

Commit

Permalink
fix(core): add missing marker typings (#1440)
Browse files Browse the repository at this point in the history
- Add `legendOrientation` & `legendPosition` to CartesianMarkerProps
  • Loading branch information
joematune committed Apr 21, 2021
1 parent dd74cbb commit ff2cc31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ declare module '@nivo/core' {

export interface CartesianMarkerProps {
axis: 'x' | 'y'
value: string | number | Date
value: DatumValue
legend?: string
legendOrientation?: 'horizontal' | 'vertical'
legendPosition?: BoxAlign
lineStyle?: Partial<React.CSSProperties>
textStyle?: Partial<React.CSSProperties>
}
Expand Down

0 comments on commit ff2cc31

Please sign in to comment.