From 703fb3d06e88257ac73c1d1a0ec6ca33a64f4371 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Wed, 7 Mar 2012 14:33:21 -0800 Subject: implement stroke hardness such that it is percentage of the stroke width that's fully the color of the brush AND add a smoothing flag for the brush options --- .../tools-properties/brush-properties.reel/brush-properties.html | 4 +++- .../tools-properties/brush-properties.reel/brush-properties.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'js/components') diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.html b/js/components/tools-properties/brush-properties.reel/brush-properties.html index af07b3f2..6d4852e6 100755 --- a/js/components/tools-properties/brush-properties.reel/brush-properties.html +++ b/js/components/tools-properties/brush-properties.reel/brush-properties.html @@ -43,7 +43,8 @@ "properties": { "element": {"#": "brushProperties"}, "_strokeSize": {"@": "strokeSizeHT"}, - "_strokeHardness": {"@": "strokeHardnessHT"} + "_strokeHardness": {"@": "strokeHardnessHT"}, + "_doSmoothing": {"@": "doSmoothing"} } } } @@ -58,6 +59,7 @@
+ diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.js b/js/components/tools-properties/brush-properties.reel/brush-properties.js index d2fcf888..0ce685b5 100755 --- a/js/components/tools-properties/brush-properties.reel/brush-properties.js +++ b/js/components/tools-properties/brush-properties.reel/brush-properties.js @@ -14,5 +14,8 @@ exports.BrushProperties = Montage.create(ToolProperties, { }, strokeHardness: { get: function() { return this._strokeHardness; } + }, + doSmoothing:{ + get: function() {return this._doSmoothing; } } }); -- cgit v1.2.3