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