Matrix: add some docs todos and make center optional in Matrix#shear.

This commit is contained in:
Jonathan Puckey 2011-05-29 17:34:51 +02:00
parent 005f505959
commit 9012bed504

View file

@ -146,6 +146,7 @@ var Matrix = this.Matrix = Base.extend({
return this;
},
// DOCS: Matrix#translate(point)
/**
* Concatentates this transform with a translate transformation.
*
@ -161,6 +162,7 @@ var Matrix = this.Matrix = Base.extend({
return this;
},
// DOCS: Matrix#rotate(angle, center)
/**
* Concatentates this transform with a rotation transformation around an
* anchor point.
@ -180,7 +182,7 @@ var Matrix = this.Matrix = Base.extend({
*
* @param {Number} shx The x shear factor.
* @param {Number} shy The y shear factor.
* @param {Point} center The optional center for the shear transformation.
* @param {Point} [center] The optional center for the shear transformation.
* @return {Matrix} This affine transform.
*/
shear: function(shx, shy, center) {