2 Commits e0afc6edf1 ... d1df0bcb57

Autor SHA1 Mensaje Fecha
  xzw d1df0bcb57 Merge branch 'v1.9.0-jm-local' of http://192.168.0.115:3000/bill/fuse-code into v1.9.0-jm-local hace 2 meses
  xzw 9d89134a13 fix: 拖拽path tag label高度 发送event hace 2 meses
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      src/sdk/cover/index.js

+ 7 - 1
src/sdk/cover/index.js

@@ -1559,6 +1559,10 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
                     bus.emit('focus', e.state) 
                 })
                  
+                path.addEventListener('dragLineLen',(e)=>{ 
+                    bus.emit('changeLineHeight', path.lineHeight) 
+                })
+                 
             }
             let funs = getMeasureFunction(path, bus) 
 
@@ -1815,7 +1819,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
                     pos: tag.position.clone()
                 })
             })
-            
+            tag.addEventListener('dragLineLen',(e)=>{ 
+                bus.emit('changeLineHeight', tag.lineLength) 
+            })
             
             
             tag.functions = {