mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 15:08:53 -04:00
Clean up documentation: Always use @function / @name when there is more than one version of a method.
This commit is contained in:
parent
f3f49a34c6
commit
38003b6818
5 changed files with 33 additions and 11 deletions
src/basic
|
@ -119,6 +119,8 @@ var Matrix = this.Matrix = Base.extend({
|
|||
/**
|
||||
* Concatentates this transform with a scaling transformation.
|
||||
*
|
||||
* @name Matrix#scale
|
||||
* @function
|
||||
* @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
|
||||
|
@ -157,6 +159,8 @@ var Matrix = this.Matrix = Base.extend({
|
|||
/**
|
||||
* Concatentates this transform with a translate transformation.
|
||||
*
|
||||
* @name Matrix#translate
|
||||
* @function
|
||||
* @param {Number} dx The distance to translate in the x direction.
|
||||
* @param {Number} dy The distance to translate in the y direction.
|
||||
* @return {Matrix} This affine transform.
|
||||
|
@ -183,6 +187,8 @@ var Matrix = this.Matrix = Base.extend({
|
|||
* Concatentates this transform with a rotation transformation around an
|
||||
* anchor point.
|
||||
*
|
||||
* @name Matrix#rotate
|
||||
* @function
|
||||
* @param {Number} angle The angle of rotation measured in degrees.
|
||||
* @param {Number} x The x coordinate of the anchor point.
|
||||
* @param {Number} y The y coordinate of the anchor point.
|
||||
|
@ -205,6 +211,8 @@ var Matrix = this.Matrix = Base.extend({
|
|||
/**
|
||||
* Concatentates this transform with a shear transformation.
|
||||
*
|
||||
* @name Matrix#shear
|
||||
* @function
|
||||
* @param {Number} shx The x shear factor.
|
||||
* @param {Number} shy The y shear factor.
|
||||
* @param {Point} [center] The optional center for the shear transformation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue