Showing 34 of 91 total issues
Function loadPointcloud
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.loadPointcloud = function() {
// load pointcloud
var pointcloudPath = DrivemapService.getPointcloudUrl();
me.stats.lasCoordinates.crs = DrivemapService.getCrs();
Function DrivemapService
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DrivemapService($http, $q, $log, proj4, pattyConf) {
var me = this;
this.data = {};
var deferred = $q.defer();
Function setupResizeControl
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.setupResizeControl = function() {
function ResizeControl(optOptions) {
var options = optOptions || {};
var button = document.createElement('button');
Function update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function() {
if (this.initialized) {
this.tools.volume.update();
this.tools.transformation.update();
this.tools.heightprofile.update();
Function getMousePointCloudIntersection
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function KeyboardController
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function KeyboardController($rootScope, PathControls, PointcloudService, CameraService) {
this.up = false;
this.left = false;
this.down = false;
this.right = false;
Function getBoundingBoxOfFootprint
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getBoundingBoxOfFootprint: function(site) {
var minlon = Number.POSITIVE_INFINITY;
var minlat = Number.POSITIVE_INFINITY;
var minalt = site.footprint_altitude[0]; // jshint ignore:line
var maxlon = Number.NEGATIVE_INFINITY;
Function createPath
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PathControls.prototype.createPath = function() {
var tube = new THREE.TubeGeometry(path, 1024, 0.25, 8, false);
var lookTube = new THREE.TubeGeometry(lookatPath, 1024, 0.25, 8, false);
var tubeMesh = THREE.SceneUtils.createMultiMaterialObject( tube, [
Function ResizeControl
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ResizeControl(optOptions) {
var options = optOptions || {};
var button = document.createElement('button');
button.innerHTML = '<span class="glyphicon glyphicon-resize-full"></span>';
Function MinimapController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function MinimapController(ol, proj4, SitesService, CamFrustumService, Messagebus, DrivemapService) {
Function SiteBoxService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SiteBoxService(THREE, SitesService, CameraService, SceneService, Messagebus) {
Function CameraService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function CameraService($window, $log, THREE, Messagebus, SceneService) {
Function SitesService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SitesService($http, $q, $rootScope, pattyConf, Messagebus) {
Function DrivemapService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function DrivemapService($http, $q, $log, proj4, pattyConf) {