diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 8637ed8..f099a95 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -81,6 +81,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $location.url('/module-item-view'); } + + $scope.openModuleItem = function () { var jsContentURL; var moduleItemViewDivId; @@ -143,6 +145,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle"); $("#modItemImage").attr('src', $rootScope.OpenItemImagePath); + + $rootScope.ViewImageWidth = $("#modItemImage").width(); + $("#modItemImage").css("width", $rootScope.ViewImageWidth + "px"); + imageViewAt100Percent = $rootScope.ViewImageWidth; + imageViewAt25Percent = $rootScope.ViewImageWidth * 0.25; + imageViewAt40Percent = $rootScope.ViewImageWidth * 0.40; + imageViewAt55Percent = $rootScope.ViewImageWidth * 0.55; + imageViewAt70Percent = $rootScope.ViewImageWidth * 0.70; + imageViewAt85Percent = $rootScope.ViewImageWidth * 0.85; + //0.5 create canvas on the top of image so that I can draw a line over the canvas. var canvas = document.createElement('canvas'); @@ -152,16 +164,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo canvas.style.left = '0px'; canvas.style.top = '0px'; canvas.style.position = "absolute"; - + canvas.style.width = $rootScope.ViewImageWidth+ "px"; $("#imageDiv").append(canvas); $scope.context = canvas.getContext("2d") - //6. Show all pins on AA opened item + // $("#aaDetailViewCanvas"). $scope.showAllPins(); + } }, 1050); } + function loadFailure() { console.log('unable to load opened module ietem'); return true; @@ -885,9 +899,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo else { $("#bord_annotation").css({ 'display': 'block', 'width': d + 'px', 'top': e + 'px', 'left': f + 'px', 'transform': 'rotate(' + theta + 'deg)', '-moz-transform': 'rotate(' + theta + 'deg)', '-webkit-transform': 'rotate(' + theta + 'deg)', 'transform-origin': '0% 0%' }); } - - - } @@ -922,6 +933,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo click: function (clickedPin) { + //change the head color to green var radialAfterClick = $('#aaDetailViewCanvas').createGradient({ x1: 50, y1: 50, diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html index 3076ecf..483c61f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html @@ -131,28 +131,55 @@ $('[data-toggle="tooltip"]').tooltip(); }); - - + - -