Commit 99800c1ca96f03250ae53da315e9c052b4f6fc76
Merge branch 'MaintainExtSearchLayerChange' into Develop
Showing
1 changed file
with
34 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -1505,7 +1505,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1505 | 1505 | } |
1506 | 1506 | |
1507 | 1507 | if ($scope.isEligibleForHighlight == true) { |
1508 | - if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true)) || $scope.isExtract == true || $rootScope.isHighlightBodyByBodySystem == true) { | |
1508 | + if ($scope.isExtract == true) { | |
1509 | + $rootScope.isLoading = true; | |
1510 | + $('#spinner').css('visibility', 'visible'); | |
1511 | + $scope.highLightBody(); | |
1512 | + } | |
1513 | + else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true)) || $rootScope.isHighlightBodyByBodySystem == true) { | |
1514 | + | |
1515 | + console.log('1. $rootScope.isHighLight= ' + $rootScope.isHighLight) | |
1509 | 1516 | |
1510 | 1517 | $rootScope.isLoading = true; |
1511 | 1518 | $('#spinner').css('visibility', 'visible'); |
... | ... | @@ -1853,10 +1860,17 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1853 | 1860 | $scope.isEligibleForHighlight = false; |
1854 | 1861 | } |
1855 | 1862 | |
1863 | + | |
1856 | 1864 | if ($scope.isEligibleForHighlight == true) { |
1857 | 1865 | |
1858 | - if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true)) || $scope.isExtract == true || $rootScope.isHighlightBodyByBodySystem == true) { | |
1866 | + if ($scope.isExtract == true) { | |
1867 | + $rootScope.isLoading = true; | |
1868 | + $('#spinner').css('visibility', 'visible'); | |
1869 | + $scope.highLightBody(); | |
1870 | + } | |
1871 | + else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true)) || $scope.isExtract == true || $rootScope.isHighlightBodyByBodySystem == true) { | |
1859 | 1872 | |
1873 | + console.log('2. $rootScope.isHighLight= ' + $rootScope.isHighLight) | |
1860 | 1874 | |
1861 | 1875 | $rootScope.isLoading = true; |
1862 | 1876 | $('#spinner').css('visibility', 'visible'); |
... | ... | @@ -5616,6 +5630,24 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5616 | 5630 | |
5617 | 5631 | context.putImageData(DAData.data, 0, 0) |
5618 | 5632 | |
5633 | + | |
5634 | + //NIKI- to resolve lateral arm black issue in mode | |
5635 | + | |
5636 | + if ($rootScope.viewOrientationId == 5 && (value.bodyRegionId == 6 || value.bodyRegionId == 4)) { | |
5637 | + | |
5638 | + var imgData = context.getImageData(0, 0, width, ht); | |
5639 | + var data = imgData.data; | |
5640 | + var c = 0; | |
5641 | + for (var i = 0; i < data.length; i += 4) { | |
5642 | + if (data[i] == data[i + 1] && data[i + 1] == data[i + 2] && data[i + 2] === 0) { | |
5643 | + data[i + 3] = 0; | |
5644 | + } | |
5645 | + | |
5646 | + } | |
5647 | + context.putImageData(imgData, 0, 0); | |
5648 | + } | |
5649 | + | |
5650 | + | |
5619 | 5651 | var grayImageData = context.getImageData(0, 0, width, ht); |
5620 | 5652 | var grayImageImageDataVar = grayImageData.data; |
5621 | 5653 | ... | ... |