地图编辑
This commit is contained in:
parent
b816c868f7
commit
b37d7e7505
@ -276,6 +276,7 @@
|
||||
effect="dark"
|
||||
:content="item.sortNum || '节点未保存'"
|
||||
placement="top"
|
||||
trigger="click"
|
||||
>
|
||||
<div
|
||||
v-if="item.type === 1 && item.layerSelectionShow"
|
||||
@ -2213,8 +2214,13 @@ const disposeEventPoint = (x, y) => {
|
||||
}
|
||||
// 传入实际现场的数据,转换成浏览器坐标的数据
|
||||
const convertActualToBrowser = (x, y) => {
|
||||
let browserX = point.x - warehouse.x0
|
||||
let browserY = point.x - warehouse.x0
|
||||
let browserX = Math.max(Number(x) - imgBgObj.origin[0], 0)
|
||||
let browserY = Math.max(
|
||||
imgBgObj.origin[1] + Number(imgBgObj.height) * imgBgObj.resolution - Number(y),
|
||||
0
|
||||
)
|
||||
|
||||
console.log(browserX, browserY)
|
||||
}
|
||||
//将节点实际宽高cm转换成px
|
||||
const cmConversionPx = (cWidth, cHeight) => {
|
||||
@ -2263,7 +2269,6 @@ const getBezierMidArrowPath = (item) => {
|
||||
}
|
||||
|
||||
document.onmousedown = function (e) {
|
||||
// convertActualToBrowser(-54.4, -34.2)
|
||||
//左击
|
||||
if (e.button == 2) {
|
||||
state.selectedCurve = ''
|
||||
|
Loading…
Reference in New Issue
Block a user