From 3a9da3c0a0bce80e8934b3910556ec055a51a4e1 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 21 Jun 2011 01:12:47 +0200 Subject: [PATCH] Documentation: add class example to PointText. --- src/text/PointText.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/text/PointText.js b/src/text/PointText.js index 927ede5f..eef89045 100644 --- a/src/text/PointText.js +++ b/src/text/PointText.js @@ -23,15 +23,16 @@ var PointText = this.PointText = TextItem.extend({ * @param {Point} point the position where the text will start * @constructs PointText * - * @example - * var text = new PointText(new Point(50, 100)); - * text.justification = 'center'; - * text.content = 'The contents of the point text'; - * * @class A PointText item represents a piece of typography in your Paper.js * project which starts from a certain point and extends by the amount of * characters contained in it. * + * @classexample {@paperscript height=100} + * var text = new PointText(258, 60); + * text.justification = 'center'; + * text.fontSize = 30; + * text.content = 'Hello world.'; + * * @extends TextItem */ initialize: function(point) {