mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-13 22:48:54 -04:00
Handle stationary points in #getWinding method.
This commit is contained in:
parent
b4d8315484
commit
49ddfafe4d
2 changed files with 13 additions and 6 deletions
src/path
|
@ -296,7 +296,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
CanvasProvider.release(ctx);
|
||||
return res;
|
||||
/*#*/ } else { // !__options.nativeContains && __options.booleanOperations
|
||||
var winding = this._getWinding(point);
|
||||
var winding = this._getWinding(point, false, true);
|
||||
return !!(this.getWindingRule() === 'evenodd' ? winding & 1 : winding);
|
||||
/*#*/ } // !__options.nativeContains && __options.booleanOperations
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue