Skip to content

Commit

Permalink
fix getPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Mar 1, 2017
1 parent 21e2259 commit ba839fb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/getPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,13 @@ export default function getPaths(pathlist) {
return p;
}

var w = bm.w, h = bm.h, len = pathlist.length, c, i;
var len = pathlist.length, c, i;

var paths = [];
for (i = 0; i < len; i++) {
c = pathlist[i].curve;
paths.push(path(c));
}

return {
width: w,
height: h,
paths: paths
}
return paths;
}

0 comments on commit ba839fb

Please sign in to comment.