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);