Skip to content

Commit

Permalink
fix(🐛): Fix mixPath signature (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Sep 23, 2020
1 parent 2ec4846 commit a71273b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ export const interpolatePath = (
return serialize(path);
};

export const mixPath = (value: number, paths: [SVGSegment[], SVGSegment[]]) => {
export const mixPath = (value: number, p1: SVGSegment[], p2: SVGSegment[]) => {
"worklet";
return interpolatePath(value, [0, 1], paths);
return interpolatePath(value, [0, 1], [p1, p2]);
};

export const move = (x: number, y: number) => {
Expand Down

0 comments on commit a71273b

Please sign in to comment.