Restructure style related class organization.

This commit is contained in:
Jürg Lehni 2013-04-09 17:08:09 -07:00
parent 2d3f9c36eb
commit 8da8f116d1
5 changed files with 13 additions and 6 deletions

View file

@ -65,7 +65,6 @@ var paper = new function() {
/*#*/ include('item/PlacedItem.js');
/*#*/ include('item/Raster.js');
/*#*/ include('item/PlacedSymbol.js');
/*#*/ include('item/Style.js');
/*#*/ include('item/HitResult.js');
/*#*/ include('path/Segment.js');
@ -82,9 +81,10 @@ var paper = new function() {
/*#*/ include('text/TextItem.js');
/*#*/ include('text/PointText.js');
/*#*/ include('color/Color.js');
/*#*/ include('color/Gradient.js');
/*#*/ include('color/GradientStop.js');
/*#*/ include('style/Style.js');
/*#*/ include('style/Color.js');
/*#*/ include('style/Gradient.js');
/*#*/ include('style/GradientStop.js');
/*#*/ if (options.browser) {
/*#*/ include('browser/DomElement.js');

View file

@ -416,7 +416,7 @@ var Color = this.Color = Base.extend(new function() {
/**
* Creates a HSL Color object
*
* @name HSL Color#initialize
* @name Color#initialize
* @param {Number} hue the hue of the color as a value in degrees between
* {@code 0} and {@code 360}.
* @param {Number} saturation the saturation of the color as a value

View file

@ -18,6 +18,7 @@
var Gradient = this.Gradient = Base.extend(/** @lends Gradient# */{
_class: 'Gradient',
// DOCS: Document #initialize()
initialize: function(stops, radial) {
// Define this Gradient's unique id.
this._id = ++Base._uid;
@ -111,6 +112,12 @@ var Gradient = this.Gradient = Base.extend(/** @lends Gradient# */{
this._changed();
},
/**
* Specifies whether the gradient is radial or linear.
*
* @type Boolean
* @bean
*/
getRadial: function() {
return this._radial;
},

View file

@ -394,7 +394,7 @@ var Style = this.Style = Base.extend(new function() {
*/
/**
* {@grouptitle Character Style}
* {@grouptitle Paragraph Style}
*
* The justification of text paragraphs.
*