fix eslint

This commit is contained in:
heyoubiao 2020-09-27 17:01:10 +08:00
parent 7816b961fc
commit 72c6f0a004
2 changed files with 10 additions and 7 deletions

View File

@ -36,8 +36,11 @@ export const transformPath = (path: Path[], deltaX: number, deltaY: number, delt
}; };
export const reversePath = (path: Path[]): Path[] => { export const reversePath = (path: Path[]): Path[] => {
return path.slice(0).reverse().map((point) => { return path
.slice(0)
.reverse()
.map(point => {
return point.reverse(); return point.reverse();
}); });
} };
export type Path = Vector | BezierCurve; export type Path = Vector | BezierCurve;