Commit c309ed1f1eb6c2508b6168f2136be62c0ae2896c
1 parent
a71ebd7f
in progress show pin poc
Showing
3 changed files
with
44 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -96,6 +96,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod | @@ -96,6 +96,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod | ||
96 | 96 | ||
97 | $scope.openModuleItem = function (elSelector) | 97 | $scope.openModuleItem = function (elSelector) |
98 | { | 98 | { |
99 | + debugger; | ||
100 | + | ||
99 | alert($rootScope.OpenItemImageName); | 101 | alert($rootScope.OpenItemImageName); |
100 | 102 | ||
101 | var OpendTileData = []; | 103 | var OpendTileData = []; |
@@ -146,14 +148,53 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod | @@ -146,14 +148,53 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod | ||
146 | var jsElement = angular.element(document.getElementById("JsPannelContainer")); | 148 | var jsElement = angular.element(document.getElementById("JsPannelContainer")); |
147 | 149 | ||
148 | 150 | ||
149 | - $timeout(function () { $compile(jsElement.contents())($scope) }, 250); | 151 | + $timeout(function () { |
152 | + $compile(jsElement.contents())($scope); | ||
153 | + if ($rootScope.moduleName == ATLAS_ANATOMY) { | ||
154 | + $scope.addPinDataCanvas(); | ||
155 | + } | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + }, 250); | ||
150 | 160 | ||
161 | + | ||
162 | + | ||
151 | 163 | ||
152 | 164 | ||
165 | + //document.getElementById('aaDetailPageDiv').appendChild(imgCanvas); | ||
166 | + | ||
167 | + } | ||
168 | + | ||
169 | + | ||
170 | + $scope.addPinDataCanvas = function() | ||
171 | + { | ||
172 | + //var pinDataCanvas = document.createElement('addPinDataCanvas'); | ||
173 | + //pinDataCanvas.id = "addPinDataCanvas"; | ||
174 | + //pinDataCanvas.height = 216; | ||
175 | + //pinDataCanvas.width = 216; | ||
176 | + //pinDataCanvas.style.position = "absolute"; | ||
177 | + //pinDataCanvas.style.left = 0 + "px"; | ||
178 | + //pinDataCanvas.style.top = 0 + "px"; | ||
179 | + ////pinDataCanvas.style.background = "red"; | ||
180 | + ////pinDataCanvas.style.border = "black 10px solid"; | ||
181 | + | ||
182 | + //var divReference = document.getElementById("imageDiv"); | ||
183 | + //divReference.appendChild(pinDataCanvas); | ||
184 | + | ||
185 | + debugger; | ||
186 | + var pinLength1 = Math.sqrt((638 - 604) * (638 - 604) + (83 - 120) * (83 - 120)); | ||
187 | + var pinLength = pinLength1.toPrecision(2); | ||
188 | + | ||
189 | + var pinData = '<div class="pin" style="border:1px dashed #000;position:absolute;left:604px;top:120px;width:' + pinLength + 'px ><img src="~/content/images/img181.png"/></div></div>' | ||
190 | + var divReference = document.getElementById("imageDiv"); | ||
191 | + divReference.appendChild(pinData); | ||
192 | + | ||
153 | } | 193 | } |
154 | 194 | ||
155 | $scope.showAllPins = function () | 195 | $scope.showAllPins = function () |
156 | { | 196 | { |
197 | + | ||
157 | var promise = ModuleService.getPinDataForImage($rootScope.imageName) | 198 | var promise = ModuleService.getPinDataForImage($rootScope.imageName) |
158 | 199 | ||
159 | .then( | 200 | .then( |
400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
@@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
86 | <div class="container-fluid"> | 86 | <div class="container-fluid"> |
87 | <div class="row"> | 87 | <div class="row"> |
88 | 88 | ||
89 | - <div class=" col-sm-12 img-thumbnail" align="center"> | 89 | + <div class=" col-sm-12 img-thumbnail" align="center" id="imageDiv"> |
90 | <img id="modItemImage" src="../../../content/images/aa/images/aa_img_3112.jpg" alt="" title="" class="img-responsive"> | 90 | <img id="modItemImage" src="../../../content/images/aa/images/aa_img_3112.jpg" alt="" title="" class="img-responsive"> |
91 | <div class="clearfix"> | 91 | <div class="clearfix"> |
92 | <!--<img id="modItemImage" ng-init="alert('hi')" alt="" title="" class="img-responsive">--> | 92 | <!--<img id="modItemImage" ng-init="alert('hi')" alt="" title="" class="img-responsive">--> |
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | </div> | 98 | </div> |
99 | 99 | ||
100 | 100 | ||
101 | - | 101 | + </div> |
102 | 102 | ||
103 | </div> | 103 | </div> |
104 | </div> | 104 | </div> |
400-SOURCECODE/AIAHTML5.Web/content/images/img181.png
0 → 100644
2.27 KB