mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
||||
* item ({@link TextItem#characterStyle})
|
||||
*
|
||||
* @example
|
||||
* Sample code:
|
||||
* <pre>
|
||||
* var text = new PointText(new Point(50, 50));
|
||||
* text.fillColor = 'black';
|
||||
* text.content = 'Hello world.';
|
||||
* text.characterStyle.fontSize = 50;
|
||||
* </pre>
|
||||
*
|
||||
* @extends PathStyle
|
||||
*/
|
||||
initialize: function(style) {
|
||||
Base.initialize(this, style, {
|
||||
|
|
Loading…
Reference in a new issue