Improve CharacterStyle documentation.

This commit is contained in:
Jonathan Puckey 2011-05-27 13:54:27 +02:00
parent 10763edc68
commit bf19d8944c

View file

@ -30,11 +30,15 @@ var CharacterStyle = this.CharacterStyle = PathStyle.extend({
* @class The CharacterStyle object represents the character style of a text * @class The CharacterStyle object represents the character style of a text
* item ({@link TextItem#characterStyle}) * item ({@link TextItem#characterStyle})
* *
* @example * Sample code:
* <pre>
* var text = new PointText(new Point(50, 50)); * var text = new PointText(new Point(50, 50));
* text.fillColor = 'black'; * text.fillColor = 'black';
* text.content = 'Hello world.'; * text.content = 'Hello world.';
* text.characterStyle.fontSize = 50; * text.characterStyle.fontSize = 50;
* </pre>
*
* @extends PathStyle
*/ */
initialize: function(style) { initialize: function(style) {
Base.initialize(this, style, { Base.initialize(this, style, {