mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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:
|
// Push it onto this._scope.projects and set index:
|
||||||
this._index = this._scope.projects.push(this) - 1;
|
this._index = this._scope.projects.push(this) - 1;
|
||||||
this._currentStyle = PathStyle.create(null);
|
this._currentStyle = PathStyle.create(null);
|
||||||
|
this.setCurrentStyle({
|
||||||
|
strokeWidth: 1,
|
||||||
|
strokeCap: 'butt',
|
||||||
|
strokeJoin: 'miter',
|
||||||
|
miterLimit: 10,
|
||||||
|
dashOffset: 0,
|
||||||
|
dashArray: []
|
||||||
|
});
|
||||||
this._selectedItems = {};
|
this._selectedItems = {};
|
||||||
this._selectedItemCount = 0;
|
this._selectedItemCount = 0;
|
||||||
// Activate straight away so paper.project is set, as required by
|
// Activate straight away so paper.project is set, as required by
|
||||||
|
|
Loading…
Reference in a new issue