fix contour2svg

This commit is contained in:
kekee000
2014-10-16 11:04:05 +08:00
parent b35a597b13
commit 803e8dca7d
2 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View File

@@ -10,7 +10,7 @@
pids
logs
results
release
npm-debug.log
node_modules
*.css

View File

@@ -18,6 +18,10 @@ define(
*/
function contour2svg(contour) {
if (!contour.length) {
return '';
}
var pathArr = [];
var curPoint, prevPoint, nextPoint;