From 9bd18a5a28260df893ca57edad0523d7c015d1b7 Mon Sep 17 00:00:00 2001 From: Mukul Date: Thu, 12 Jan 2017 13:08:13 +0530 Subject: [PATCH] this is for opacity on brush draw sketch --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index b560793..afda8b5 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -372,7 +372,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $rootScope.shapeSize = parseInt(btnBrushSizeValue); $("#annotationpaintbrushsize").attr("data-size", $rootScope.shapeSize); - $("#annotationpaintbrushsize").attr("data-color", $rootScope.shapestyleFillColor); + $("#annotationpaintbrushsize").attr("data-color", $rootScope.shapestyleColorWithOpacity); @@ -475,6 +475,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $rootScope.shapestyleOpacity = $("#" + id).css('opacity'); $("#shapeStyleDiv").parent().css("opacity", $rootScope.shapestyleOpacity); $rootScope.shapestyleFillColor = $("#" + id).css('background-color'); + $rootScope.shapeStyleColorRGBA = $rootScope.shapestyleFillColor.replace("rgb", "rgba"); + $rootScope.shapestyleColorWithOpacity = $rootScope.shapeStyleColorRGBA.substring(0, $rootScope.shapeStyleColorRGBA.length - 1) + " " + "," + $rootScope.shapestyleOpacity + ")"; $("#shapeStyleDiv").css("background-color", $rootScope.shapestyleFillColor); $rootScope.shapestyleborderColor = $("#" + id).parent().css("border-top-color"); // $("#shapeStyleDiv").parent().css("border-color", $rootScope.shapestyleborderColor); -- libgit2 0.21.4