NLeSC/ahn-pointcloud-viewer

View on GitHub

Showing 65 of 154 total issues

Function DecimalAdjust has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function DecimalAdjust() {
        /**
         * Decimal adjustment of a number.
         *
         * @param {String}
Severity: Minor
Found in app/scripts/utils/decimaladjust.service.js - About 1 hr to fix

    Function onMouseMove has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function onMouseMove(event){
        var I;
            var rect = scope.domElement.getBoundingClientRect();
            scope.mouse.x = ((event.clientX - rect.left) / scope.domElement.clientWidth) * 2 - 1;
            scope.mouse.y = -((event.clientY - rect.top) / scope.domElement.clientHeight) * 2 + 1;
    Severity: Minor
    Found in app/scripts/utils/MeasuringTool.js - About 1 hr to fix

      Function BingGeoCoderService has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function BingGeoCoderService($http) {
          /**
           * Bing maps API key
           * @type {String}
           */
      Severity: Minor
      Found in app/scripts/utils/binggeocoder.service.js - About 1 hr to fix

        Function DrivemapService has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function DrivemapService($http, $q, $log, proj4, pattyConf) {
            var me = this;
            this.data = {};
            var deferred = $q.defer();
        
        
        Severity: Minor
        Found in app/scripts/core/drivemap.service.js - About 1 hr to fix

          Function setupResizeControl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              this.setupResizeControl = function() {
                function ResizeControl(optOptions) {
                  var options = optOptions || {};
          
                  var button = document.createElement('button');
          Severity: Minor
          Found in app/scripts/minimap/minimap.controller.js - About 1 hr to fix

            Function update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                this.update = function() {
                  if (this.initialized) {
                    this.tools.volume.update();
                    this.tools.transformation.update();
                    this.tools.heightprofile.update();
            Severity: Minor
            Found in app/scripts/measuring/measuring.service.js - About 1 hr to fix

              Function drawSelection has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  this.drawSelection = function(bbox) {
                    // resize dragbox
                    var coordinates = [
                      [
                        [
              Severity: Minor
              Found in app/scripts/extract/minimap.extraction.selection.service.js - About 1 hr to fix

                Function PotreeRenderer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var PotreeRenderer = function() {
                      var resize = function(width, height) {
                        var aspect = width / height;
                
                        camera.aspect = aspect;
                Severity: Minor
                Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

                  Function getMousePointCloudIntersection has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function getMousePointCloudIntersection() {
                        var vector = new THREE.Vector3(mouse.x, mouse.y, 0.5);
                        vector.unproject(camera);
                        var direction = vector.sub(camera.position).normalize();
                        var ray = new THREE.Ray(camera.position, direction);
                  Severity: Minor
                  Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

                    Function buildSelectionGeometry has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        this.buildSelectionGeometry = function(leftTopLocal, rightTopLocal, rightBottomLocal, leftBottomLocal, color) {
                          var boxMaterial = new THREE.MeshBasicMaterial({
                            color: color,
                            side: THREE.DoubleSide,
                            transparent: true,
                    Severity: Minor
                    Found in app/scripts/extract/pointcloud.extraction.drawing.service.js - About 1 hr to fix

                      Function update has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Potree.TextSprite.prototype.update = function(){
                      
                          var canvas = document.createElement('canvas');
                          var context = canvas.getContext('2d');
                          context.font = 'Bold ' + this.fontsize + 'px ' + this.fontface;
                      Severity: Minor
                      Found in app/scripts/utils/TextSprite.js - About 1 hr to fix

                        Function SearchPanelController has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          function SearchPanelController(BingGeoCoderService, SceneService, PathControls, Messagebus, $window, toastr, THREE, proj4) {
                        Severity: Major
                        Found in app/scripts/searchbox/searchbox.controller.js - About 1 hr to fix

                          Function CameraService has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            function CameraService($rootScope, $window, $log, $location, THREE, Messagebus, SceneService) {
                          Severity: Major
                          Found in app/scripts/pointcloud/camera.service.js - About 50 mins to fix

                            Function EarthcontrolsService has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function EarthcontrolsService($rootScope, $location, Messagebus, THREE, PathControls, RailService) { // jshint ignore:line
                            Severity: Minor
                            Found in app/scripts/earthcontrols/earthcontrols.service.js - About 45 mins to fix

                              Function PointcloudExtractionSelectionService has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                function PointcloudExtractionSelectionService(THREE, SceneService, ExtractionSelectionService, ExtractionDrawingService, Messagebus, Potree) {
                              Severity: Minor
                              Found in app/scripts/extract/pointcloud.extraction.selection.service.js - About 45 mins to fix

                                Function roundRect has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                Potree.TextSprite.prototype.roundRect = function(ctx, x, y, w, h, r) {
                                Severity: Minor
                                Found in app/scripts/utils/TextSprite.js - About 45 mins to fix

                                  Function buildSelectionGeometry has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      this.buildSelectionGeometry = function(leftTopLocal, rightTopLocal, rightBottomLocal, leftBottomLocal, color) {
                                  Severity: Minor
                                  Found in app/scripts/extract/pointcloud.extraction.drawing.service.js - About 35 mins to fix

                                    Function SettingsController has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      function SettingsController(PointcloudService, MeasuringService, Messagebus, PathControls, RailService) {
                                    Severity: Minor
                                    Found in app/scripts/settings/settings.controller.js - About 35 mins to fix

                                      Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          this.init = function(camera, renderer, scenePointCloud, pointcloud, elementRenderArea)  {
                                      Severity: Minor
                                      Found in app/scripts/earthcontrols/earthcontrols.service.js - About 35 mins to fix

                                        Function projectedRadius has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                          function projectedRadius(radius, camera, distance, screenWidth, screenHeight){
                                        Severity: Minor
                                        Found in app/scripts/utils/MeasuringTool.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language