From 005f505959104b3c498c6eee07e43fcf2199ba97 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 29 May 2011 17:31:13 +0200 Subject: [PATCH] Matrix: add documentation for Matrix#scale(scale[, center]). --- src/basic/Matrix.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index 940a0251..2058725d 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -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) {