Commit a284bcd5193d25b8b82b8250fcf74005928c675d
1 parent
ad215f9f
Committed gitignore file
Showing
4 changed files
with
108 additions
and
78 deletions
.gitignore
... | ... | @@ -33,18 +33,7 @@ _ReSharper*/ |
33 | 33 | *.vssscc |
34 | 34 | $tf*/ |
35 | 35 | 400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj.user |
36 | -<<<<<<< HEAD | |
37 | -300-PROTOTYPES/POC/AIAHTML5 | |
38 | -400-SOURCECODE\AIAHTML5.Web\app\controllers*/ | |
39 | -400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js.orig | |
40 | -400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js.orig | |
41 | -400-SOURCECODE\AIAHTML5.Web\app\controllers*/ | |
42 | -400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js.orig | |
43 | -*.orig | |
44 | -400-SOURCECODE\AIAHTML5.Web\app\controllers*/ | |
45 | -======= | |
46 | 36 | 300-PROTOTYPES/POC/AIAHTML5 |
47 | 37 | 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js.orig |
48 | 38 | 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js.orig |
49 | -400-SOURCECODE/AIAHTML5.Web/index.html.orig | |
50 | ->>>>>>> 27d0ad0c6a406c5ac1911e4eafe4ab2d1a009416 | |
39 | +400-SOURCECODE/AIAHTML5.Web/index.html.orig | |
51 | 40 | \ No newline at end of file | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -45,7 +45,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
45 | 45 | $scope.doHighlightOrExtract = false; |
46 | 46 | $scope.isEligibleForHighlightBodyByTermList = false; |
47 | 47 | |
48 | - // $scope.AnteriorView = "active"; | |
48 | + // $scope.AnteriorView = "active"; | |
49 | 49 | |
50 | 50 | $scope.zoomInOut = 75; |
51 | 51 | $scope.speechBubbleCounter = 0; |
... | ... | @@ -943,17 +943,17 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
943 | 943 | var isiOSSafari = (navigator.userAgent.match(/iPad/i)) ? true : false; |
944 | 944 | |
945 | 945 | //set scrollbars on canvas and hide loading label |
946 | - $('#daLoaderLabel').css('visibility', 'hidden') | |
946 | + $('#daLoaderLabel').css('visibility', 'hidden') | |
947 | 947 | |
948 | 948 | |
949 | - $('#canvasDiv').css('overflow', 'scroll') | |
950 | - if (isiOSSafari) { | |
951 | - $('#canvasDiv').scrollLeft($('#canvasDiv').width() + 150) | |
949 | + $('#canvasDiv').css('overflow', 'scroll') | |
950 | + if (isiOSSafari) { | |
951 | + $('#canvasDiv').scrollLeft($('#canvasDiv').width() + 150) | |
952 | 952 | |
953 | - } | |
954 | - else { | |
955 | - $('#canvasDiv').scrollLeft($('#canvasDiv').width() / 2) | |
956 | - } | |
953 | + } | |
954 | + else { | |
955 | + $('#canvasDiv').scrollLeft($('#canvasDiv').width() / 2) | |
956 | + } | |
957 | 957 | |
958 | 958 | |
959 | 959 | // $('#canvasDiv').scrollLeft($scope.imageHorizontlScrollPosition) |
... | ... | @@ -1420,16 +1420,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1420 | 1420 | |
1421 | 1421 | |
1422 | 1422 | if (isMaskImage == 'N') { |
1423 | - $scope.ColoredImageSRC.push( | |
1424 | - { | |
1425 | - "bodyRegionId": bodyRegionId, "SRC": src, | |
1426 | - "Height": h, | |
1427 | - "Width": w, | |
1428 | - "x": x, | |
1429 | - "y": y, | |
1430 | - "haveMirror": 'true' | |
1431 | - } | |
1432 | - ); | |
1423 | + | |
1424 | + if ($scope.isLayerChangeByUpDownKey || $scope.isEnterPressed) { | |
1425 | + $scope.ColoredImageSRC.push( | |
1426 | + { | |
1427 | + "bodyRegionId": bodyRegionId, "SRC": src, | |
1428 | + "Height": h, | |
1429 | + "Width": w, | |
1430 | + "x": x, | |
1431 | + "y": y, | |
1432 | + "haveMirror": 'true' | |
1433 | + } | |
1434 | + ); | |
1435 | + } | |
1433 | 1436 | |
1434 | 1437 | // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) |
1435 | 1438 | |
... | ... | @@ -1454,7 +1457,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1454 | 1457 | |
1455 | 1458 | if ($scope.isEligibleForHighlight == true) |
1456 | 1459 | { |
1457 | - if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true))) { | |
1460 | + if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true))) { | |
1458 | 1461 | |
1459 | 1462 | $rootScope.isLoading = false; |
1460 | 1463 | $('#spinner').css('visibility', 'hidden'); |
... | ... | @@ -1734,6 +1737,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1734 | 1737 | |
1735 | 1738 | img.src = src; |
1736 | 1739 | |
1740 | + | |
1741 | + | |
1737 | 1742 | function start() { |
1738 | 1743 | //debugger; |
1739 | 1744 | context.drawImage(img, 0, 0); |
... | ... | @@ -1743,17 +1748,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1743 | 1748 | //do nothing |
1744 | 1749 | } |
1745 | 1750 | else { |
1746 | - $scope.ColoredImageSRC.push( | |
1747 | - { | |
1748 | - "bodyRegionId": bodyRegionId, "SRC": src, | |
1749 | - "Height": h, | |
1750 | - "Width": w, | |
1751 | - "x": x, | |
1752 | - "y": y, | |
1753 | - "haveMirror": 'false' | |
1754 | - } | |
1755 | - | |
1756 | - ); | |
1751 | + if (($scope.isLayerChangeByUpDownKey) || ($scope.isEnterPressed)) { | |
1752 | + $scope.ColoredImageSRC.push( | |
1753 | + { | |
1754 | + "bodyRegionId": bodyRegionId, "SRC": src, | |
1755 | + "Height": h, | |
1756 | + "Width": w, | |
1757 | + "x": x, | |
1758 | + "y": y, | |
1759 | + "haveMirror": 'false' | |
1760 | + } | |
1761 | + | |
1762 | + ); | |
1763 | + } | |
1757 | 1764 | |
1758 | 1765 | if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { |
1759 | 1766 | |
... | ... | @@ -1851,10 +1858,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1851 | 1858 | |
1852 | 1859 | if ($rootScope.isListManagerSelected) { |
1853 | 1860 | |
1854 | - multiTermList = $scope.AllTerms; | |
1861 | + multiTermList = $scope.AllTerms; | |
1855 | 1862 | |
1856 | - } | |
1857 | - else if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && ($rootScope.previousHighlightList.length > 0)) { | |
1863 | + } | |
1864 | + else if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && ($rootScope.previousHighlightList.length > 0)) { | |
1858 | 1865 | angular.forEach($rootScope.previousHighlightList, function (value, key) { |
1859 | 1866 | |
1860 | 1867 | var ActualTermNo = $scope.getActualTermNumber(value); |
... | ... | @@ -2414,10 +2421,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2414 | 2421 | $scope.LayerChange = function () { |
2415 | 2422 | |
2416 | 2423 | |
2417 | - //if listanager is visisble then close it | |
2418 | - $rootScope.isListManagerSelected = false; | |
2424 | + //if listanager is visisble then close it | |
2425 | + $rootScope.isListManagerSelected = false; | |
2419 | 2426 | |
2420 | - $rootScope.CloseListManager(); | |
2427 | + $rootScope.CloseListManager(); | |
2421 | 2428 | |
2422 | 2429 | |
2423 | 2430 | |
... | ... | @@ -2506,6 +2513,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2506 | 2513 | } |
2507 | 2514 | |
2508 | 2515 | else { |
2516 | + | |
2517 | + | |
2509 | 2518 | //1. Dated:13-07-2016 Issue #4965 : The layer number should not extend beyond its level through layer text box. |
2510 | 2519 | var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length; |
2511 | 2520 | if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) { |
... | ... | @@ -2516,6 +2525,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2516 | 2525 | else |
2517 | 2526 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); |
2518 | 2527 | |
2528 | + //$scope.isMousUp(); | |
2529 | + | |
2530 | + //alert('$scope.currentLayerNumber'); | |
2531 | + | |
2519 | 2532 | $rootScope.isLoading = true; |
2520 | 2533 | $('#spinner').css('visibility', 'visible'); |
2521 | 2534 | var canDiv = document.getElementById('canvasDiv'); |
... | ... | @@ -2524,6 +2537,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2524 | 2537 | canDiv.innerHTML = ''; |
2525 | 2538 | } |
2526 | 2539 | |
2540 | + | |
2541 | + | |
2527 | 2542 | //2. |
2528 | 2543 | $scope.CalculateImageCordinates($rootScope.viewOrientationId); |
2529 | 2544 | |
... | ... | @@ -2543,6 +2558,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2543 | 2558 | $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.layerNumber)); |
2544 | 2559 | } |
2545 | 2560 | |
2561 | + $scope.LayerChangeOnMouseUpDown = function (e) | |
2562 | + { | |
2563 | + $scope.isLayerChangeByUpDownKey = true; | |
2564 | + $scope.LayerChange(); | |
2565 | + | |
2566 | + } | |
2567 | + | |
2568 | + | |
2546 | 2569 | $scope.DisableProgressBar = function () { |
2547 | 2570 | |
2548 | 2571 | // alert('Disabled wait cursor is called'); |
... | ... | @@ -3409,8 +3432,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
3409 | 3432 | |
3410 | 3433 | //if listanager is visisble then close it |
3411 | 3434 | $("#btnExtract").addClass("disabled"); |
3412 | - $rootScope.isListManagerSelected = false; | |
3413 | - $rootScope.CloseListManager(); | |
3435 | + $rootScope.isListManagerSelected = false; | |
3436 | + $rootScope.CloseListManager(); | |
3414 | 3437 | |
3415 | 3438 | |
3416 | 3439 | $scope.isTransparencyActivated = true; |
... | ... | @@ -3430,6 +3453,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
3430 | 3453 | |
3431 | 3454 | canvasDiv.addEventListener("mouseup", mouseUpListener) |
3432 | 3455 | |
3456 | + | |
3433 | 3457 | } |
3434 | 3458 | else |
3435 | 3459 | { |
... | ... | @@ -3520,6 +3544,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
3520 | 3544 | // $selection.remove(); |
3521 | 3545 | // debugger; |
3522 | 3546 | |
3547 | + //alert('mouse up'); | |
3548 | + console.log('MOUSE UP'); | |
3549 | + | |
3523 | 3550 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); |
3524 | 3551 | $('.rectangle').remove(); |
3525 | 3552 | |
... | ... | @@ -3822,7 +3849,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
3822 | 3849 | //do nothing |
3823 | 3850 | } |
3824 | 3851 | else if (isLayerChanged) { |
3825 | - // debugger | |
3852 | + | |
3853 | + // alert('isMousUp on isLayerChanged'); | |
3854 | + | |
3826 | 3855 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); |
3827 | 3856 | |
3828 | 3857 | } |
... | ... | @@ -4813,7 +4842,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4813 | 4842 | |
4814 | 4843 | //if listanager is visisble then close it |
4815 | 4844 | |
4816 | - // $rootScope.isListManagerSelected = false; | |
4845 | + // $rootScope.isListManagerSelected = false; | |
4817 | 4846 | $rootScope.CloseListManager(); |
4818 | 4847 | |
4819 | 4848 | if ($rootScope.isHighLight == true) { |
... | ... | @@ -4878,10 +4907,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4878 | 4907 | // console.log('enableNormalMode is called'); |
4879 | 4908 | |
4880 | 4909 | |
4881 | - // $rootScope.isHighLight = false; | |
4910 | + // $rootScope.isHighLight = false; | |
4882 | 4911 | |
4883 | - //to do should not call every time | |
4884 | - $rootScope.CloseListManager(); | |
4912 | + //to do should not call every time | |
4913 | + $rootScope.CloseListManager(); | |
4885 | 4914 | |
4886 | 4915 | |
4887 | 4916 | if ($rootScope.isNormalMode == true) { |
... | ... | @@ -5239,7 +5268,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5239 | 5268 | else if ($rootScope.isListManagerSelected == true) { |
5240 | 5269 | console.log('1. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') |
5241 | 5270 | |
5242 | - $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); | |
5271 | + $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); | |
5243 | 5272 | |
5244 | 5273 | } |
5245 | 5274 | } |
... | ... | @@ -5402,7 +5431,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5402 | 5431 | console.log('2. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') |
5403 | 5432 | $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); |
5404 | 5433 | |
5405 | - } | |
5434 | + } | |
5406 | 5435 | } |
5407 | 5436 | |
5408 | 5437 | } |
... | ... | @@ -5484,8 +5513,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5484 | 5513 | |
5485 | 5514 | //if listanager is visisble then close it |
5486 | 5515 | |
5487 | - $rootScope.isListManagerSelected = false; | |
5488 | - $rootScope.CloseListManager(); | |
5516 | + $rootScope.isListManagerSelected = false; | |
5517 | + $rootScope.CloseListManager(); | |
5489 | 5518 | |
5490 | 5519 | $rootScope.isLoading = true; |
5491 | 5520 | $('#spinner').css('visibility', 'visible'); |
... | ... | @@ -5804,13 +5833,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5804 | 5833 | $scope.$on('reloadDABodyViewEvent', function (event, data) { |
5805 | 5834 | //console.log('reloadDABodyViewEvent'); |
5806 | 5835 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); |
5807 | - //$scope.ReloadBodyViewId = data.reloadDABodyViewId; | |
5808 | - // $scope.layerNumber = 0; | |
5809 | - // debugger; | |
5836 | + //alert('mouseUp'); | |
5810 | 5837 | |
5811 | - //console.log('reloadDABodyViewEvent ' + $scope.ReloadBodyViewId); | |
5812 | - | |
5813 | - //if ($rootScope.isSettingEventAlredayDispachted == true) { | |
5838 | + | |
5814 | 5839 | |
5815 | 5840 | $scope.loadSelectedBodyView(data.reloadDABodyViewId); |
5816 | 5841 | |
... | ... | @@ -5823,6 +5848,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5823 | 5848 | |
5824 | 5849 | }) |
5825 | 5850 | |
5851 | + | |
5852 | + | |
5826 | 5853 | $scope.loadSelectedBodyViewNavigator = function (currentBodyViewId) { |
5827 | 5854 | |
5828 | 5855 | //$rootScope.voId = currentBodyViewId; |
... | ... | @@ -7656,6 +7683,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
7656 | 7683 | |
7657 | 7684 | } |
7658 | 7685 | |
7686 | + $scope.LayerChangeBasedOnKeyPressed = function (e) { | |
7687 | + | |
7688 | + if(e.keyCode==13) | |
7689 | + { | |
7690 | + $scope.isEnterPressed = true; | |
7691 | + | |
7692 | + $scope.LayerChange(); | |
7693 | + } | |
7694 | + | |
7695 | + } | |
7696 | + | |
7697 | + | |
7659 | 7698 | |
7660 | 7699 | }] |
7661 | 7700 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -301,6 +301,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
301 | 301 | $rootScope.shapestyle = function (id) { |
302 | 302 | |
303 | 303 | document.getElementById('modelbackground').style.display = "none"; |
304 | + document.getElementById('modeleditstyle').style.display = "none"; | |
304 | 305 | |
305 | 306 | $rootScope.shapestyleOpacity = $("#" + id).css('opacity'); |
306 | 307 | $rootScope.shapestyleFillColor = $("#" + id).parent().css('background-color'); |
... | ... | @@ -322,15 +323,17 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
322 | 323 | } |
323 | 324 | |
324 | 325 | $rootScope.enableAnnotationToolBar = function () { |
325 | - | |
326 | + | |
326 | 327 | document.getElementById('modelbackground').style.display = "block"; |
327 | - $("#editshapestyle").modal('show'); | |
328 | + //$("#editshapestyle").modal('show'); | |
329 | + document.getElementById('modeleditstyle').style.display = "block"; | |
328 | 330 | |
329 | 331 | } |
330 | 332 | |
331 | 333 | $rootScope.disableAnnotationToolBar = function () { |
332 | 334 | |
333 | 335 | document.getElementById('modelbackground').style.display = "none"; |
336 | + document.getElementById('modeleditstyle').style.display = "none"; | |
334 | 337 | |
335 | 338 | } |
336 | 339 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... | ... | @@ -55,19 +55,18 @@ |
55 | 55 | display: none; |
56 | 56 | } |
57 | 57 | .customTooltip { |
58 | - background-color: #fff !important; | |
59 | - color: #000 !important; | |
58 | + background: #333 !important; | |
59 | + color: #fff !important; | |
60 | 60 | opacity: 0.9 !important; |
61 | - | |
62 | 61 | } |
63 | 62 | |
64 | 63 | |
65 | 64 | |
66 | 65 | |
67 | 66 | .custom-tooltip { |
68 | - background-color: #fff; | |
67 | + background-color: #333; | |
69 | 68 | border: 0 none; |
70 | - color: #000; | |
69 | + color: #fff !important; | |
71 | 70 | left: -52px; |
72 | 71 | opacity: 0.9; |
73 | 72 | padding: 7px; |
... | ... | @@ -83,9 +82,9 @@ |
83 | 82 | } |
84 | 83 | |
85 | 84 | .custom-tooltip1 { |
86 | - background-color: #fff; | |
85 | + background-color: #333; | |
87 | 86 | border: 0 none; |
88 | - color: #000; | |
87 | + color: #fff !important; | |
89 | 88 | left: 52px; |
90 | 89 | opacity: 0.9; |
91 | 90 | padding: 7px; |
... | ... | @@ -101,9 +100,9 @@ |
101 | 100 | } |
102 | 101 | |
103 | 102 | .custom-tooltip2 { |
104 | - background-color: #fff; | |
103 | + background-color: #333; | |
105 | 104 | border: 0 none; |
106 | - color: #000; | |
105 | + color: #fff !important; | |
107 | 106 | right: 10px; |
108 | 107 | opacity: 0.9; |
109 | 108 | padding: 7px; |
... | ... | @@ -222,7 +221,7 @@ |
222 | 221 | </div> |
223 | 222 | <div class=""> |
224 | 223 | <p> |
225 | - <input type="number" id="txtlayerNumber" value="0" step="1" min="0" style="width:80px; margin:10px 0 0 15px;" ng-model="layerNumber" ng-change="LayerChange()" /> | |
224 | + <input class="item" type="number" id="txtlayerNumber" value="0" step="1" min="0" style="width:80px; margin:10px 0 0 15px;" ng-model="layerNumber" ng-keydown="LayerChangeBasedOnKeyPressed($event)" ng-click="LayerChangeOnMouseUpDown($event)" /> | |
226 | 225 | </p> |
227 | 226 | <div id="layerChangeSlider" style="height:140px;" class="vert_slider " ng-model="layerNumber"></div> |
228 | 227 | </div> | ... | ... |