Skip to content

Commit b325aeb

Browse files
committed
Docs: More smaller fixes.
1 parent 543609c commit b325aeb

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

src/path/Path.Constructors.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ Path.inject({ statics: new function() {
279279
* size: [180, 60],
280280
* fillColor: 'black'
281281
* });
282+
*
283+
* @example {@paperscript} // Placing by center and radius
284+
* var shape = new Path.Ellipse({
285+
* center: [110, 50],
286+
* radius: [90, 30],
287+
* fillColor: 'black'
288+
* });
282289
*/
283290
Ellipse: function(/* rectangle */) {
284291
var rect;

src/path/Path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,7 @@ var Path = PathItem.extend(/** @lends Path# */{
23252325
matrix);
23262326
},
23272327

2328-
// Mess with indentation in order to get more line-space below...
2328+
// Mess with indentation in order to get more line-space below:
23292329
statics: {
23302330
/**
23312331
* Determines whether the segments describe a path in clockwise or counter-

src/text/PointText.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,24 @@ var PointText = TextItem.extend(/** @lends PointText# */{
2727
*
2828
* @name PointText#initialize
2929
* @param {Point} point the position where the text will start
30+
* @return {PointText} the newly created point text
3031
*
3132
* @example {@paperscript}
3233
* var text = new PointText(new Point(200, 50));
3334
* text.justification = 'center';
3435
* text.fillColor = 'black';
3536
* text.content = 'The contents of the point text';
36-
*
37+
*/
38+
/**
39+
* Creates a point text item from the properties described by an object
40+
* literal.
41+
*
42+
* @name PointText#initialize
43+
* @param {Object} object an object literal containing properties
44+
* describing the path's attributes
45+
* @return {PointText} the newly created point text
46+
*
3747
* @example {@paperscript}
38-
* // Using object notation:
3948
* var text = new PointText({
4049
* point: [50, 50],
4150
* content: 'The contents of the point text',

0 commit comments

Comments
 (0)