Docs: Minor cleanups.

This commit is contained in:
Jürg Lehni 2013-06-28 06:41:36 -07:00
parent b588f3234c
commit 22df17c192
3 changed files with 16 additions and 14 deletions

View file

@ -71,7 +71,7 @@ var Point = Base.extend(/** @lends Point# */{
* Creates a Point object using the properties in the given object. * Creates a Point object using the properties in the given object.
* *
* @name Point#initialize * @name Point#initialize
* @param {object} object * @param {object} the object describing the point's properties
* *
* @example * @example
* // Creating a point using an object literal with length and angle * // Creating a point using an object literal with length and angle

View file

@ -33,8 +33,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{
* Creates a Rectangle object. * Creates a Rectangle object.
* *
* @name Rectangle#initialize * @name Rectangle#initialize
* @param {Object} object An object literal containing properties to be * @param {Object} object an object containing properties to be set on the
* set on the rectangle. * rectangle.
* *
* @example // Create a rectangle between {x: 20, y: 20} and {x: 80, y:80} * @example // Create a rectangle between {x: 20, y: 20} and {x: 80, y:80}
* var rectangle = new Rectangle({ * var rectangle = new Rectangle({

View file

@ -26,17 +26,19 @@
* *
* // Create a rectangle shaped path between * // Create a rectangle shaped path between
* // the topLeft and bottomRight points: * // the topLeft and bottomRight points:
* var path = new Path.Rectangle(topLeft, bottomRight); * var path = new Path.Rectangle({
* * topLeft: topLeft,
* // Fill the path with a gradient of three evenly divided color stops * bottomRight: bottomRight,
* // Fill the path with a gradient of three color stops
* // that runs between the two points we defined earlier: * // that runs between the two points we defined earlier:
* path.fillColor = { * fillColor: {
* gradient: { * gradient: {
* stops: ['yellow', 'red', 'blue'] * stops: ['yellow', 'red', 'blue']
* }, * },
* origin: topLeft, * origin: topLeft,
* destination: bottomRight * destination: bottomRight
* }; * }
* });
* *
* @classexample {@paperscript height=300} * @classexample {@paperscript height=300}
* // Create a circle shaped path at the center of the view, * // Create a circle shaped path at the center of the view,