File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ module.exports = function(pathinfo, contours) {
31
31
// after convertToConstraints, pathinfo has length=0
32
32
pi0 . prefixBoundary = false ;
33
33
34
+ // joinAllPaths does enough already when edgepaths are present
35
+ if ( pi0 . edgepaths . length ) return ;
36
+
34
37
var na = pi0 . x . length ;
35
38
var nb = pi0 . y . length ;
36
39
var boundaryMax = - Infinity ;
@@ -60,15 +63,15 @@ module.exports = function(pathinfo, contours) {
60
63
break ;
61
64
case '<' :
62
65
if ( contoursValue < boundaryMin ||
63
- ( ! pi0 . edgepaths . length && pi0 . starts . length && contoursValue === boundaryMin ) ) {
66
+ ( pi0 . starts . length && contoursValue === boundaryMin ) ) {
64
67
pi0 . prefixBoundary = true ;
65
68
}
66
69
break ;
67
70
case '[]' :
68
71
v1 = Math . min ( contoursValue [ 0 ] , contoursValue [ 1 ] ) ;
69
72
v2 = Math . max ( contoursValue [ 0 ] , contoursValue [ 1 ] ) ;
70
73
if ( v2 < boundaryMin || v1 > boundaryMax ||
71
- ( ! pi0 . edgepaths . length && pi0 . starts . length && v2 === boundaryMin ) ) {
74
+ ( pi0 . starts . length && v2 === boundaryMin ) ) {
72
75
pi0 . prefixBoundary = true ;
73
76
}
74
77
break ;
You can’t perform that action at this time.
0 commit comments