浏览代码

fix: update function getSplineCurvePointsStr name

tags/1.3.0
Shivam Mishra 5 年前
父节点
当前提交
3438fcdb05
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/js/utils/animate.js

+ 2
- 2
src/js/utils/animate.js 查看文件

@@ -77,9 +77,9 @@ export function animateDot(dot, x, y) {
export function animatePath(paths, newXList, newYList, zeroLine, spline) { export function animatePath(paths, newXList, newYList, zeroLine, spline) {
let pathComponents = []; let pathComponents = [];
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);


正在加载...
取消
保存