File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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:
23292329statics : {
23302330 /**
23312331 * Determines whether the segments describe a path in clockwise or counter-
Original file line number Diff line number Diff 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',
You can’t perform that action at this time.
0 commit comments