From 3438fcdb0583ffa7bf37bc713998399ed386ca87 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 9 Sep 2019 20:15:05 +0530 Subject: [PATCH] fix: update function getSplineCurvePointsStr name --- src/js/utils/animate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/utils/animate.js b/src/js/utils/animate.js index b9d2e2d..2cc6c8e 100644 --- a/src/js/utils/animate.js +++ b/src/js/utils/animate.js @@ -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);