Commit 4e7a5a9b0b1849a1d35c5fb13638fd7f72fc746d
Merge branch 'LeftBarButtons' of http://52.6.196.163/ADAM/AIAHTML5 into DASettings
Showing
2 changed files
with
42 additions
and
14 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -72,6 +72,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
72 | 72 | |
73 | 73 | //normal mode |
74 | 74 | $rootScope.isNormalMode = false; |
75 | + $rootScope.isZoomed = false; | |
75 | 76 | |
76 | 77 | //navigator man functionality |
77 | 78 | $scope.NavOrientationdata; |
... | ... | @@ -1071,7 +1072,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1071 | 1072 | FlipedImgCanvas.style.visibility = 'visible' |
1072 | 1073 | } |
1073 | 1074 | else { |
1074 | - if ($rootScope.isHighLight == true) { | |
1075 | + if ($rootScope.isHighLight == true && $rootScope.isZoomed == false) { | |
1075 | 1076 | FlipedImgCanvas.style.visibility = 'hidden'; |
1076 | 1077 | } |
1077 | 1078 | } |
... | ... | @@ -1310,14 +1311,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1310 | 1311 | |
1311 | 1312 | imgCanvas.id = 'imageCanvas' + bodyRegionId; |
1312 | 1313 | |
1313 | - if ($rootScope.isExtract == true) { | |
1314 | - imgCanvas.style.visibility = 'visible' | |
1315 | - } | |
1316 | - else { | |
1317 | - if ($rootScope.isHighLight == true) { | |
1318 | - imgCanvas.style.visibility = 'hidden'; | |
1319 | - } | |
1320 | - } | |
1314 | + | |
1321 | 1315 | |
1322 | 1316 | if (bodyRegionId == 3) { |
1323 | 1317 | //set z index of hip canavs to fix the issue caused by overlapping of arm canavs on hip canavs. |
... | ... | @@ -1333,6 +1327,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1333 | 1327 | if (($scope.voId == 11 || $scope.voId == 9) && bodyRegionId == 6) { |
1334 | 1328 | imgCanvas.style.zIndex = "500"; |
1335 | 1329 | } |
1330 | + | |
1331 | + if ($rootScope.isExtract == true) { | |
1332 | + imgCanvas.style.visibility = 'visible' | |
1333 | + } | |
1334 | + else { | |
1335 | + | |
1336 | + if ($rootScope.isHighLight == true && $rootScope.isZoomed == false) { | |
1337 | + imgCanvas.style.visibility = 'hidden'; | |
1338 | + } | |
1339 | + } | |
1340 | + | |
1341 | + | |
1342 | + | |
1336 | 1343 | } |
1337 | 1344 | |
1338 | 1345 | imgCanvas.addEventListener('click', function (evt) { |
... | ... | @@ -2242,8 +2249,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2242 | 2249 | $('.dynCross').on('click', function (evt) { |
2243 | 2250 | $(this).parent().parent().parent().css('display', 'none'); |
2244 | 2251 | |
2245 | - | |
2246 | - | |
2247 | 2252 | }); |
2248 | 2253 | |
2249 | 2254 | |
... | ... | @@ -4139,7 +4144,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4139 | 4144 | |
4140 | 4145 | } |
4141 | 4146 | |
4142 | - $scope.Zoom = function () { | |
4147 | + $scope.enableZoom = function () { | |
4148 | + | |
4149 | + $rootScope.isZoomed = true; | |
4150 | + //1. | |
4143 | 4151 | $scope.flushCanvas(); |
4144 | 4152 | |
4145 | 4153 | if ($scope.zoomInOut == 25) { |
... | ... | @@ -4150,7 +4158,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4150 | 4158 | $scope.zoomInOut = 25; |
4151 | 4159 | } |
4152 | 4160 | |
4161 | + //2. | |
4153 | 4162 | $scope.CalculateImageCordinates($scope.viewOrientationId); |
4163 | + | |
4164 | + //3. | |
4154 | 4165 | if ($scope.zoomInOut == 25) |
4155 | 4166 | $('#canvasDiv').scrollLeft(0) |
4156 | 4167 | else |
... | ... | @@ -4164,6 +4175,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4164 | 4175 | if ($('#sppeachBubble').length > 0) { |
4165 | 4176 | $('#sppeachBubble').remove(); |
4166 | 4177 | } |
4178 | + | |
4179 | + //4. | |
4180 | + if ($rootScope.isHighLight == true) { | |
4181 | + | |
4182 | + $timeout(function () { $scope.highLightBody() }, 50); | |
4183 | + } | |
4167 | 4184 | } |
4168 | 4185 | |
4169 | 4186 | $scope.flushCanvas = function () { |
... | ... | @@ -4194,7 +4211,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4194 | 4211 | }); |
4195 | 4212 | } |
4196 | 4213 | |
4197 | - $scope.enableHighlight = function () { | |
4214 | + $scope.enableHighlight = function () | |
4215 | + { | |
4198 | 4216 | |
4199 | 4217 | if ($rootScope.isHighLight == true) { |
4200 | 4218 | |
... | ... | @@ -4202,6 +4220,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4202 | 4220 | else { |
4203 | 4221 | $rootScope.isHighLight = true; |
4204 | 4222 | $rootScope.isNormalMode = false; |
4223 | + $rootScope.isZoomed = false; | |
4224 | + | |
4205 | 4225 | if ($rootScope.isExtract == true) { |
4206 | 4226 | //1. |
4207 | 4227 | $rootScope.isExtract = false; |
... | ... | @@ -4210,6 +4230,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4210 | 4230 | |
4211 | 4231 | //2. |
4212 | 4232 | $scope.CalculateImageCordinates($scope.viewOrientationId); |
4233 | + | |
4234 | + | |
4213 | 4235 | } |
4214 | 4236 | |
4215 | 4237 | //3. |
... | ... | @@ -4238,7 +4260,13 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4238 | 4260 | //4. |
4239 | 4261 | $rootScope.isExtract = false; |
4240 | 4262 | |
4263 | + //5. | |
4264 | + $rootScope.isZoomed = false; | |
4265 | + | |
4266 | + //6. | |
4241 | 4267 | $scope.CalculateImageCordinates($scope.viewOrientationId); |
4268 | + | |
4269 | + | |
4242 | 4270 | } |
4243 | 4271 | |
4244 | 4272 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... | ... | @@ -105,7 +105,7 @@ |
105 | 105 | <button id="btnIdentity" class="btn btn-primary btn-sm tooltip-custom" ng-click="OnIdentityClick()" data-toggle="tooltip" data-placement="bottom" title="Identify"> <img src="content/images/icon-identity.png" alt="" title=""></button> |
106 | 106 | </div> |
107 | 107 | <div class="col-sm-6 pull-right"> |
108 | - <button class="btn btn-black btn-sm pull-right tooltip-custom" ng-click="Zoom()" data-toggle="tooltip" data-placement="bottom" title="Zoom-in/Zoom-out"> | |
108 | + <button class="btn btn-black btn-sm pull-right tooltip-custom" ng-click="enableZoom()" data-toggle="tooltip" data-placement="bottom" title="Zoom-in/Zoom-out"> | |
109 | 109 | <img src="content/images/icon-zoom.png" alt="" title=""> |
110 | 110 | </button> |
111 | 111 | </div> | ... | ... |