فهرست منبع

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

bill 1 ماه پیش
والد
کامیت
bfb16ea956
3فایلهای تغییر یافته به همراه13 افزوده شده و 12 حذف شده
  1. 8 8
      public/static/lib/potree/potree.js
  2. 1 1
      public/static/lib/potree/potree.js.map
  3. 4 3
      src/sdk/laser/core/enter.js

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

@@ -97132,12 +97132,17 @@ ENDSEC
 	    }
 	    
 	 
-	    
+	    dispose(){
+	        this.dispatchEvent('dispose');
+	        this.marker.parent.remove(this.marker);
+	        this.label && this.label.parent.remove(this.label);
+	        this.label2 && this.label2.parent.remove(this.label2);
+	    }
 
 	    
 	    
 	    addLabel(){ 
-	        this.removeTextLabel();
+	        this.label && this.label.parent.remove(this.label);
 	        this.label = new TextSprite$2(Object.assign({},
 	           labelProp, {text: this.id + "("+this.originID+")"}) //{text: `id:${this.id}, dataset:${this.pointcloud.name}, 4dkkId:${this.originID}`}
 	        ); 
@@ -97158,11 +97163,6 @@ ENDSEC
 	    }
 	     
 	    
-	    removeTextLabel(){
-	        if(this.label){ 
-	            this.label.parent.remove(this.label);
-	        }
-	    }
 	    
 	     
 	    
@@ -99056,7 +99056,7 @@ ENDSEC
 	        if(i>-1){
 	            this.panos.splice(i,1);
 	            this.currentPano == pano && (this.currentPano = null); 
-	            pano.dispatchEvent('dispose');
+	            pano.dispose();
 	        }
 	    }                                    
 	                                      

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
public/static/lib/potree/potree.js.map


+ 4 - 3
src/sdk/laser/core/enter.js

@@ -1580,15 +1580,16 @@ var enter = ({
             console.log('addPano', info)
             
         },
-        delReshoot({image}){
-            let pano = viewer.images360.panos.find(e=>e.panoData.imageSrc == image)
+        delReshoot({id}){
+            let pano = viewer.images360.getPano(id)
             if(pano) {
                 viewer.images360.deletePano(pano) 
             }
         },
         getCurrentPano(){
             let image = viewer.images360.currentPano?.panoData.imageSrc
-            return {image}
+            let id = viewer.images360.currentPano?.id 
+            return {image, id}
         }
         ,
         destroy(){//重新创建viewer,删了旧的