fix 2 points curve
This commit is contained in:
@@ -164,7 +164,9 @@ define(
|
|||||||
end = joint[0];
|
end = joint[0];
|
||||||
splitedPaths.push(path.slice(start.index).concat(path.slice(0, end.index + 1)));
|
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;
|
return pathSplit;
|
||||||
|
|||||||
@@ -81,7 +81,9 @@ define(
|
|||||||
paths = clipper.execute(relation);
|
paths = clipper.execute(relation);
|
||||||
paths = segment2Bezier(paths, bezierHash);
|
paths = segment2Bezier(paths, bezierHash);
|
||||||
|
|
||||||
return paths.map(function (path) {
|
return paths.filter(function (path) {
|
||||||
|
return path.length > 2;
|
||||||
|
}).map(function (path) {
|
||||||
return deInterpolate(path);
|
return deInterpolate(path);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user