Преглед на файлове

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


Зареждане…
Отказ
Запис