Skip to content

Commit 22df17c

Browse files
committed
Docs: Minor cleanups.
1 parent b588f32 commit 22df17c

3 files changed

Lines changed: 16 additions & 14 deletions

File tree

src/basic/Point.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var Point = Base.extend(/** @lends Point# */{
7171
* Creates a Point object using the properties in the given object.
7272
*
7373
* @name Point#initialize
74-
* @param {object} object
74+
* @param {object} the object describing the point's properties
7575
*
7676
* @example
7777
* // Creating a point using an object literal with length and angle

src/basic/Rectangle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{
3333
* Creates a Rectangle object.
3434
*
3535
* @name Rectangle#initialize
36-
* @param {Object} object An object literal containing properties to be
37-
* set on the rectangle.
36+
* @param {Object} object an object containing properties to be set on the
37+
* rectangle.
3838
*
3939
* @example // Create a rectangle between {x: 20, y: 20} and {x: 80, y:80}
4040
* var rectangle = new Rectangle({

src/style/Gradient.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@
2626
*
2727
* // Create a rectangle shaped path between
2828
* // the topLeft and bottomRight points:
29-
* var path = new Path.Rectangle(topLeft, bottomRight);
30-
*
31-
* // Fill the path with a gradient of three evenly divided color stops
32-
* // that runs between the two points we defined earlier:
33-
* path.fillColor = {
34-
* gradient: {
35-
* stops: ['yellow', 'red', 'blue']
36-
* },
37-
* origin: topLeft,
38-
* destination: bottomRight
39-
* };
29+
* var path = new Path.Rectangle({
30+
* topLeft: topLeft,
31+
* bottomRight: bottomRight,
32+
* // Fill the path with a gradient of three color stops
33+
* // that runs between the two points we defined earlier:
34+
* fillColor: {
35+
* gradient: {
36+
* stops: ['yellow', 'red', 'blue']
37+
* },
38+
* origin: topLeft,
39+
* destination: bottomRight
40+
* }
41+
* });
4042
*
4143
* @classexample {@paperscript height=300}
4244
* // Create a circle shaped path at the center of the view,

0 commit comments

Comments
 (0)