Bladeren bron

Merge branch 'master' of http://192.168.0.115:3000/bill/traffic-laser

jinx 2 jaren geleden
bovenliggende
commit
42b1f2a4d3

+ 3 - 3
public/static/lib/potree/potree.js

@@ -75430,7 +75430,7 @@ void main()
 	    clickMaxDragDis:5,
 	    clickMaxPressTime:500, //ms
 	    doubleClickTime:200,//双击间隔时间
-	    testNodeCount1: browser.isMobile() ? 8 : 6,  //testMaxNode次数达到这个数字时,changePointSize才使用nodeMaxLevel。 (调试时比较卡,在线上实际只需要3)
+	    testNodeCount1: browser.isMobile() ? 5 : 3,  //testMaxNode次数达到这个数字时,changePointSize才使用nodeMaxLevel。 (调试时比较卡,在线上实际只需要3)
 	     
 	    background: '#232323',
 	    mapBG:/* '#232323',   */  '#F5F5F5',   //地图的clearColor
@@ -75573,7 +75573,7 @@ void main()
 	    useV4url:true, //v4的全景图等路径不一样 scene_view_data
 	    
 	    useRTskybox:true,  //直接使用rtEDL绘制到屏幕,当是全景模式时. 在降4倍时能给render节省1毫秒,gpu时间未测 
-	    //useRTPoint:true,    //直接使用rtEDL绘制到屏幕,当是点云模式时。可以大大节省gpu时间
+	    //useRTPoint:true,    //直接使用rtEDL绘制到屏幕,当是点云模式时。可以大大节省gpu时间. 大部分时候是有测量线的,失去抗锯齿了算了
 	    pointEnableRT:false,//点云是否允许绘制到rtEDL。只在有需要时使用
 	    cloudSameMat:true,  //因为点云个数较多,就使用相同的材质,可见降低绘制速度(要保证所有点云的maxNodelevel一样,且要算出 material.spacing的平均值)
 	    
@@ -88322,7 +88322,7 @@ void main()
 	        
 	        let target = params.target || null;
 	        
-			const resolution = rtEDL ? new Vector2(rtEDL.width,rtEDL.height) : params.viewport ? params.viewport.resolution2 : this.viewer.renderer.getSize(new Vector2());//突然发现mobile用resolution2点云会放大
+			const resolution = (rtEDL && Potree.settings.useRTPoint) ? new Vector2(rtEDL.width,rtEDL.height) : params.viewport ? params.viewport.resolution2 : this.viewer.renderer.getSize(new Vector2());//突然发现mobile用resolution2点云会放大
 	        
 	        
 	        

File diff suppressed because it is too large
+ 1 - 1
public/static/lib/potree/potree.js.map


File diff suppressed because it is too large
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 2 - 1
src/views/scene/covers/actions.vue

@@ -3,7 +3,8 @@
     <ButtonPane
         v-for="menu in menus"
         :key="menu.key"
-        @touchstart.stop="menu.action"
+        @touchstart.stop
+        @click.stop="menu.action"
         class="action"
         :style="{backgroundColor: menu.color}">
       <UiIcon :type="menu.icon" class="icon" :style="{color: menu.iconColor}"/>

+ 2 - 1
src/views/scene/covers/basePoints.vue

@@ -29,8 +29,9 @@ const activeActionMenus = [
       const index = basePoints.value.indexOf(active.value)
       if (~index) {
         basePoints.value.splice(index, 1)
+        active.value = null
       }
     }
   }
 ]
-</script>
+</script>

+ 1 - 1
src/views/scene/covers/cover.vue

@@ -103,7 +103,7 @@ const clickHandler = ev => {
 
   const handler = (ev: MouseEvent) => {
     console.log("????????")
-    if (!dom.value.contains(ev.target as HTMLElement) && ev.target !== dom.value) {
+    if (dom.value && !dom.value.contains(ev.target as HTMLElement) && ev.target !== dom.value) {
       emit("blur")
       // document.documentElement.removeEventListener("click", handler)
       document.documentElement.removeEventListener("touchstart", handler)