From 0a55a04887b59cac5647a7de0e074ce325b6b64c Mon Sep 17 00:00:00 2001 From: mschuetz Date: Wed, 26 Apr 2017 17:06:04 +0200 Subject: [PATCH] fix css issues --- src/materials/PointCloudMaterial.js | 8 +++---- src/viewer/potree.css | 36 ++--------------------------- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/src/materials/PointCloudMaterial.js b/src/materials/PointCloudMaterial.js index 57fced32..38283023 100644 --- a/src/materials/PointCloudMaterial.js +++ b/src/materials/PointCloudMaterial.js @@ -89,7 +89,7 @@ Potree.TreeType = { Potree.PointCloudMaterial = class PointCloudMaterial extends THREE.RawShaderMaterial{ constructor(parameters = {}){ - super(this); + super(); this.visibleNodesTexture = Potree.utils.generateDataTexture( 2048, 1, new THREE.Color( 0xffffff ) ); this.visibleNodesTexture.minFilter = THREE.NearestFilter; @@ -452,7 +452,7 @@ Potree.PointCloudMaterial = class PointCloudMaterial extends THREE.RawShaderMate } set opacity(value){ - if(this.uniforms.opacity){ + if(this.uniforms && this.uniforms.opacity){ if(this.uniforms.opacity.value !== value){ this.uniforms.opacity.value = value; this.updateShaderSource(); @@ -605,7 +605,7 @@ Potree.PointCloudMaterial = class PointCloudMaterial extends THREE.RawShaderMate this.uniforms.heightMax.value = value; } - generateGradientTexture(gradient){ + static generateGradientTexture(gradient){ let size = 64; // create canvas @@ -636,7 +636,7 @@ Potree.PointCloudMaterial = class PointCloudMaterial extends THREE.RawShaderMate return texture; } - generateClassificationTexture(classification){ + static generateClassificationTexture(classification){ let width = 256; let height = 256; let size = width*height; diff --git a/src/viewer/potree.css b/src/viewer/potree.css index 8b4463ad..12bcc5be 100644 --- a/src/viewer/potree.css +++ b/src/viewer/potree.css @@ -443,12 +443,8 @@ body{ width: 100% !important; } -.pv-menu-list .ui-selectmenu-button span.ui-selectmenu-text{ - line-height: 0.8em; -} - -.ui-selectmenu-text{ - background-color: white; +.ui-widget{ + box-sizing:border-box } .panel-body > li > .ui-slider{ @@ -714,31 +710,3 @@ body{ - - - - - - - -/* -.axis path, - .axis line{ - fill: none; - stroke: white; - } - - .line{ - fill: none; - stroke: blue; - stroke-width: 2px; - } - - .tick text{ - font-size: 12px; - } - - .tick line{ - opacity: 0.2; - } - */ \ No newline at end of file