mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Improve shear() parameter naming.
This commit is contained in:
parent
2f2b3ed7e0
commit
bc567f4d29
1 changed files with 6 additions and 6 deletions
|
@ -1419,19 +1419,19 @@ var Item = this.Item = Base.extend({
|
|||
*
|
||||
* @name Item#shear
|
||||
* @function
|
||||
* @param {Number} shx
|
||||
* @param {Number} shy
|
||||
* @param {Number} shearX
|
||||
* @param {Number} shearY
|
||||
* @param {Point} [center={@link Item#position}]
|
||||
* @see Matrix#shear
|
||||
*/
|
||||
shear: function(shx, shy, center) {
|
||||
shear: function(shearX, shearY, center) {
|
||||
// PORT: Add support for center back to Scriptographer too!
|
||||
// See Matrix#scale for explanation of this:
|
||||
if (arguments.length < 2 || typeof sy === 'object') {
|
||||
center = shy;
|
||||
shy = shx;
|
||||
center = shearY;
|
||||
shearY = shearX;
|
||||
}
|
||||
return this.transform(new Matrix().shear(shx, shy,
|
||||
return this.transform(new Matrix().shear(shearX, shearY,
|
||||
center || this.getPosition()));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue