Showing 34 of 91 total issues
Function exports
has 397 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
Function PointcloudService
has 390 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PointcloudService(THREE, Potree, $window, $rootScope,
DrivemapService,
SitesService, CameraService, SceneService,
PathControls, SiteBoxService, MeasuringService, Messagebus) {
Function SiteBoxService
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SiteBoxService(THREE, SitesService, CameraService, SceneService, Messagebus) {
var me = this;
var raycaster = new THREE.Raycaster();
raycaster.params = {
Function MinimapController
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MinimapController(ol, proj4, SitesService, CamFrustumService, Messagebus, DrivemapService) {
var me = this;
var olProjectionCode = 'EPSG:3857';
var siteProjectionCode = null;
Function SitesService
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SitesService($http, $q, $rootScope, pattyConf, Messagebus) {
function onLoad(data) {
service.all = data;
service.filtered = data;
Function MeasuringService
has 159 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MeasuringService($rootScope, Potree, THREE, $window) {
this.tools = {
distance: null,
angle: null,
area: null,
File Gruntfile.js
has 400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Generated on 2015-01-07 using generator-angular 0.10.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
File pointcloud.service.js
has 400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global requestAnimationFrame:false */
(function() {
'use strict';
function PointcloudService(THREE, Potree, $window, $rootScope,
Function MeasuringController
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MeasuringController(MeasuringService) {
this.showToolboxTray = false;
this.showTransformationToolboxTray = false;
this.distanceActive = false;
File path.controls.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* PathControls
* by Ben van Werkhoven (Netherlands eScience Center)
*
* free look around with mouse drag
Function SearchPanelController
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SearchPanelController(SitesService, PointcloudService, NexusService, Messagebus) {
this.pageSize = 2;
this.currentPage = 1;
this.SitesService = SitesService;
this.Messagebus = Messagebus;
Function set
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function(query) {
if (this._query === query) {
return;
}
this._query = query;
Function NexusService
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NexusService(Presenter, SphereTrackball) {
var service = {};
service.siteShown = false;
service.setTarget = function(element) {
this.presenter = new Presenter(element);
Function searched
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.filtered = this.searched = this.all.filter(function(site) {
var descriptionSite = site.description_site; // jshint ignore:line
var siteInterpretation = site.site_interpretation; // jshint ignore:line
var siteContext = site.site_context; // jshint ignore:line
var allText = descriptionSite +
Function CameraService
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CameraService($window, $log, THREE, Messagebus, SceneService) {
var me = this;
var fov = 75;
var width = $window.innerWidth;
var height = $window.innerHeight;
Function createSiteBox
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.createSiteBox = function(site) {
var bBox;
var siteCenter = SitesService.centerOfSite(site);
//var boxSize = SitesService.getBoundingBoxSize(site);
Function addTextLabel
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addTextLabel = function(siteBox) {
// parameters
var canvasSize = 1000; // pt != on-screen pixels
var fontsize = 40; // pt (same as canvas size)
var textBoxPadding = fontsize / 2; // pt
Function update
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function() {
if (pointcloud) {
pointcloud.material.clipMode = me.settings.clipMode;
pointcloud.material.size = me.settings.pointSize;
pointcloud.visiblePointsTarget = me.settings.pointCountTarget * 1000 * 1000;
Function PointcloudService
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function PointcloudService(THREE, Potree, $window, $rootScope,
DrivemapService,
SitesService, CameraService, SceneService,
PathControls, SiteBoxService, MeasuringService, Messagebus) {
Function CamFrustumService
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CamFrustumService(ol, proj4, DrivemapService) {
var olProjectionCode = 'EPSG:3857';
var siteProjectionCode = null;
DrivemapService.ready.then(function() {