Docs: More smaller fixes.

This commit is contained in:
Jürg Lehni 2013-10-16 15:03:29 +02:00
parent 543609c0c6
commit b325aebc77
3 changed files with 19 additions and 3 deletions

View file

@ -279,6 +279,13 @@ Path.inject({ statics: new function() {
* size: [180, 60],
* fillColor: 'black'
* });
*
* @example {@paperscript} // Placing by center and radius
* var shape = new Path.Ellipse({
* center: [110, 50],
* radius: [90, 30],
* fillColor: 'black'
* });
*/
Ellipse: function(/* rectangle */) {
var rect;

View file

@ -2325,7 +2325,7 @@ var Path = PathItem.extend(/** @lends Path# */{
matrix);
},
// Mess with indentation in order to get more line-space below...
// Mess with indentation in order to get more line-space below:
statics: {
/**
* Determines whether the segments describe a path in clockwise or counter-

View file

@ -27,15 +27,24 @@ var PointText = TextItem.extend(/** @lends PointText# */{
*
* @name PointText#initialize
* @param {Point} point the position where the text will start
* @return {PointText} the newly created point text
*
* @example {@paperscript}
* var text = new PointText(new Point(200, 50));
* text.justification = 'center';
* text.fillColor = 'black';
* text.content = 'The contents of the point text';
*
*/
/**
* Creates a point text item from the properties described by an object
* literal.
*
* @name PointText#initialize
* @param {Object} object an object literal containing properties
* describing the path's attributes
* @return {PointText} the newly created point text
*
* @example {@paperscript}
* // Using object notation:
* var text = new PointText({
* point: [50, 50],
* content: 'The contents of the point text',