From 44f7d698209411e8c0aa1c74f0c4ddfc17383878 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 21 Sep 2017 10:58:04 +0530 Subject: [PATCH] Implemented Identity mode functionality --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+), 0 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 6a243aa..a28cdc2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -899,6 +899,42 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.switchCanvas(); } $rootScope.shapeType = ''; + if ($location.url() == "/module-item-view") { + + var canvasZIndex = $("#canvas").css("z-index"); + var canvasPaintZIndex = $("#canvasPaint").css("z-index"); + + if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) { + canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1; + $("#aaDetailViewCanvas").css("z-index", canvasPaintZIndex); + + } + else { + canvasZIndex = parseInt(canvasZIndex) + 1; + $("#aaDetailViewCanvas").css("z-index", canvasZIndex); + } + for (var i = 0; i <= $rootScope.jcanvasObjectArray.length - 1; i++) { + + for (var j = 0; j <= $rootScope.aaPinDataArray.length - 1; j++) { + + if (($rootScope.jcanvasObjectArray[i].x <= parseInt($rootScope.aaPinDataArray[j]._HeadX) && $rootScope.jcanvasObjectArray[i].y <= parseInt($rootScope.aaPinDataArray[j]._HeadY)) && (($rootScope.jcanvasObjectArray[i].x + $rootScope.jcanvasObjectArray[i].width) >= parseInt($rootScope.aaPinDataArray[j]._HeadX) && ($rootScope.jcanvasObjectArray[i].y + $rootScope.jcanvasObjectArray[i].height) >= parseInt($rootScope.aaPinDataArray[j]._HeadY)) || ($rootScope.jcanvasObjectArray[i].x <= parseInt($rootScope.aaPinDataArray[j]._PinX) && $rootScope.jcanvasObjectArray[i].y <= parseInt($rootScope.aaPinDataArray[j]._PinY)) && (($rootScope.jcanvasObjectArray[i].x + $rootScope.jcanvasObjectArray[i].width) >= parseInt($rootScope.aaPinDataArray[j]._PinX) && ($rootScope.jcanvasObjectArray[i].y + $rootScope.jcanvasObjectArray[i].height) >= parseInt($rootScope.aaPinDataArray[j]._PinY))) { + + var pinName = 'Pin_' + $rootScope.aaPinDataArray[j]._PinId; + var pinArcName = 'PinArc_' + $rootScope.aaPinDataArray[j]._PinId; + + $('#aaDetailViewCanvas').setLayer(pinName, { + visible: false // set to true instead to show the layer again + }).drawLayers(); + + $('#aaDetailViewCanvas').setLayer(pinArcName, { + visible: false // set to true instead to show the layer again + }).drawLayers(); + + } + + } + } + } } $rootScope.CIAnotationIdentifyModeOff = false; $rootScope.OnIdentifyClick = function () { -- libgit2 0.21.4