From 7b06aac1ad6035183c8b3a25275d1009a77dcbc9 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Fri, 22 Dec 2017 12:32:43 +0530 Subject: [PATCH] against Merge Request #804 --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 1be7e54..eb1e6ac 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -4908,10 +4908,10 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l //0. get current layer number - if (isResized) { + if (isResized || isLayerChanged) { //do nothing - } - else if (isLayerChanged) { + $scope.transNumber = 100; + $(".slider").slider('value', 100); } else { @@ -5427,8 +5427,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.DrawOnTBWithSelectedTransparency = function (tempCanvasID, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage, Height, Width, bodyRegionId, isLayerChanged, isResized) { - - var transNumber = $scope.transNumber;//txtTransparencyChange.value; //this changes the transparency when transparency is already activated and user resizes or chage the layer @@ -5454,6 +5452,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l //} } + + // set every fourth value to the desired number of transparency var imageD1 = tempCtx.getImageData(0, 0, Width, Height); var imageData1 = imageD1.data; -- libgit2 0.21.4