网格样式
This commit is contained in:
parent
b7f8e5f29c
commit
7fbdf6fb8d
@ -730,10 +730,10 @@
|
||||
<!-- </map-scale-tool> -->
|
||||
</div>
|
||||
|
||||
<div class="actual-location" v-if="state.actualLocation.x && state.actualLocation.y">
|
||||
<!-- <div class="actual-location" v-if="state.actualLocation.x && state.actualLocation.y">
|
||||
<div>X:{{ state.actualLocation.x }}</div>
|
||||
<div>Y:{{ state.actualLocation.y }}</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- 节点编辑 -->
|
||||
<editNodeProperties
|
||||
@ -1133,8 +1133,8 @@ const mapClick = (e) => {
|
||||
const actualLocationX = disposeEventPoints(e).actualLocationX
|
||||
const actualLocationY = disposeEventPoints(e).actualLocationY
|
||||
|
||||
state.actualLocation.x = actualLocationX
|
||||
state.actualLocation.y = actualLocationY
|
||||
// state.actualLocation.x = actualLocationX
|
||||
// state.actualLocation.y = actualLocationY
|
||||
|
||||
//新增节点
|
||||
if (toolbarSwitchType.value === 'drawNodes') {
|
||||
@ -1526,7 +1526,11 @@ const state = reactive({
|
||||
})
|
||||
//网格的样式
|
||||
const gradientBackground = computed(() => {
|
||||
if (!state.isShowGrid) return {}
|
||||
if (!state.isShowGrid)
|
||||
return {
|
||||
width: `${imgBgObj.width}px`,
|
||||
height: `${imgBgObj.height}px`
|
||||
}
|
||||
|
||||
return {
|
||||
backgroundImage: `
|
||||
@ -1584,25 +1588,22 @@ const toolbarClick = async (item) => {
|
||||
state.showInputBox = false
|
||||
state.inputBoxValue = ''
|
||||
}
|
||||
|
||||
if (
|
||||
toolbarSwitchType.value === 'generateLine' ||
|
||||
toolbarSwitchType.value === 'createLineLibrary' ||
|
||||
toolbarSwitchType.value === 'createRegion'
|
||||
toolbarSwitchType.value === 'createRegion' ||
|
||||
toolbarSwitchType.value === 'bulkDelete'
|
||||
) {
|
||||
state.cursorStyle = 'crosshair'
|
||||
} else {
|
||||
state.cursorStyle = `auto`
|
||||
}
|
||||
|
||||
//工具切换 不适用框选的 要把框选的信息都删掉
|
||||
if (
|
||||
toolbarSwitchType.value !== 'createLineLibrary' &&
|
||||
toolbarSwitchType.value !== 'createRegion'
|
||||
) {
|
||||
//工具切换 不适用框选的 要把框选的信息都删掉
|
||||
state.drawSelectionAreaShow = false
|
||||
state.allDrawSelectionAreaBox = []
|
||||
state.drawSelectionPointList = []
|
||||
}
|
||||
|
||||
//非测距
|
||||
if (toolbarSwitchType.value !== 'ranging') {
|
||||
state.measureDistancesPoints = [] // 清空存储点击的点位
|
||||
|
Loading…
Reference in New Issue
Block a user