mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Matrix: add documentation for Matrix#scale(scale[, center]).
This commit is contained in:
parent
044dd34e9f
commit
005f505959
1 changed files with 12 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue