Commit c49259edb5c9ef517ab7828426df3b21c3999b8f

Authored by Amrita Vishnoi
1 parent 9dbb6085

Refs: #4468

Merged code of navigator man with draggable issue
400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj
1   -<?xml version="1.0" encoding="utf-8"?>
  1 +<?xml version="1.0" encoding="utf-8"?>
2 2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 3 <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4 4 <PropertyGroup>
... ... @@ -133,6 +133,146 @@
133 133 <Content Include="content\images\ca\thumbnails\ca_tni_3402.jpg" />
134 134 <Content Include="content\images\ca\thumbnails\ca_tni_3403.jpg" />
135 135 <Content Include="content\images\ca\thumbnails\ca_tni_3404.jpg" />
  136 + <Content Include="content\images\DA\ethnicity\body-views\10\A\navigator_images\da_oi_101.jpg" />
  137 + <Content Include="content\images\DA\ethnicity\body-views\10\A\thumbnails\da_tni_3344_A.jpg" />
  138 + <Content Include="content\images\DA\ethnicity\body-views\10\B\navigator_images\da_oi_103.jpg" />
  139 + <Content Include="content\images\DA\ethnicity\body-views\10\B\thumbnails\da_tni_3344_B.jpg" />
  140 + <Content Include="content\images\DA\ethnicity\body-views\10\L\navigator_images\da_oi_105.jpg" />
  141 + <Content Include="content\images\DA\ethnicity\body-views\10\L\thumbnails\da_tni_3344_L.jpg" />
  142 + <Content Include="content\images\DA\ethnicity\body-views\10\W\navigator_images\da_oi_107.jpg" />
  143 + <Content Include="content\images\DA\ethnicity\body-views\10\W\thumbnails\da_tni_3344_W.jpg" />
  144 + <Content Include="content\images\DA\ethnicity\body-views\11\A\navigator_images\da_oi_10.jpg" />
  145 + <Content Include="content\images\DA\ethnicity\body-views\11\A\navigator_images\da_oi_11.jpg" />
  146 + <Content Include="content\images\DA\ethnicity\body-views\11\A\thumbnails\da_tni_3345_AN.jpg" />
  147 + <Content Include="content\images\DA\ethnicity\body-views\11\A\thumbnails\da_tni_3345_AY.jpg" />
  148 + <Content Include="content\images\DA\ethnicity\body-views\11\B\navigator_images\da_oi_14.jpg" />
  149 + <Content Include="content\images\DA\ethnicity\body-views\11\B\navigator_images\da_oi_15.jpg" />
  150 + <Content Include="content\images\DA\ethnicity\body-views\11\B\thumbnails\da_tni_3345_BN.jpg" />
  151 + <Content Include="content\images\DA\ethnicity\body-views\11\B\thumbnails\da_tni_3345_BY.jpg" />
  152 + <Content Include="content\images\DA\ethnicity\body-views\11\L\navigator_images\da_oi_21.jpg" />
  153 + <Content Include="content\images\DA\ethnicity\body-views\11\L\navigator_images\da_oi_22.jpg" />
  154 + <Content Include="content\images\DA\ethnicity\body-views\11\L\thumbnails\da_tni_3345_LN.jpg" />
  155 + <Content Include="content\images\DA\ethnicity\body-views\11\L\thumbnails\da_tni_3345_LY.jpg" />
  156 + <Content Include="content\images\DA\ethnicity\body-views\11\W\navigator_images\da_oi_25.jpg" />
  157 + <Content Include="content\images\DA\ethnicity\body-views\11\W\navigator_images\da_oi_26.jpg" />
  158 + <Content Include="content\images\DA\ethnicity\body-views\11\W\thumbnails\da_tni_3345_WN.jpg" />
  159 + <Content Include="content\images\DA\ethnicity\body-views\11\W\thumbnails\da_tni_3345_WY.jpg" />
  160 + <Content Include="content\images\DA\ethnicity\body-views\12\A\navigator_images\da_oi_29.jpg" />
  161 + <Content Include="content\images\DA\ethnicity\body-views\12\A\thumbnails\da_tni_3346_A.jpg" />
  162 + <Content Include="content\images\DA\ethnicity\body-views\12\B\navigator_images\da_oi_31.jpg" />
  163 + <Content Include="content\images\DA\ethnicity\body-views\12\B\thumbnails\da_tni_3346_B.jpg" />
  164 + <Content Include="content\images\DA\ethnicity\body-views\12\L\navigator_images\da_oi_33.jpg" />
  165 + <Content Include="content\images\DA\ethnicity\body-views\12\L\thumbnails\da_tni_3346_L.jpg" />
  166 + <Content Include="content\images\DA\ethnicity\body-views\12\W\navigator_images\da_oi_35.jpg" />
  167 + <Content Include="content\images\DA\ethnicity\body-views\12\W\thumbnails\da_tni_3346_W.jpg" />
  168 + <Content Include="content\images\DA\ethnicity\body-views\1\A\navigator_images\da_oi_81.jpg" />
  169 + <Content Include="content\images\DA\ethnicity\body-views\1\A\navigator_images\da_oi_82.jpg" />
  170 + <Content Include="content\images\DA\ethnicity\body-views\1\A\thumbnails\da_tni_3335_AN.jpg" />
  171 + <Content Include="content\images\DA\ethnicity\body-views\1\A\thumbnails\da_tni_3335_AY.jpg" />
  172 + <Content Include="content\images\DA\ethnicity\body-views\1\B\navigator_images\da_oi_85.jpg" />
  173 + <Content Include="content\images\DA\ethnicity\body-views\1\B\navigator_images\da_oi_86.jpg" />
  174 + <Content Include="content\images\DA\ethnicity\body-views\1\B\thumbnails\da_tni_3335_BN.jpg" />
  175 + <Content Include="content\images\DA\ethnicity\body-views\1\B\thumbnails\da_tni_3335_BY.jpg" />
  176 + <Content Include="content\images\DA\ethnicity\body-views\1\L\navigator_images\da_oi_89.jpg" />
  177 + <Content Include="content\images\DA\ethnicity\body-views\1\L\navigator_images\da_oi_94.jpg" />
  178 + <Content Include="content\images\DA\ethnicity\body-views\1\L\thumbnails\da_tni_3335_LN.jpg" />
  179 + <Content Include="content\images\DA\ethnicity\body-views\1\L\thumbnails\da_tni_3335_LY.jpg" />
  180 + <Content Include="content\images\DA\ethnicity\body-views\1\W\navigator_images\da_oi_109.jpg" />
  181 + <Content Include="content\images\DA\ethnicity\body-views\1\W\navigator_images\da_oi_110.jpg" />
  182 + <Content Include="content\images\DA\ethnicity\body-views\1\W\thumbnails\da_tni_3335_WN.jpg" />
  183 + <Content Include="content\images\DA\ethnicity\body-views\1\W\thumbnails\da_tni_3335_WY.jpg" />
  184 + <Content Include="content\images\DA\ethnicity\body-views\2\A\navigator_images\da_oi_113.jpg" />
  185 + <Content Include="content\images\DA\ethnicity\body-views\2\A\thumbnails\da_tni_3336_A.jpg" />
  186 + <Content Include="content\images\DA\ethnicity\body-views\2\B\navigator_images\da_oi_115.jpg" />
  187 + <Content Include="content\images\DA\ethnicity\body-views\2\B\thumbnails\da_tni_3336_B.jpg" />
  188 + <Content Include="content\images\DA\ethnicity\body-views\2\L\navigator_images\da_oi_117.jpg" />
  189 + <Content Include="content\images\DA\ethnicity\body-views\2\L\thumbnails\da_tni_3336_L.jpg" />
  190 + <Content Include="content\images\DA\ethnicity\body-views\2\W\navigator_images\da_oi_119.jpg" />
  191 + <Content Include="content\images\DA\ethnicity\body-views\2\W\thumbnails\da_tni_3336_W.jpg" />
  192 + <Content Include="content\images\DA\ethnicity\body-views\3\A\navigator_images\da_oi_121.jpg" />
  193 + <Content Include="content\images\DA\ethnicity\body-views\3\A\thumbnails\da_tni_3337_AN.jpg" />
  194 + <Content Include="content\images\DA\ethnicity\body-views\3\A\thumbnails\da_tni_3337_AY.jpg" />
  195 + <Content Include="content\images\DA\ethnicity\body-views\3\B\navigator_images\da_oi_123.jpg" />
  196 + <Content Include="content\images\DA\ethnicity\body-views\3\B\thumbnails\da_tni_3337_BN.jpg" />
  197 + <Content Include="content\images\DA\ethnicity\body-views\3\B\thumbnails\da_tni_3337_BY.jpg" />
  198 + <Content Include="content\images\DA\ethnicity\body-views\3\L\navigator_images\da_oi_125.jpg" />
  199 + <Content Include="content\images\DA\ethnicity\body-views\3\L\thumbnails\da_tni_3337_LN.jpg" />
  200 + <Content Include="content\images\DA\ethnicity\body-views\3\L\thumbnails\da_tni_3337_LY.jpg" />
  201 + <Content Include="content\images\DA\ethnicity\body-views\3\W\navigator_images\da_oi_127.jpg" />
  202 + <Content Include="content\images\DA\ethnicity\body-views\3\W\thumbnails\da_tni_3337_WN.jpg" />
  203 + <Content Include="content\images\DA\ethnicity\body-views\3\W\thumbnails\da_tni_3337_WY.jpg" />
  204 + <Content Include="content\images\DA\ethnicity\body-views\4\A\navigator_images\da_oi_129.jpg" />
  205 + <Content Include="content\images\DA\ethnicity\body-views\4\A\thumbnails\da_tni_3338_A.jpg" />
  206 + <Content Include="content\images\DA\ethnicity\body-views\4\B\navigator_images\da_oi_131.jpg" />
  207 + <Content Include="content\images\DA\ethnicity\body-views\4\B\thumbnails\da_tni_3338_B.jpg" />
  208 + <Content Include="content\images\DA\ethnicity\body-views\4\L\navigator_images\da_oi_133.jpg" />
  209 + <Content Include="content\images\DA\ethnicity\body-views\4\L\thumbnails\da_tni_3338_L.jpg" />
  210 + <Content Include="content\images\DA\ethnicity\body-views\4\W\navigator_images\da_oi_135.jpg" />
  211 + <Content Include="content\images\DA\ethnicity\body-views\4\W\thumbnails\da_tni_3338_W.jpg" />
  212 + <Content Include="content\images\DA\ethnicity\body-views\5\A\navigator_images\da_oi_1.jpg" />
  213 + <Content Include="content\images\DA\ethnicity\body-views\5\A\navigator_images\da_oi_2.jpg" />
  214 + <Content Include="content\images\DA\ethnicity\body-views\5\A\thumbnails\da_tni_3339_AN.jpg" />
  215 + <Content Include="content\images\DA\ethnicity\body-views\5\A\thumbnails\da_tni_3339_AY.jpg" />
  216 + <Content Include="content\images\DA\ethnicity\body-views\5\B\navigator_images\da_oi_5.jpg" />
  217 + <Content Include="content\images\DA\ethnicity\body-views\5\B\navigator_images\da_oi_6.jpg" />
  218 + <Content Include="content\images\DA\ethnicity\body-views\5\B\thumbnails\da_tni_3339_BN.jpg" />
  219 + <Content Include="content\images\DA\ethnicity\body-views\5\B\thumbnails\da_tni_3339_BY.jpg" />
  220 + <Content Include="content\images\DA\ethnicity\body-views\5\L\navigator_images\da_oi_18.jpg" />
  221 + <Content Include="content\images\DA\ethnicity\body-views\5\L\navigator_images\da_oi_9.jpg" />
  222 + <Content Include="content\images\DA\ethnicity\body-views\5\L\thumbnails\da_tni_3339_LN.jpg" />
  223 + <Content Include="content\images\DA\ethnicity\body-views\5\L\thumbnails\da_tni_3339_LY.jpg" />
  224 + <Content Include="content\images\DA\ethnicity\body-views\5\W\navigator_images\da_oi_37_WN.jpg" />
  225 + <Content Include="content\images\DA\ethnicity\body-views\5\W\navigator_images\da_oi_38_WY.jpg" />
  226 + <Content Include="content\images\DA\ethnicity\body-views\5\W\thumbnails\da_tni_3339_WN.jpg" />
  227 + <Content Include="content\images\DA\ethnicity\body-views\5\W\thumbnails\da_tni_3339_WY.jpg" />
  228 + <Content Include="content\images\DA\ethnicity\body-views\6\A\navigator_images\da_oi_41.jpg" />
  229 + <Content Include="content\images\DA\ethnicity\body-views\6\A\navigator_images\da_oi_42.jpg" />
  230 + <Content Include="content\images\DA\ethnicity\body-views\6\A\thumbnails\da_tni_3340_AN.jpg" />
  231 + <Content Include="content\images\DA\ethnicity\body-views\6\A\thumbnails\da_tni_3340_AY.jpg" />
  232 + <Content Include="content\images\DA\ethnicity\body-views\6\B\navigator_images\da_oi_45.jpg" />
  233 + <Content Include="content\images\DA\ethnicity\body-views\6\B\navigator_images\da_oi_46.jpg" />
  234 + <Content Include="content\images\DA\ethnicity\body-views\6\B\thumbnails\da_tni_3340_BN.jpg" />
  235 + <Content Include="content\images\DA\ethnicity\body-views\6\B\thumbnails\da_tni_3340_BY.jpg" />
  236 + <Content Include="content\images\DA\ethnicity\body-views\6\L\navigator_images\da_oi_49.jpg" />
  237 + <Content Include="content\images\DA\ethnicity\body-views\6\L\navigator_images\da_oi_50.jpg" />
  238 + <Content Include="content\images\DA\ethnicity\body-views\6\L\thumbnails\da_tni_3340_LN.jpg" />
  239 + <Content Include="content\images\DA\ethnicity\body-views\6\L\thumbnails\da_tni_3340_LY.jpg" />
  240 + <Content Include="content\images\DA\ethnicity\body-views\6\W\navigator_images\da_oi_53.jpg" />
  241 + <Content Include="content\images\DA\ethnicity\body-views\6\W\navigator_images\da_oi_54.jpg" />
  242 + <Content Include="content\images\DA\ethnicity\body-views\6\W\thumbnails\da_tni_3340_WN.jpg" />
  243 + <Content Include="content\images\DA\ethnicity\body-views\6\W\thumbnails\da_tni_3340_WY.jpg" />
  244 + <Content Include="content\images\DA\ethnicity\body-views\7\A\navigator_images\da_oi_57.jpg" />
  245 + <Content Include="content\images\DA\ethnicity\body-views\7\A\navigator_images\da_oi_58.jpg" />
  246 + <Content Include="content\images\DA\ethnicity\body-views\7\A\thumbnails\da_tni_3341_AN.jpg" />
  247 + <Content Include="content\images\DA\ethnicity\body-views\7\A\thumbnails\da_tni_3341_AY.jpg" />
  248 + <Content Include="content\images\DA\ethnicity\body-views\7\B\navigator_images\da_oi_61.jpg" />
  249 + <Content Include="content\images\DA\ethnicity\body-views\7\B\navigator_images\da_oi_62.jpg" />
  250 + <Content Include="content\images\DA\ethnicity\body-views\7\B\thumbnails\da_tni_3341_BN.jpg" />
  251 + <Content Include="content\images\DA\ethnicity\body-views\7\B\thumbnails\da_tni_3341_BY.jpg" />
  252 + <Content Include="content\images\DA\ethnicity\body-views\7\L\navigator_images\da_oi_65.jpg" />
  253 + <Content Include="content\images\DA\ethnicity\body-views\7\L\navigator_images\da_oi_66.jpg" />
  254 + <Content Include="content\images\DA\ethnicity\body-views\7\L\thumbnails\da_tni_3341_LN.jpg" />
  255 + <Content Include="content\images\DA\ethnicity\body-views\7\L\thumbnails\da_tni_3341_LY.jpg" />
  256 + <Content Include="content\images\DA\ethnicity\body-views\7\W\navigator_images\da_oi_69.jpg" />
  257 + <Content Include="content\images\DA\ethnicity\body-views\7\W\navigator_images\da_oi_70.jpg" />
  258 + <Content Include="content\images\DA\ethnicity\body-views\7\W\thumbnails\da_tni_3341_WN.jpg" />
  259 + <Content Include="content\images\DA\ethnicity\body-views\7\W\thumbnails\da_tni_3341_WY.jpg" />
  260 + <Content Include="content\images\DA\ethnicity\body-views\8\A\navigator_images\da_oi_73.jpg" />
  261 + <Content Include="content\images\DA\ethnicity\body-views\8\A\thumbnails\da_tni_3342_A.jpg" />
  262 + <Content Include="content\images\DA\ethnicity\body-views\8\B\navigator_images\da_oi_75.jpg" />
  263 + <Content Include="content\images\DA\ethnicity\body-views\8\B\thumbnails\da_tni_3342_B.jpg" />
  264 + <Content Include="content\images\DA\ethnicity\body-views\8\L\navigator_images\da_oi_77.jpg" />
  265 + <Content Include="content\images\DA\ethnicity\body-views\8\L\thumbnails\da_tni_3342_L.jpg" />
  266 + <Content Include="content\images\DA\ethnicity\body-views\8\W\navigator_images\da_oi_79.jpg" />
  267 + <Content Include="content\images\DA\ethnicity\body-views\8\W\thumbnails\da_tni_3342_w.jpg" />
  268 + <Content Include="content\images\DA\ethnicity\body-views\9\A\navigator_images\da_oi_90.jpg" />
  269 + <Content Include="content\images\DA\ethnicity\body-views\9\A\thumbnails\da_tni_3343_A.jpg" />
  270 + <Content Include="content\images\DA\ethnicity\body-views\9\B\navigator_images\da_oi_92.jpg" />
  271 + <Content Include="content\images\DA\ethnicity\body-views\9\B\thumbnails\da_tni_3343_B.jpg" />
  272 + <Content Include="content\images\DA\ethnicity\body-views\9\L\navigator_images\da_oi_97.jpg" />
  273 + <Content Include="content\images\DA\ethnicity\body-views\9\L\thumbnails\da_tni_3343_L.jpg" />
  274 + <Content Include="content\images\DA\ethnicity\body-views\9\W\navigator_images\da_oi_99.jpg" />
  275 + <Content Include="content\images\DA\ethnicity\body-views\9\W\thumbnails\da_tni_3343_W.jpg" />
136 276 <Content Include="content\images\speeachBubbleClose.png" />
137 277 <Content Include="content\images\2.jpg" />
138 278 <Content Include="content\images\3-full.jpg" />
... ... @@ -42969,7 +43109,6 @@
42969 43109 <Content Include="content\data\json\da\vocab\english\cm_dat_vocabterm_1.json" />
42970 43110 <Content Include="content\data\json\da\da_dat_brview.json" />
42971 43111 <Content Include="content\data\json\da\da_dat_contentlist.json" />
42972   - <Content Include="content\data\json\da_dat_tm_sg_1.json" />
42973 43112 <Content Include="libs\jquery\jquery_plugin\jsPanel\jspanel\fonts\jsglyph.eot" />
42974 43113 <Content Include="libs\jquery\jquery_plugin\jsPanel\jspanel\fonts\jsglyph.ttf" />
42975 43114 <Content Include="libs\jquery\jquery_plugin\jsPanel\jspanel\fonts\jsglyph.woff" />
... ... @@ -43004,6 +43143,7 @@
43004 43143 <Content Include="content\data\json\da\body-views\9\da_dat_tm_sg_9.json" />
43005 43144 <Content Include="content\data\json\ci\ci_dat_contentlist.json" />
43006 43145 <Content Include="content\data\json\da\da_dat_common.json" />
  43146 + <Content Include="content\data\json\da\da_dat_orient_image.json" />
43007 43147 <None Include="Web.Debug.config">
43008 43148 <DependentUpon>Web.config</DependentUpon>
43009 43149 </None>
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -70,6 +70,22 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
70 70 $rootScope.updatedWhiteImageDataList = [];
71 71 $rootScope.updatedWhiteImageMRDataList = [];
72 72  
  73 + //navigator man functionality
  74 + $scope.NavOrientationdata;
  75 + $scope.NavigatorData;
  76 + $scope.navimgsrc;
  77 +
  78 + $scope.dragdivleft = 0;
  79 + $scope.dragdivtop = 0;
  80 +
  81 + $scope.dragdivposition = {
  82 + "left": $scope.dragdivleft,
  83 + "top": $scope.dragdivtop
  84 + };
  85 +
  86 +
  87 +
  88 +
73 89 //normal mode
74 90 $rootScope.isNormalMode = false;
75 91  
... ... @@ -463,9 +479,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
463 479 // debugger
464 480 if ($scope.isBodylayerdataLoaded) {
465 481 $timeout(function () {
466   - //this is for showing termlist on da-view
  482 +
  483 + //1.
467 484 $scope.isVisibleTermddl = false;
  485 + //2
468 486 $scope.LoadDefaultLayerImage();
  487 + //2.
  488 + $scope.LoadBodyViewNavigatorImage();
  489 +
469 490 }, 350);
470 491 }
471 492 },
... ... @@ -547,6 +568,57 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
547 568 };
548 569  
549 570  
  571 + //Code for displaying BodyViewNavigatorImage
  572 + $scope.LoadBodyViewNavigatorImage = function () {
  573 + //load json containing navigator images
  574 + $http({ method: 'GET', url: '~/../content/data/json/da/da_dat_orient_image.json' }).success(function (data) {
  575 + $scope.NavigatorData = data;
  576 +
  577 + $scope.skinTone = DA[0].ethnicity;
  578 +
  579 + $scope.viewOrientationId = $scope.voId;
  580 +
  581 + var navdtlOrient = new jinqJs()
  582 + .from($scope.NavigatorData.Navigtor.ViewOrientation)
  583 + .where("_ViewOrientationId == " + $scope.viewOrientationId)
  584 + .select();
  585 + console.log(navdtlOrient);
  586 + console.log(navdtlOrient[0].ImageInfo);
  587 + var navOrientationdata = new jinqJs()
  588 + .from(navdtlOrient[0].ImageInfo)
  589 + .where("_Ethnicity == " + $scope.skinTone)
  590 + .select();
  591 + //console.log(navOrientationdata);
  592 +
  593 + $scope.NavOrientationdata = navOrientationdata;
  594 + console.log("$scope.NavOrientationdata: ");
  595 + console.log($scope.NavOrientationdata);
  596 +
  597 + var navimagemodesty;
  598 +
  599 + angular.forEach($scope.NavOrientationdata, function (value, key) {
  600 + if (value._HaveModesty === DA[0].modesty) {
  601 + navimagemodesty = value._ImageName;
  602 + }
  603 + })
  604 + if (typeof (navimagemodesty) === "undefined" || navimagemodesty === null) {
  605 +
  606 + navimagemodesty = $scope.NavOrientationdata[0]._ImageName;
  607 +
  608 + }
  609 +
  610 + $scope.navimgsrc = "~/../content/images/DA/ethnicity/body-views/" + $scope.viewOrientationId + '/' + $scope.skinTone + '/navigator_images/' + navimagemodesty;
  611 +
  612 +
  613 + })
  614 + .error(function (data, status, headers, config) {
  615 + console.log(data);
  616 + });
  617 + }
  618 +
  619 +
  620 +
  621 +
550 622 //calculate coordinates for body region images
551 623 $scope.CalculateImageCordinates = function (viewOrientationId) {
552 624  
... ... @@ -805,8 +877,59 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
805 877 // #4976 :While changing gender male to female scroll bar is going on top.
806 878 var canvasDiv = document.getElementById('canvasDiv');
807 879 canvasDiv.scrollTop = 0;
  880 +
  881 +
  882 + // This code is used to set the hieght and width of dynimic draggable div which shows over navigator man (the square)
  883 + var navdivh = Math.floor($('#canvasDiv').height() / 3);
  884 + var navdivw = Math.floor($('#canvasDiv').width() / 9);
  885 +
  886 + var dragdivh = Math.floor(($('#canvasDiv').height() / $('#canvasDiv')[0].scrollHeight) * 119) //119px is the height of the image
  887 +
  888 + if ($('#canvasDiv')[0].scrollWidth > $('#canvasDiv')[0].clientWidth) {
  889 +
  890 + var dragdivw = 42
  891 + $scope.dragdivleft = 21;
  892 + $scope.dragdivtop = 0;
  893 +
  894 + $scope.dragdivposition = {
  895 + "left": 21,
  896 + "top": 0
  897 + };
  898 + }
  899 + else {
  900 + var dragdivw = 83;
  901 +
  902 + $scope.dragdivleft = 0;
  903 + $scope.dragdivtop = 0;
  904 +
  905 + $scope.dragdivposition = {
  906 + "left": 0,
  907 + "top": 0
  908 +
  909 + };
  910 + }
  911 +
  912 + $('#draggable').css('width', dragdivw);
  913 + $('#draggable').css('height', dragdivh);
808 914 }
809 915  
  916 + $scope.ScrollCanvasDiv = function () {
  917 +
  918 + var x = $("#draggable").position();
  919 + var can = $('#canvasDiv');
  920 + var canheight = can[0].scrollHeight;
  921 + var canwidth = can[0].scrollWidth;
  922 +
  923 + var scrolly = (x.top / ($('#containment-wrapper').height())) * (canheight);
  924 +
  925 + var scrollx = (x.left / $('#containment-wrapper').width()) * (canwidth);
  926 +
  927 + $("#canvasDiv").scrollTop(scrolly);
  928 + $("#canvasDiv").scrollLeft(scrollx);
  929 +
  930 + }
  931 +
  932 +
810 933 function scaleRectangle(x, y, height, width, mirrorValue) {
811 934 var nzoom = $scope.zoomInOut;
812 935 var existingZoon = 100;
... ...
400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/1/W/thumbnails/da_tni_3335_WY.jpg 0 → 100644

7.3 KB