|
@@ -56080,7 +56080,7 @@
|
|
|
doubleClickTime:200,//双击间隔时间
|
|
|
testNodeCount1: browser.isMobile() ? 5 : 3, //testMaxNode次数达到这个数字时,changePointSize才使用nodeMaxLevel。 (调试时比较卡,在线上实际只需要3)
|
|
|
|
|
|
- background: '#232323',
|
|
|
+ background: '#000000', //为户外增强对比度改为纯黑
|
|
|
mapBG:/* '#232323', */ '#F5F5F5', //地图的clearColor
|
|
|
|
|
|
colors: { //from navvis
|
|
@@ -75637,7 +75637,7 @@ void main()
|
|
|
{
|
|
|
|
|
|
var cloudPath = //`${Potree.settings.urls.prefix1}/webcloud/cloud.js`
|
|
|
- `${Potree.settings.urls.prefix1}/floor_0_webcloud/cloud.js`;
|
|
|
+ Potree.settings.cloudPath || `${Potree.settings.urls.prefix1}/floor_0_webcloud/cloud.js`;
|
|
|
|
|
|
var timeStamp = 0; //var timeStamp = dataset.updateTime ? dataset.updateTime.replace(/[^0-9]/ig,'') : ''; //每重算一次后缀随updateTime更新一次
|
|
|
|
|
@@ -82263,7 +82263,7 @@ void main()
|
|
|
this.setEdgeLabelPos(label,p1,p2);
|
|
|
|
|
|
distance = distance == void 0 ? p1.distanceTo(p2) : distance;
|
|
|
- var text = this.labelText || viewer.unitConvert.convert(distance, 'distance', Potree.settings.precision , this.unitSystem, 0.001 , true, true);//distance要传0.1 这个factor
|
|
|
+ var text = this.labelText || viewer.unitConvert.convert(distance, 'distance', Potree.settings.precision , this.unitSystem, 0.01 , true, true);//distance要传0.1 这个factor
|
|
|
label.setText(text);
|
|
|
|
|
|
};
|
|
@@ -92249,7 +92249,9 @@ void main()
|
|
|
this.renderer.render(this.scene, this.camera);
|
|
|
}
|
|
|
|
|
|
- update(delta){
|
|
|
+ update(delta){
|
|
|
+ if(this.renderArea.clientWidth <= 0) return //unvisible
|
|
|
+
|
|
|
this.updateScreenSize();
|
|
|
this.controls.update(delta);
|
|
|
this.view.applyToCamera(this.camera);
|