mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Docs: More smaller fixes.
This commit is contained in:
parent
543609c0c6
commit
b325aebc77
3 changed files with 19 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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-
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue