mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Remove _closed parameter from PathItem#isClockwise() again.
This commit is contained in:
parent
14b2d76450
commit
c80c13eb9e
3 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{
|
|||
children: []
|
||||
},
|
||||
// Enforce creation of beans, as bean getters have hidden parameters.
|
||||
// See #getPathData() and #getArea below.
|
||||
// See #getPathData() below.
|
||||
beans: true,
|
||||
|
||||
/**
|
||||
|
|
|
@ -296,7 +296,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
}
|
||||
}, /** @lends Path# */{
|
||||
// Enforce creation of beans, as bean getters have hidden parameters.
|
||||
// See #getPathData() and #getArea below.
|
||||
// See #getPathData() below.
|
||||
beans: true,
|
||||
|
||||
getPathData: function(_matrix, _precision) {
|
||||
|
|
|
@ -104,8 +104,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
* @see Path#getArea()
|
||||
* @see CompoundPath#getArea()
|
||||
*/
|
||||
isClockwise: function(_closed) {
|
||||
return this.getArea(_closed) >= 0;
|
||||
isClockwise: function() {
|
||||
return this.getArea() >= 0;
|
||||
},
|
||||
|
||||
setClockwise: function(clockwise) {
|
||||
|
|
Loading…
Reference in a new issue