Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getSpline(points) {
const data = [];
for (let i = 0; i < points.length; i++) {
const point = points[i];
data.push(point.x);
data.push(point.y);
}
const splinePath = G.PathUtil.catmullRomToBezier(data);
splinePath.unshift([ 'M', points[0].x, points[0].y ]);
return splinePath;
},
/**
getSpline(points) {
const data = [];
for (let i = 0; i < points.length; i++) {
const point = points[i];
data.push(point.x);
data.push(point.y);
}
const splinePath = G.PathUtil.catmullRomToBezier(data);
splinePath.unshift([ 'M', points[0].x, points[0].y ]);
return splinePath;
},
/**