mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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
|
* @name PointText#initialize
|
||||||
* @param {Point} point the position where the text will start
|
* @param {Point} point the position where the text will start
|
||||||
*
|
*
|
||||||
* @example
|
* @example {@paperscript}
|
||||||
* var text = new PointText(new Point(50, 100));
|
* var text = new PointText(new Point(200, 50));
|
||||||
* text.justification = 'center';
|
* text.justification = 'center';
|
||||||
* text.fillColor = 'black';
|
* text.fillColor = 'black';
|
||||||
* text.content = 'The contents of the point text';
|
* 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() {
|
clone: function() {
|
||||||
|
|
Loading…
Reference in a new issue