Showing 65 of 154 total issues
Function PointcloudExtractionSelectionService
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PointcloudExtractionSelectionService(THREE, SceneService, ExtractionSelectionService, ExtractionDrawingService, Messagebus, Potree) {
var me = this;
this.selectionActive = false;
this.mouseDownPoint = null;
Function BigLegendController
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BigLegendController($scope, DecimalAdjust, Messagebus, UserAgent, PointcloudService) {
this.PointcloudService = PointcloudService;
this.mobile = UserAgent.mobile;
Function ExtractionSelectionService
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ExtractionSelectionService(Messagebus, debounce) {
this._active = false;
this._left = 93720.22;
this._bottom = 436899.97;
Function ExtractionDrawingService
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ExtractionDrawingService(THREE, SceneService, Messagebus) {
this.color = new THREE.Color(0xffffff);
this.renderer = null;
this.scene = null;
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.render = function(renderer) {
var width = me.elRenderArea.clientWidth;
var height = me.elRenderArea.clientHeight;
Function update2DFrustum
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update2DFrustum = function() {
rightBottomCorner = rightBottomCorner.set(1, -1, 1).unproject(this.camera).normalize();
leftBottomCorner = leftBottomCorner.set(-1, -1, 1).unproject(this.camera).normalize();
leftTopCorner = leftTopCorner.set(-1, 1, 1).unproject(this.camera).normalize();
Function update
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function(){
var i, point, msg;
if (this.points.length === 0){
return;
Function render
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.render = function() {
initEDL();
resize();
Function PointcloudService
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function PointcloudService(THREE, Potree, $window, $rootScope, $location,
DrivemapService,
CameraService, SceneService,
PathControls, MeasuringService, EarthcontrolsService,
RailService, ExtractionDrawingService, PointcloudExtractionSelectionService,
Function SearchPanelController
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SearchPanelController(BingGeoCoderService, SceneService, PathControls, Messagebus, $window, toastr, THREE, proj4) {
this.query = '';
this.hasGeoLocation = 'geolocation' in $window.navigator;
this.clear = function() {
Function EarthcontrolsService
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EarthcontrolsService($rootScope, $location, Messagebus, THREE, PathControls, RailService) { // jshint ignore:line
this.enabled = true;
this.earthControls = null;
this.pathcontrols = PathControls;
Function CamFrustumService
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CamFrustumService(ol, THREE) {
this.camFrustum = new ol.geom.LineString([[0, 0], [1, 0], [0, 1]]);
var featureVector = new ol.source.Vector({
features: [new ol.Feature(this.camFrustum)]
});
Function ExtractionController
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ExtractionController(ExtractionSelectionService, pattyConf, Messagebus, $http, toastr) {
this.selection = ExtractionSelectionService;
this.email = '';
this.size = {
coverage: 1,
Function addMarker
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addMarker = function(point){
this.points.push(point);
// sphere
var sphere = new THREE.Mesh(sphereGeometry, createSphereMaterial());
Function loadPointcloud
has 43 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 initHQSPlats
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var initHQSPlats = function() {
if (depthMaterial !== null) {
return;
}
Function update
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function() {
Potree.pointLoadLimit = me.settings.pointCountTarget * 2 * 1000 * 1000;
if (me.settings.useEDL) {
directionalLight.position.copy(camera.position);
Function HelpModalController
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HelpModalController($window, UserAgent) {
this.mobile = UserAgent.mobile;
this.doNotShow = false;
this.dontShowClicked = function() {
Function SettingsController
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SettingsController(PointcloudService, MeasuringService, Messagebus, PathControls, RailService) {
this.showSettings = false;
// this.predefinedSettings = PointcloudService.predefinedSettings;
// this.settings = PointcloudService.settings;
this.PointcloudService = PointcloudService;
Function update
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function(){
var measurements = [], pr, distance, scale, i, j, label;
for(i = 0; i < this.measurements.length; i++){
measurements.push(this.measurements[i]);