Commit 9af4d111fe4620820db6ad6ad12a988cf09167c9
1 parent
16ed4043
Fixed issue:
Mirror were not un highlighting on Non Mirror click.
Showing
1 changed file
with
14 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -1141,7 +1141,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1141 | 1141 | { |
1142 | 1142 | if ($scope.multiAnnotationIsON == false) |
1143 | 1143 | { |
1144 | - for (var i = 0; i < $scope.machedIcolorInBodyRegion.length; i++) { | |
1144 | + for (var i = 0; i < $scope.machedIcolorInBodyRegion.length; i++) | |
1145 | + { | |
1145 | 1146 | var bodyRegionId = $scope.machedIcolorInBodyRegion[i]; |
1146 | 1147 | |
1147 | 1148 | var grayCanvasID = 'imageCanvas' + bodyRegionId; |
... | ... | @@ -1153,6 +1154,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1153 | 1154 | |
1154 | 1155 | grayCanvasContext.putImageData(grayImageData, 0, 0) |
1155 | 1156 | |
1157 | + // for unhighlight the mirrored body region | |
1158 | + if (bodyRegionId == 4 || bodyRegionId == 5 || bodyRegionId == 6) { | |
1159 | + var grayCanvasID = 'imageCanvas' + bodyRegionId + '_MR'; | |
1160 | + var grayCanvasMR = document.getElementById(grayCanvasID); | |
1161 | + | |
1162 | + var grayCanvasContextMR = grayCanvasMR.getContext("2d"); | |
1163 | + | |
1164 | + var grayImageDataMR = $rootScope.grayImageMRDataList[bodyRegionId]; | |
1165 | + | |
1166 | + grayCanvasContextMR.putImageData(grayImageDataMR, 0, 0) | |
1167 | + } | |
1168 | + | |
1156 | 1169 | } |
1157 | 1170 | } |
1158 | 1171 | } | ... | ... |