Matrix: add documentation for Matrix#scale(scale[, center]).

This commit is contained in:
Jonathan Puckey 2011-05-29 17:31:13 +02:00
parent 044dd34e9f
commit 005f505959

View file

@ -106,12 +106,23 @@ var Matrix = this.Matrix = Base.extend({
return this;
},
/**
* Concatentates this transform with a scaling transformation.
*
* @name Matrix#scale
* @function
* @param {Number} scale The scaling factor.
* @param {Point} [center] The optional center for the scaling
* transformation.
* @return {Matrix} This affine transform.
*/
/**
* Concatentates this transform with a scaling transformation.
*
* @param {Number} sx The x-axis scaling factor.
* @param {Number} sy The y-axis scaling factor.
* @param {Point} center The optional center for the scaling transformation.
* @param {Point} [center] The optional center for the scaling
* transformation.
* @return {Matrix} This affine transform.
*/
scale: function(sx, sy /* | scale */, center) {