mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-28 05:50:26 -04:00
Restructure style related class organization.
This commit is contained in:
parent
2d3f9c36eb
commit
8da8f116d1
5 changed files with 13 additions and 6 deletions
|
@ -65,7 +65,6 @@ var paper = new function() {
|
||||||
/*#*/ include('item/PlacedItem.js');
|
/*#*/ include('item/PlacedItem.js');
|
||||||
/*#*/ include('item/Raster.js');
|
/*#*/ include('item/Raster.js');
|
||||||
/*#*/ include('item/PlacedSymbol.js');
|
/*#*/ include('item/PlacedSymbol.js');
|
||||||
/*#*/ include('item/Style.js');
|
|
||||||
/*#*/ include('item/HitResult.js');
|
/*#*/ include('item/HitResult.js');
|
||||||
|
|
||||||
/*#*/ include('path/Segment.js');
|
/*#*/ include('path/Segment.js');
|
||||||
|
@ -82,9 +81,10 @@ var paper = new function() {
|
||||||
/*#*/ include('text/TextItem.js');
|
/*#*/ include('text/TextItem.js');
|
||||||
/*#*/ include('text/PointText.js');
|
/*#*/ include('text/PointText.js');
|
||||||
|
|
||||||
/*#*/ include('color/Color.js');
|
/*#*/ include('style/Style.js');
|
||||||
/*#*/ include('color/Gradient.js');
|
/*#*/ include('style/Color.js');
|
||||||
/*#*/ include('color/GradientStop.js');
|
/*#*/ include('style/Gradient.js');
|
||||||
|
/*#*/ include('style/GradientStop.js');
|
||||||
|
|
||||||
/*#*/ if (options.browser) {
|
/*#*/ if (options.browser) {
|
||||||
/*#*/ include('browser/DomElement.js');
|
/*#*/ include('browser/DomElement.js');
|
||||||
|
|
|
@ -416,7 +416,7 @@ var Color = this.Color = Base.extend(new function() {
|
||||||
/**
|
/**
|
||||||
* Creates a HSL Color object
|
* 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
|
* @param {Number} hue the hue of the color as a value in degrees between
|
||||||
* {@code 0} and {@code 360}.
|
* {@code 0} and {@code 360}.
|
||||||
* @param {Number} saturation the saturation of the color as a value
|
* @param {Number} saturation the saturation of the color as a value
|
|
@ -18,6 +18,7 @@
|
||||||
var Gradient = this.Gradient = Base.extend(/** @lends Gradient# */{
|
var Gradient = this.Gradient = Base.extend(/** @lends Gradient# */{
|
||||||
_class: 'Gradient',
|
_class: 'Gradient',
|
||||||
|
|
||||||
|
// DOCS: Document #initialize()
|
||||||
initialize: function(stops, radial) {
|
initialize: function(stops, radial) {
|
||||||
// Define this Gradient's unique id.
|
// Define this Gradient's unique id.
|
||||||
this._id = ++Base._uid;
|
this._id = ++Base._uid;
|
||||||
|
@ -111,6 +112,12 @@ var Gradient = this.Gradient = Base.extend(/** @lends Gradient# */{
|
||||||
this._changed();
|
this._changed();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies whether the gradient is radial or linear.
|
||||||
|
*
|
||||||
|
* @type Boolean
|
||||||
|
* @bean
|
||||||
|
*/
|
||||||
getRadial: function() {
|
getRadial: function() {
|
||||||
return this._radial;
|
return this._radial;
|
||||||
},
|
},
|
|
@ -394,7 +394,7 @@ var Style = this.Style = Base.extend(new function() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@grouptitle Character Style}
|
* {@grouptitle Paragraph Style}
|
||||||
*
|
*
|
||||||
* The justification of text paragraphs.
|
* The justification of text paragraphs.
|
||||||
*
|
*
|
Loading…
Add table
Add a link
Reference in a new issue