mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Documentation: add class example to PointText.
This commit is contained in:
parent
b5cc2e9334
commit
3a9da3c0a0
1 changed files with 6 additions and 5 deletions
|
@ -23,15 +23,16 @@ var PointText = this.PointText = TextItem.extend({
|
||||||
* @param {Point} point the position where the text will start
|
* @param {Point} point the position where the text will start
|
||||||
* @constructs PointText
|
* @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
|
* @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
|
* project which starts from a certain point and extends by the amount of
|
||||||
* characters contained in it.
|
* 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
|
* @extends TextItem
|
||||||
*/
|
*/
|
||||||
initialize: function(point) {
|
initialize: function(point) {
|
||||||
|
|
Loading…
Reference in a new issue