mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Improve PointText constructor examples.
This commit is contained in:
parent
52e7c39567
commit
3517493f76
1 changed files with 11 additions and 2 deletions
|
@ -28,11 +28,20 @@ var PointText = this.PointText = TextItem.extend(/** @lends PointText# */{
|
|||
* @name PointText#initialize
|
||||
* @param {Point} point the position where the text will start
|
||||
*
|
||||
* @example
|
||||
* var text = new PointText(new Point(50, 100));
|
||||
* @example {@paperscript}
|
||||
* var text = new PointText(new Point(200, 50));
|
||||
* text.justification = 'center';
|
||||
* text.fillColor = 'black';
|
||||
* text.content = 'The contents of the point text';
|
||||
*
|
||||
* @example {@paperscript}
|
||||
* // Using object notation:
|
||||
* var text = new PointText({
|
||||
* point: [50, 50],
|
||||
* content: 'The contents of the point text',
|
||||
* fillColor: 'black',
|
||||
* fontSize: 25
|
||||
* });
|
||||
*/
|
||||
|
||||
clone: function() {
|
||||
|
|
Loading…
Reference in a new issue