mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Improve comments describing isValid() calls.
This commit is contained in:
parent
7494f880f8
commit
93cacffd06
1 changed files with 5 additions and 5 deletions
|
@ -607,11 +607,11 @@ PathItem.inject(new function() {
|
|||
// since an overlap crossing might have brought us here,
|
||||
// in which case isValid(seg, false) might be false.
|
||||
|| (!strict || isValid(seg, true))
|
||||
// Even if next segment is not valid, its to which
|
||||
// we may switch might be, so count that too!
|
||||
&& (isValid(nextSeg, !strict && inter._overlap)
|
||||
|| nextInter && isValid(nextInter._segment,
|
||||
!strict && nextInter._overlap))
|
||||
// Even if next segment is not valid, its intersection
|
||||
// to which we may switch might be, so count that too!
|
||||
&& (isValid(nextSeg, !strict && inter._overlap)
|
||||
|| nextInter && isValid(nextInter._segment,
|
||||
!strict && nextInter._overlap))
|
||||
)
|
||||
? inter
|
||||
// If it's no match, check the next linked intersection first,
|
||||
|
|
Loading…
Reference in a new issue