Commit 66c73b5b46fff6e760a70d6c6546b14363ef9c55
Merge branch 'TBIssue1' into Develop
Showing
2 changed files
with
28 additions
and
17 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -854,15 +854,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
854 | 854 | $scope.modestyImageInfo = []; |
855 | 855 | // annotation toolbar canvas |
856 | 856 | |
857 | - //history code | |
858 | - | |
859 | - if ($("#canvasDiv").find("canvas[id='canvasPaint']").length == 0) { | |
860 | - var ATBarHtml = $("#canvasDiv").append('<canvas id="canvasPaint" width="2277" height="3248" ng-click="FreeStylePaint($event)" class="canvas-annotationStyle1"></canvas><canvas id="canvas" ng-click="onDrawingCanvasClick($event)" width="2277" height="3248" class="canvas-annotationStyle"></canvas>'); | |
861 | - $compile(ATBarHtml)($scope); | |
862 | - $scope.onDrawingCanvasClick(); | |
863 | - // $rootScope.FreeStylePaint(); | |
864 | - | |
865 | - } | |
857 | + | |
866 | 858 | |
867 | 859 | |
868 | 860 | $scope.terminateCurrentlyRunningWPs(); |
... | ... | @@ -927,6 +919,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
927 | 919 | $scope.ColoredImageSRC = []; |
928 | 920 | } |
929 | 921 | |
922 | + //history code | |
923 | + | |
924 | + if ($("#canvasDiv").find("canvas[id='canvasPaint']").length == 0) { | |
925 | + var ATBarHtml = $("#canvasDiv").append('<canvas id="canvasPaint" width="2277" height="3248" ng-click="FreeStylePaint($event)" class="canvas-annotationStyle1"></canvas><canvas id="canvas" ng-click="onDrawingCanvasClick($event)" width="2277" height="3248" class="canvas-annotationStyle"></canvas>'); | |
926 | + $compile(ATBarHtml)($scope); | |
927 | + $scope.onDrawingCanvasClick(); | |
928 | + // $rootScope.FreeStylePaint(); | |
929 | + | |
930 | + } | |
931 | + | |
930 | 932 | if ($scope.bodyRegionCoordinates != null || $scope.bodyRegionCoordinates != undefined) { |
931 | 933 | angular.forEach($scope.bodyRegionCoordinates, function (value, key) { |
932 | 934 | |
... | ... | @@ -5644,18 +5646,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5644 | 5646 | } |
5645 | 5647 | |
5646 | 5648 | $scope.CloseTransparencyBox = function () { |
5647 | - | |
5648 | - | |
5649 | + | |
5650 | + //for enabling annoataions. | |
5651 | + //Now everything si done on canavases uswed in annotation toolbar. | |
5652 | + | |
5653 | + if (parseInt($("#canvasPaint").css("z-index")) > parseInt($("#canvas").css("z-index"))) | |
5654 | + { | |
5655 | + $rootScope.switchCanvasToPaintCanvas(); | |
5656 | + } | |
5657 | + else | |
5658 | + { | |
5659 | + $rootScope.switchCanvas(); | |
5660 | + } | |
5661 | + // $rootScope.switchCanvas(); | |
5649 | 5662 | //To enable extract button |
5650 | 5663 | $scope.isTransparencyActivated = false; |
5651 | 5664 | $("#btnExtract").removeClass("disabled"); |
5652 | 5665 | |
5653 | - //$('.com_anno').css('display', 'none'); | |
5654 | - | |
5655 | - //$('#sppeachBubble_annotation').css('display', 'none'); | |
5656 | - //$('#dot_annotation').css('display', 'none'); | |
5657 | - //$('#bord_annotation').css('display', 'none'); | |
5658 | - | |
5659 | 5666 | |
5660 | 5667 | $('.com_anno').remove(); |
5661 | 5668 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -596,6 +596,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
596 | 596 | $rootScope.CIAnotationIdentifyModeOff = false; |
597 | 597 | $rootScope.OnIdentifyClick = function () { |
598 | 598 | |
599 | + | |
599 | 600 | $("#OnIdentify").addClass("annotationtoolbartab"); |
600 | 601 | $("#DrawMode").removeClass("annotationtoolbartab"); |
601 | 602 | // $rootScope.isIdetifyClicked = true; |
... | ... | @@ -614,6 +615,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
614 | 615 | |
615 | 616 | } |
616 | 617 | |
618 | + $("#annotationpaintbrushsize").removeClass("activebtncolor"); | |
619 | + $("#annotationpainteraser").removeClass("activebtncolor"); | |
620 | + | |
617 | 621 | $rootScope.isAnnotaionToolBarDrawingModeActive = false; |
618 | 622 | $rootScope.switchCanvas(); |
619 | 623 | } | ... | ... |