Skip to content

Commit

Permalink
fix(interactive): correcting props on TrendLine
Browse files Browse the repository at this point in the history
snapTo is optional and can accept an array.
  • Loading branch information
markmcdowell committed Apr 30, 2021
1 parent 4966ea7 commit 95cbb8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/interactive/src/TrendLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EachTrendLine } from "./wrapper";
export interface TrendLineProps {
readonly snap: boolean;
readonly enabled: boolean;
readonly snapTo: (datum: any) => number;
readonly snapTo?: (datum: any) => number | number[];
readonly shouldDisableSnap?: (e: React.MouseEvent) => boolean;
readonly onStart: (e: React.MouseEvent, moreProps: any) => void;
readonly onComplete?: (e: React.MouseEvent, newTrends: any[], moreProps: any) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface MouseLocationIndicatorProps {
readonly enabled: boolean;
readonly snap: boolean;
readonly shouldDisableSnap: (e: React.MouseEvent) => boolean;
readonly snapTo?: (datum: any) => number;
readonly snapTo?: (datum: any) => number | number[];
readonly onMouseMove: (e: React.MouseEvent, xyValue: number[], moreProps: any) => void;
readonly onMouseDown: (e: React.MouseEvent, xyValue: number[], moreProps: any) => void;
readonly onClick: (e: React.MouseEvent, xyValue: number[], moreProps: any) => void;
Expand Down

0 comments on commit 95cbb8e

Please sign in to comment.