Improve PointText constructor examples.

This commit is contained in:
Jonathan Puckey 2013-04-21 15:59:51 +02:00
parent 52e7c39567
commit 3517493f76

View file

@ -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() {