xzw 8 ヶ月 前
コミット
5aa83901f6
3 ファイル変更17 行追加9 行削除
  1. 7 5
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map
  3. 9 3
      src/sdk/cover/index.js

+ 7 - 5
public/lib/potree/potree.js

@@ -55620,6 +55620,7 @@
 	  constructor(o) {
 	    super();
 	    this.title = o.title;
+	    this.fontsize = o.fontsize;
 	    this.lineLength = o.lineLength != void 0 ? o.lineLength : defaultLineLength;
 	    this.position.copy(o.position);
 	    this.normal = o.normal != void 0 ? o.normal : new Vector3(0, 0, 1);
@@ -55664,7 +55665,7 @@
 	        a: 0.7
 	      },
 	      borderRadius: 6,
-	      fontsize: 13,
+	      fontsize: this.fontsize || 13,
 	      fontWeight: '',
 	      //thick
 	      renderOrder: renderOrders.label,
@@ -63120,6 +63121,7 @@
 	var CursorDeal = {
 	  priorityEvent: [
 	  //在前面的优先级高
+
 	  {
 	    'zoomInCloud': 'zoom-in'
 	  }, {
@@ -63131,10 +63133,6 @@
 	  }, {
 	    'disconnectPano': "url({Potree.resourcePath}/images/connect-dis.png),auto"
 	  }, {
-	    'hoverLine': 'pointer'
-	  }, {
-	    'hoverTranHandle': 'grab'
-	  }, {
 	    'grabbing': 'grabbing'
 	  },
 	  //通用
@@ -63144,6 +63142,10 @@
 	  //通用
 
 	  {
+	    'hoverLine': 'pointer'
+	  }, {
+	    'hoverTranHandle': 'grab'
+	  }, {
 	    "movePointcloud": 'move'
 	  }, {
 	    "polygon_isIntersectSelf": 'not-allowed'

ファイルの差分が大きいため隠しています
+ 1 - 1
public/lib/potree/potree.js.map


+ 9 - 3
src/sdk/cover/index.js

@@ -1312,7 +1312,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
                 position: new THREE.Vector3().copy(props.position), //局部坐标
                 normal: new THREE.Vector3().copy(props.normal), 
                 root,   lineLength: props.altitudeAboveGround,
-                title: props.title
+                title: props.title,  fontsize: props.fontSize
             }    
             let tag = viewer.tagTool.createTagFromData(info)
             
@@ -1360,13 +1360,19 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
                     tag.setFaceAngle(rotation)
                     tag.changeSpotScale(scale)
                 },
-                changeFontSize(fontSize){
-                    
+                changeFontSize(fontsize){
+                    tag.titleLabel.fontsize = fontsize
+                    tag.titleLabel.updateTexture();
+                    viewer.dispatchEvent('content_changed')
                 },
                 // 更改离地高度
                 changeLineHeight(height){//线长
                     tag.changeLineLen(height)
                 },
+                changeAltitudeAboveGround(height){//线长
+                    console.warn('changeAltitudeAboveGround 删除了')
+                    tag.changeLineLen(height || 1)
+                },
                 changeCanMove(canMove){
                     tag.dragEnable = canMove
                 },