Showing 65 of 154 total issues
Function DecimalAdjust
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DecimalAdjust() {
/**
* Decimal adjustment of a number.
*
* @param {String}
Function onMouseMove
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function BingGeoCoderService
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BingGeoCoderService($http) {
/**
* Bing maps API key
* @type {String}
*/
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 29 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 drawSelection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.drawSelection = function(bbox) {
// resize dragbox
var coordinates = [
[
[
Function PotreeRenderer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PotreeRenderer = function() {
var resize = function(width, height) {
var aspect = width / height;
camera.aspect = aspect;
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 buildSelectionGeometry
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.buildSelectionGeometry = function(leftTopLocal, rightTopLocal, rightBottomLocal, leftBottomLocal, color) {
var boxMaterial = new THREE.MeshBasicMaterial({
color: color,
side: THREE.DoubleSide,
transparent: true,
Function update
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Potree.TextSprite.prototype.update = function(){
var canvas = document.createElement('canvas');
var context = canvas.getContext('2d');
context.font = 'Bold ' + this.fontsize + 'px ' + this.fontface;
Function SearchPanelController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SearchPanelController(BingGeoCoderService, SceneService, PathControls, Messagebus, $window, toastr, THREE, proj4) {
Function CameraService
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function CameraService($rootScope, $window, $log, $location, THREE, Messagebus, SceneService) {
Function EarthcontrolsService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function EarthcontrolsService($rootScope, $location, Messagebus, THREE, PathControls, RailService) { // jshint ignore:line
Function PointcloudExtractionSelectionService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function PointcloudExtractionSelectionService(THREE, SceneService, ExtractionSelectionService, ExtractionDrawingService, Messagebus, Potree) {
Function roundRect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Potree.TextSprite.prototype.roundRect = function(ctx, x, y, w, h, r) {
Function buildSelectionGeometry
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.buildSelectionGeometry = function(leftTopLocal, rightTopLocal, rightBottomLocal, leftBottomLocal, color) {
Function SettingsController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SettingsController(PointcloudService, MeasuringService, Messagebus, PathControls, RailService) {
Function init
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.init = function(camera, renderer, scenePointCloud, pointcloud, elementRenderArea) {
Function projectedRadius
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function projectedRadius(radius, camera, distance, screenWidth, screenHeight){