Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getLinePath() {
const self = this;
const tickPoints = self.get('tickPoints');
const start = self.get('start');
const end = self.get('end');
const points = [];
points.push(start.x);
points.push(start.y);
Util.each(tickPoints, function(tick) {
points.push(tick.x);
points.push(tick.y);
});
points.push(end.x);
points.push(end.y);
const path = PathUtil.catmullRomToBezier(points);
path.unshift([ 'M', start.x, start.y ]);
return path;
}
getLinePath() {
const self = this;
const crp = self.get('crp');
const axisStart = self.get('axisStart');
const path = PathUtil.catmullRomToBezier(crp);
path.unshift([ 'M', axisStart.x, axisStart.y ]);
return path;
}