fix css issues

This commit is contained in:
mschuetz 2017-04-26 17:06:04 +02:00
parent 0e170c135e
commit 0a55a04887
2 changed files with 6 additions and 38 deletions

View File

@ -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;

View File

@ -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;
}
*/