mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Set default styles for Project#currentStyle.
This commit is contained in:
parent
2cbc6ae392
commit
78f43b52b9
1 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,14 @@ var Project = this.Project = Base.extend({
|
|||
// Push it onto this._scope.projects and set index:
|
||||
this._index = this._scope.projects.push(this) - 1;
|
||||
this._currentStyle = PathStyle.create(null);
|
||||
this.setCurrentStyle({
|
||||
strokeWidth: 1,
|
||||
strokeCap: 'butt',
|
||||
strokeJoin: 'miter',
|
||||
miterLimit: 10,
|
||||
dashOffset: 0,
|
||||
dashArray: []
|
||||
});
|
||||
this._selectedItems = {};
|
||||
this._selectedItemCount = 0;
|
||||
// Activate straight away so paper.project is set, as required by
|
||||
|
|
Loading…
Reference in a new issue