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

@ -5,7 +5,7 @@ import {ElementContainer} from '../../dom/element-container';
import {BORDER_STYLE} from '../../css/property-descriptors/border-style';
import {CSSParsedDeclaration} from '../../css/index';
import {TextContainer} from '../../dom/text-container';
import {Path, transformPath, reversePath } from '../path';
import {Path, transformPath, reversePath} from '../path';
import {BACKGROUND_CLIP} from '../../css/property-descriptors/background-clip';
import {BoundCurves, calculateBorderBoxPath, calculateContentBoxPath, calculatePaddingBoxPath} from '../bound-curves';
import {isBezierCurve} from '../bezier-curve';

View File

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