mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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: []
|
children: []
|
||||||
},
|
},
|
||||||
// Enforce creation of beans, as bean getters have hidden parameters.
|
// Enforce creation of beans, as bean getters have hidden parameters.
|
||||||
// See #getPathData() and #getArea below.
|
// See #getPathData() below.
|
||||||
beans: true,
|
beans: true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -296,7 +296,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
||||||
}
|
}
|
||||||
}, /** @lends Path# */{
|
}, /** @lends Path# */{
|
||||||
// Enforce creation of beans, as bean getters have hidden parameters.
|
// Enforce creation of beans, as bean getters have hidden parameters.
|
||||||
// See #getPathData() and #getArea below.
|
// See #getPathData() below.
|
||||||
beans: true,
|
beans: true,
|
||||||
|
|
||||||
getPathData: function(_matrix, _precision) {
|
getPathData: function(_matrix, _precision) {
|
||||||
|
|
|
@ -104,8 +104,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
* @see Path#getArea()
|
* @see Path#getArea()
|
||||||
* @see CompoundPath#getArea()
|
* @see CompoundPath#getArea()
|
||||||
*/
|
*/
|
||||||
isClockwise: function(_closed) {
|
isClockwise: function() {
|
||||||
return this.getArea(_closed) >= 0;
|
return this.getArea() >= 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
setClockwise: function(clockwise) {
|
setClockwise: function(clockwise) {
|
||||||
|
|
Loading…
Reference in a new issue