mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 06:12:34 -05:00
Improve CharacterStyle documentation.
This commit is contained in:
parent
10763edc68
commit
bf19d8944c
1 changed files with 5 additions and 1 deletions
|
@ -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, {
|
||||||
|
|
Loading…
Reference in a new issue