mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-24 08:20:09 -05:00
31 lines
729 B
JavaScript
31 lines
729 B
JavaScript
/*
|
|
* Paper.js
|
|
*
|
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
|
* based on Scriptographer.org and designed to be largely API compatible.
|
|
* http://paperjs.org/
|
|
* http://scriptographer.org/
|
|
*
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
*
|
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
var ParagraphStyle = this.ParagraphStyle = Base.extend({
|
|
initialize: function(style) {
|
|
Base.initialize(this, style, {
|
|
justification: 'left'
|
|
});
|
|
},
|
|
|
|
statics: {
|
|
create: function(item) {
|
|
var style = new CharacterStyle(CharacterStyle.dont);
|
|
style._item = item;
|
|
return style;
|
|
}
|
|
}
|
|
});
|