Skip to content

Commit ffa79f4

Browse files
committed
Clean up white spaces in comments.
1 parent a7d22b2 commit ffa79f4

28 files changed

Lines changed: 162 additions & 157 deletions

lib/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ var Base = new function() { // Bootstrap scope
398398

399399
/**
400400
* A special constant, to be thrown by closures passed to each()
401-
*
401+
*
402402
* $continue / Base.next is not implemented, as the same
403403
* functionality can achieved by using return in the closure.
404404
* In prototype, the implementation of $continue also leads to a

src/basic/Line.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ var Line = this.Line = Base.extend({
4949

5050
/**
5151
* The starting point of the line
52-
*
52+
*
5353
* @name Line#point
5454
* @type Point
5555
*/
5656

5757
/**
5858
* The vector of the line
59-
*
59+
*
6060
* @name Line#vector
6161
* @type Point
6262
*/
6363

6464
/**
6565
* Specifies whether the line extends infinitely
66-
*
66+
*
6767
* @name Line#infinite
6868
* @type Boolean
6969
*/

src/basic/Matrix.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var Matrix = this.Matrix = Base.extend({
2626

2727
/**
2828
* Creates a 2D affine transform.
29-
*
29+
*
3030
* @constructs Matrix
3131
* @param {Number} m00 The m00 coordinate of the transform.
3232
* @param {Number} m10 The m10 coordinate of the transform.
@@ -38,7 +38,7 @@ var Matrix = this.Matrix = Base.extend({
3838
* @class An affine transform performs a linear mapping from 2D coordinates
3939
* to other 2D coordinates that preserves the "straightness" and
4040
* "parallelness" of lines.
41-
*
41+
*
4242
* Such a coordinate transformation can be represented by a 3 row by 3
4343
* column matrix with an implied last row of [ 0 0 1 ]. This matrix
4444
* transforms source coordinates (x,y) into destination coordinates (x',y')
@@ -49,7 +49,7 @@ var Matrix = this.Matrix = Base.extend({
4949
* [ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ]
5050
* [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]
5151
* </pre>
52-
*
52+
*
5353
* This class is optimized for speed and minimizes calculations based on its
5454
* knowledge of the underlying matrix (as opposed to say simply performing
5555
* matrix multiplication).
@@ -87,7 +87,7 @@ var Matrix = this.Matrix = Base.extend({
8787

8888
/**
8989
* Sets this transform to the matrix specified by the 6 values.
90-
*
90+
*
9191
* @param {Number} m00 The m00 coordinate of the transform.
9292
* @param {Number} m10 The m10 coordinate of the transform.
9393
* @param {Number} m01 The m01 coordinate of the transform.
@@ -108,7 +108,7 @@ var Matrix = this.Matrix = Base.extend({
108108

109109
/**
110110
* Concatentates this transform with a scaling transformation.
111-
*
111+
*
112112
* @name Matrix#scale
113113
* @function
114114
* @param {Number} scale The scaling factor.
@@ -118,7 +118,7 @@ var Matrix = this.Matrix = Base.extend({
118118
*/
119119
/**
120120
* Concatentates this transform with a scaling transformation.
121-
*
121+
*
122122
* @param {Number} sx The x-axis scaling factor.
123123
* @param {Number} sy The y-axis scaling factor.
124124
* @param {Point} [center] The optional center for the scaling
@@ -148,15 +148,15 @@ var Matrix = this.Matrix = Base.extend({
148148

149149
/**
150150
* Concatentates this transform with a translate transformation.
151-
*
151+
*
152152
* @name Matrix#translate
153153
* @function
154154
* @param {Point} point The vector to translate by.
155155
* @return {Matrix} This affine transform.
156156
*/
157157
/**
158158
* Concatentates this transform with a translate transformation.
159-
*
159+
*
160160
* @param {Number} dx The distance to translate in the x direction.
161161
* @param {Number} dy The distance to translate in the y direction.
162162
* @return {Matrix} This affine transform.
@@ -172,7 +172,7 @@ var Matrix = this.Matrix = Base.extend({
172172
/**
173173
* Concatentates this transform with a rotation transformation around an
174174
* anchor point.
175-
*
175+
*
176176
* @name Matrix#rotate
177177
* @function
178178
* @param {Number} angle The angle of rotation measured in degrees.
@@ -182,7 +182,7 @@ var Matrix = this.Matrix = Base.extend({
182182
/**
183183
* Concatentates this transform with a rotation transformation around an
184184
* anchor point.
185-
*
185+
*
186186
* @param {Number} angle The angle of rotation measured in degrees.
187187
* @param {Number} x The x coordinate of the anchor point.
188188
* @param {Number} y The y coordinate of the anchor point.
@@ -195,7 +195,7 @@ var Matrix = this.Matrix = Base.extend({
195195

196196
/**
197197
* Concatentates this transform with a shear transformation.
198-
*
198+
*
199199
* @name Matrix#shear
200200
* @function
201201
* @param {Point} point The shear factor in x and y direction.
@@ -204,7 +204,7 @@ var Matrix = this.Matrix = Base.extend({
204204
*/
205205
/**
206206
* Concatentates this transform with a shear transformation.
207-
*
207+
*
208208
* @param {Number} shx The x shear factor.
209209
* @param {Number} shy The y shear factor.
210210
* @param {Point} [center] The optional center for the shear transformation.
@@ -274,7 +274,7 @@ var Matrix = this.Matrix = Base.extend({
274274

275275
/**
276276
* Concatenates an affine transform to this transform.
277-
*
277+
*
278278
* @param {Matrix} mx The transform to concatenate.
279279
* @return {Matrix} This affine transform.
280280
*/
@@ -295,7 +295,7 @@ var Matrix = this.Matrix = Base.extend({
295295

296296
/**
297297
* Pre-concatenates an affine transform to this transform.
298-
*
298+
*
299299
* @param {Matrix} mx The transform to preconcatenate.
300300
* @return {Matrix} This affine transform.
301301
*/
@@ -321,9 +321,9 @@ var Matrix = this.Matrix = Base.extend({
321321
* Transforms a point or an array of coordinates by this matrix and returns
322322
* the result. If an array is transformed, the the result is stored into a
323323
* destination array.
324-
*
324+
*
325325
* @param {Point} point The point to be transformed.
326-
*
326+
*
327327
* @param {Array} src The array containing the source points
328328
* as x, y value pairs.
329329
* @param {Number} srcOff The offset to the first point to be transformed.
@@ -416,7 +416,7 @@ var Matrix = this.Matrix = Base.extend({
416416
/**
417417
* Returns whether the transform is invertible. A transform is not
418418
* invertible if the determinant is 0 or any value is non-finite or NaN.
419-
*
419+
*
420420
* @return {Boolean} Whether the transform is invertible.
421421
*/
422422
isInvertible: function() {
@@ -460,7 +460,7 @@ var Matrix = this.Matrix = Base.extend({
460460

461461
/**
462462
* Sets this transform to a scaling transformation.
463-
*
463+
*
464464
* @param {Number} sx The x-axis scaling factor.
465465
* @param {Number} sy The y-axis scaling factor.
466466
* @return {Matrix} This affine transform.
@@ -471,7 +471,7 @@ var Matrix = this.Matrix = Base.extend({
471471

472472
/**
473473
* Sets this transform to a translation transformation.
474-
*
474+
*
475475
* @param {Number} dx The distance to translate in the x direction.
476476
* @param {Number} dy The distance to translate in the y direction.
477477
* @return {Matrix} This affine transform.
@@ -483,7 +483,7 @@ var Matrix = this.Matrix = Base.extend({
483483

484484
/**
485485
* Sets this transform to a shearing transformation.
486-
*
486+
*
487487
* @param {Number} shx The x-axis shear factor.
488488
* @param {Number} shy The y-axis shear factor.
489489
* @return {Matrix} This affine transform.
@@ -494,7 +494,7 @@ var Matrix = this.Matrix = Base.extend({
494494

495495
/**
496496
* Sets this transform to a rotation transformation.
497-
*
497+
*
498498
* @param {Number} angle The angle of rotation measured in degrees.
499499
* @param {Number} x The x coordinate of the anchor point.
500500
* @param {Number} y The y coordinate of the anchor point.
@@ -536,7 +536,7 @@ var Matrix = this.Matrix = Base.extend({
536536

537537
/**
538538
* Creates a transform representing a scaling transformation.
539-
*
539+
*
540540
* @param {Number} sx The x-axis scaling factor.
541541
* @param {Number} sy The y-axis scaling factor.
542542
* @return {Matrix} A transform representing a scaling
@@ -549,7 +549,7 @@ var Matrix = this.Matrix = Base.extend({
549549

550550
/**
551551
* Creates a transform representing a translation transformation.
552-
*
552+
*
553553
* @param {Number} dx The distance to translate in the x direction.
554554
* @param {Number} dy The distance to translate in the y direction.
555555
* @return {Matrix} A transform representing a translation
@@ -562,7 +562,7 @@ var Matrix = this.Matrix = Base.extend({
562562

563563
/**
564564
* Creates a transform representing a shearing transformation.
565-
*
565+
*
566566
* @param {Number} shx The x-axis shear factor.
567567
* @param {Number} shy The y-axis shear factor.
568568
* @return {Matrix} A transform representing a shearing transformation.
@@ -574,7 +574,7 @@ var Matrix = this.Matrix = Base.extend({
574574

575575
/**
576576
* Creates a transform representing a rotation transformation.
577-
*
577+
*
578578
* @param {Number} angle The angle of rotation measured in degrees.
579579
* @param {Number} x The x coordinate of the anchor point.
580580
* @param {Number} y The y coordinate of the anchor point.

src/basic/Point.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ var Point = this.Point = Base.extend({
2121

2222
/**
2323
* Creates a Point object with the given x and y coordinates.
24-
*
24+
*
2525
* @name Point
2626
* @constructor
27+
*
2728
* @param {Number} x the x coordinate
2829
* @param {Number} y the y coordinate
2930
*
@@ -46,7 +47,7 @@ var Point = this.Point = Base.extend({
4647
/**
4748
* Creates a Point object using the numbers in the given array as
4849
* coordinates.
49-
*
50+
*
5051
* @name Point#initialize
5152
* @param {array} array
5253
*
@@ -56,7 +57,7 @@ var Point = this.Point = Base.extend({
5657
* var point = new Point(array);
5758
* console.log(point.x); // 10
5859
* console.log(point.y); // 5
59-
*
60+
*
6061
* @example
6162
* // Passing an array to a functionality that expects a point:
6263
*
@@ -71,7 +72,7 @@ var Point = this.Point = Base.extend({
7172
*/
7273
/**
7374
* Creates a Point object using the properties in the given object.
74-
*
75+
*
7576
* @name Point#initialize
7677
* @param {object} object
7778
*
@@ -163,7 +164,7 @@ var Point = this.Point = Base.extend({
163164

164165
/**
165166
* The x coordinate of the point
166-
*
167+
*
167168
* @name Point#x
168169
* @type Number
169170
*/
@@ -390,7 +391,7 @@ var Point = this.Point = Base.extend({
390391
/**
391392
* Transforms the point by the matrix as a new point. The object itself
392393
* is not modified!
393-
*
394+
*
394395
* @param {Matrix} matrix
395396
* @return {Point} the transformed point
396397
*/
@@ -402,7 +403,7 @@ var Point = this.Point = Base.extend({
402403
* {@grouptitle Distance & Length}
403404
*
404405
* Returns the distance between the point and another point.
405-
*
406+
*
406407
* @param {Point} point
407408
* @return {Number}
408409
*/
@@ -826,7 +827,7 @@ var Point = this.Point = Base.extend({
826827
*
827828
* @returns {Point} The newly created point object
828829
* @static
829-
*
830+
*
830831
* @example
831832
* var maxPoint = new Point(100, 100);
832833
* var randomPoint = Point.random();

src/basic/Rectangle.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616

1717
var Rectangle = this.Rectangle = Base.extend({
1818
/** @lends Rectangle# */
19+
1920
beans: true,
2021

2122
/**
2223
* Creates a Rectangle object.
23-
*
24+
*
2425
* @name Rectangle
2526
* @constructor
27+
*
2628
* @param {Point} point the top-left point of the rectangle
2729
* @param {Size} size the size of the rectangle
2830
*
@@ -141,7 +143,7 @@ var Rectangle = this.Rectangle = Base.extend({
141143

142144
/**
143145
* The top-left point of the rectangle
144-
*
146+
*
145147
* @type Point
146148
* @bean
147149
*/
@@ -158,7 +160,7 @@ var Rectangle = this.Rectangle = Base.extend({
158160

159161
/**
160162
* The size of the rectangle
161-
*
163+
*
162164
* @type Size
163165
* @bean
164166
*/
@@ -674,7 +676,7 @@ var LinkedRectangle = Rectangle.extend({
674676
* Provide a faster creator for Points out of two coordinates that
675677
* does not rely on Point#initialize at all. This speeds up all math
676678
* operations a lot.
677-
*
679+
*
678680
* @ignore
679681
*/
680682
create: function(owner, setter, x, y, width, height) {

0 commit comments

Comments
 (0)