|
@@ -87,7 +87,7 @@ let addPath = ()=>{//加个他们拍的路径
|
|
|
if(spaceTime == '') spaceTime = 40
|
|
|
let height = 3.2
|
|
|
|
|
|
- $('.ui-editor-head').css('pointer-events','none')
|
|
|
+
|
|
|
|
|
|
let btnCreated
|
|
|
let createBtn = ()=>{
|
|
@@ -2047,7 +2047,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
}else{
|
|
|
curSelectPath == path && (curSelectPath = null)
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
let functions = Object.assign(funs,{
|
|
|
bus,
|
|
|
path,
|
|
@@ -2056,6 +2056,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
viewer.dispatchEvent({ type: 'cancel_insertions', dontRemove: true, measure:path })
|
|
|
}
|
|
|
path.setEditEnable(state)
|
|
|
+ $('.ui-editor-head .control').css('pointer-events',state?'none':'')
|
|
|
},
|
|
|
|
|
|
changeCanEdit(state){//是否点击pen图标以加点和删点
|
|
@@ -2065,9 +2066,10 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
path = viewer.measuringTool.startInsertion( info, () => {
|
|
|
bus.emit("drawed" ); //完成
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
}else{
|
|
|
viewer.dispatchEvent({ type: 'cancel_insertions', dontRemove: true, measure:path })
|
|
|
+
|
|
|
}
|
|
|
console.log('changeCanEdit',state)
|
|
|
path.setAddOrRemPoint(state)
|
|
@@ -2391,7 +2393,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
goFloor(floorIndex){//切换楼层
|
|
|
let model = viewer.objs.children.find(e=>e.id == 608)
|
|
|
if(!model)return
|
|
|
- model.children.forEach(e=>Potree.Utils.updateVisible(e,'goFloor', floorIndex == 'all' || e.floorIndex == floorIndex))
|
|
|
+ model.goFloor(floorIndex)
|
|
|
}
|
|
|
|
|
|
}
|