fix: update function getSplineCurvePointsStr name
This commit is contained in:
parent
96618fa8e2
commit
3438fcdb05
@ -79,7 +79,7 @@ export function animatePath(paths, newXList, newYList, zeroLine, spline) {
|
|||||||
let pointsStr = newYList.map((y, i) => (newXList[i] + ',' + y)).join("L");
|
let pointsStr = newYList.map((y, i) => (newXList[i] + ',' + y)).join("L");
|
||||||
|
|
||||||
if (spline)
|
if (spline)
|
||||||
pointsStr = createSplineCurve(newXList, newYList);
|
pointsStr = getSplineCurvePointsStr(newXList, newYList);
|
||||||
|
|
||||||
const animPath = [paths.path, {d:"M" + pointsStr}, PATH_ANIM_DUR, STD_EASING];
|
const animPath = [paths.path, {d:"M" + pointsStr}, PATH_ANIM_DUR, STD_EASING];
|
||||||
pathComponents.push(animPath);
|
pathComponents.push(animPath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user