fix 2 points curve

This commit is contained in:
kekee000
2015-03-20 00:46:00 +08:00
parent 54397f153b
commit 325c774655
3 changed files with 6 additions and 2 deletions

View File

@@ -164,7 +164,9 @@ define(
end = joint[0];
splitedPaths.push(path.slice(start.index).concat(path.slice(0, end.index + 1)));
return splitedPaths;
return splitedPaths.filter(function (path) {
return path.length > 2;
});
}
return pathSplit;

View File

@@ -81,7 +81,9 @@ define(
paths = clipper.execute(relation);
paths = segment2Bezier(paths, bezierHash);
return paths.map(function (path) {
return paths.filter(function (path) {
return path.length > 2;
}).map(function (path) {
return deInterpolate(path);
});
}