mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-10 21:19:10 -04:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
90631b9dd0
86 changed files with 1807 additions and 2007 deletions
src/project
|
@ -65,6 +65,25 @@ var Project = this.Project = Base.extend({
|
|||
*
|
||||
* @type PathStyle
|
||||
* @bean
|
||||
*
|
||||
* @example
|
||||
* project.currentStyle = {
|
||||
* fillColor: 'red',
|
||||
* strokeColor: 'black',
|
||||
* strokeWidth: 5
|
||||
* }
|
||||
*
|
||||
* // The following path will take over all style properties of
|
||||
* // the current style:
|
||||
* var path = new Path.Circle(new Point(50, 50), 30);
|
||||
* console.log(path.strokeWidth); // 5
|
||||
*
|
||||
* @example
|
||||
* project.currentStyle.fillColor = 'red';
|
||||
*
|
||||
* // The following path will take over the fill color we just set:
|
||||
* var path = new Path.Circle(new Point(50, 50), 30);
|
||||
* console.log(path.fillColor); // RGBColor(1, 0, 0)
|
||||
*/
|
||||
getCurrentStyle: function() {
|
||||
return this._currentStyle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue