diff --git a/public/javascripts/spacedeck_whiteboard.js b/public/javascripts/spacedeck_whiteboard.js index a291253..36104bb 100644 --- a/public/javascripts/spacedeck_whiteboard.js +++ b/public/javascripts/spacedeck_whiteboard.js @@ -589,8 +589,8 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - stroke_color: $scope.active_style.stroke_color, - stroke: 2, + stroke_color: $scope.active_style.stroke_color == "rgba(0,0,0,0)" ? "rgba(0,0,0,255)" : $scope.active_style.stroke_color, + stroke: $scope.active_style.stroke == 0 ? 2 : $scope.active_style.stroke, shape: "scribble" }; @@ -625,8 +625,8 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - stroke_color: $scope.active_style.stroke_color, - stroke: 2, + stroke_color: $scope.active_style.stroke_color == "rgba(0,0,0,0)" ? "rgba(0,0,0,255)" : $scope.active_style.stroke_color, + stroke: $scope.active_style.stroke == 0 ? 2 : $scope.active_style.stroke, shape: "arrow" };