From 78f43b52b9ec32ad908d1f6fd97ad3fa265617ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 29 May 2011 21:35:46 +0100 Subject: [PATCH] Set default styles for Project#currentStyle. --- src/project/Project.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/project/Project.js b/src/project/Project.js index 5937f81e..78e44144 100644 --- a/src/project/Project.js +++ b/src/project/Project.js @@ -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