fix: update function getSplineCurvePointsStr name

This commit is contained in:
Shivam Mishra 2019-09-09 20:15:05 +05:30
parent 96618fa8e2
commit 3438fcdb05

View File

@ -77,9 +77,9 @@ export function animateDot(dot, x, y) {
export function animatePath(paths, newXList, newYList, zeroLine, spline) {
let pathComponents = [];
let pointsStr = newYList.map((y, i) => (newXList[i] + ',' + y)).join("L");
if (spline)
pointsStr = createSplineCurve(newXList, newYList);
pointsStr = getSplineCurvePointsStr(newXList, newYList);
const animPath = [paths.path, {d:"M" + pointsStr}, PATH_ANIM_DUR, STD_EASING];
pathComponents.push(animPath);