File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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({
Original file line number Diff line number Diff line change 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,
You can’t perform that action at this time.
0 commit comments