Commit 22aa97d399972fc240722a0d30c7558e67ac047d
1 parent
a770c107
handled reset for mirror
Showing
1 changed file
with
27 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -2822,6 +2822,33 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2822,6 +2822,33 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2822 | var prevBRID = 0; | 2822 | var prevBRID = 0; |
2823 | if ($rootScope.macthedTermList.length > 0) { | 2823 | if ($rootScope.macthedTermList.length > 0) { |
2824 | 2824 | ||
2825 | + for(var i=0; i<$rootScope.grayImageDataList.length;i++){ | ||
2826 | + var grayCanvasID = 'imageCanvas' + parseInt(i+1); | ||
2827 | + var grayCanvas = document.getElementById(grayCanvasID); | ||
2828 | + | ||
2829 | + if (grayCanvas != null) { | ||
2830 | + var grayCanvasContext = grayCanvas.getContext("2d"); | ||
2831 | + | ||
2832 | + var canvasHeight = grayCanvas.height; | ||
2833 | + var canvasWidth = grayCanvas.width; | ||
2834 | + grayCanvasContext.clearRect(0, 0, canvasHeight, canvasWidth) | ||
2835 | + grayCanvasContext.putImageData($rootScope.grayImageDataList[parseInt(i)], 0, 0); | ||
2836 | + } | ||
2837 | + } | ||
2838 | + for (var i = 4; i <= $rootScope.grayImageMRDataList.length; i++) { | ||
2839 | + var grayCanvasMRID = 'imageCanvas' + i+'_MR'; | ||
2840 | + var grayCanvasMR = document.getElementById(grayCanvasMRID); | ||
2841 | + | ||
2842 | + if (grayCanvasMR != null) { | ||
2843 | + var grayCanvasContextMR = grayCanvasMR.getContext("2d"); | ||
2844 | + | ||
2845 | + var canvasHeight = grayCanvasMR.height; | ||
2846 | + var canvasWidth = grayCanvasMR.width; | ||
2847 | + grayCanvasContextMR.clearRect(0, 0, canvasHeight, canvasWidth) | ||
2848 | + grayCanvasContextMR.putImageData($rootScope.grayImageMRDataList[parseInt(i)], 0, 0); | ||
2849 | + } | ||
2850 | + } | ||
2851 | + | ||
2825 | angular.forEach($rootScope.macthedTermList, function (value, key) { | 2852 | angular.forEach($rootScope.macthedTermList, function (value, key) { |
2826 | 2853 | ||
2827 | 2854 |