xzw 5 月之前
父节点
当前提交
be41a0e686
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 2 1
      src/custom/objects/tool/Measure.js
  2. 4 4
      src/custom/settings.js

+ 2 - 1
src/custom/objects/tool/Measure.js

@@ -58,7 +58,8 @@ const mainLabelProp = {
     clipDistance : 10,//消失距离
     occlusionDistance: 10,//变为backColor距离 
     maxOcclusionFactor:0.3,
-    maxClipFactor:0.8
+    maxClipFactor:0.8,
+    maxLineWidth: 300,
     
 }
 const subLabelProp = { 

+ 4 - 4
src/custom/settings.js

@@ -82,11 +82,11 @@ const config = {//配置参数   不可修改
             return prefix
         },
         setPrefix(num, url ){
-            this.urls['prefix'+num] = url
+            this['prefix'+num] = url
             if(num === 1){
-                this.urls.laserOSSRoot = url
+                this.laserOSSRoot = url
             }else if(num === 3){
-                this.urls.panoOSSRoot = url
+                this.panoOSSRoot = url
             } 
         },
         getPrefix(num, object){ 
@@ -101,7 +101,7 @@ const config = {//配置参数   不可修改
                 let prop = (object.prop || object)?.raw
                 return prop && prop[name] 
             }
-            prefix = this.urls[name] || getFromModel() || this.urls['prefix'+num]
+            prefix = this[name] || getFromModel() || this['prefix'+num]
             return prefix  
         },
         templates : {