mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix boolean test to adress shifted segment sequence.
We really need a circular check for closed path geometry.
This commit is contained in:
parent
d84a84c67f
commit
52c0e3e225
1 changed files with 1 additions and 1 deletions
|
@ -51,5 +51,5 @@ test('ring.subtract(square); #610', function() {
|
|||
var ring = outer.subtract(inner);
|
||||
var result = ring.subtract(square);
|
||||
|
||||
equals(result.pathData, 'M-10,131.62689c-68.2302,-5.11075 -122,-62.08951 -122,-131.62689c0,-69.53737 53.7698,-126.51614 122,-131.62689l0,32.12064c-50.53323,5.01724 -90,47.65277 -90,99.50625c0,51.85348 39.46677,94.489 90,99.50625z');
|
||||
equals(result.pathData, 'M-132,0c0,-69.53737 53.7698,-126.51614 122,-131.62689l0,32.12064c-50.53323,5.01724 -90,47.65277 -90,99.50625c0,51.85348 39.46677,94.489 90,99.50625l0,32.12064c-68.2302,-5.11075 -122,-62.08951 -122,-131.62689z');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue