Compare commits

..

4 Commits

Author SHA1 Message Date
yyy
930f5665e3 Merge branch 'xhf' of http://git.znkjfw.com/ak/zn-admin-vue3-wcs into xhf 2025-03-05 10:05:38 +08:00
yyy
b37d7e7505 地图编辑 2025-03-05 10:05:32 +08:00
yyy
b816c868f7 Merge branch 'xhf' of http://git.znkjfw.com/ak/zn-admin-vue3-wcs into xhf 2025-03-05 09:34:00 +08:00
yyy
548a64caae 地图编辑 2025-03-05 09:33:53 +08:00

View File

@ -276,6 +276,7 @@
effect="dark"
:content="item.sortNum || '节点未保存'"
placement="top"
trigger="click"
>
<div
v-if="item.type === 1 && item.layerSelectionShow"
@ -2212,7 +2213,15 @@ const disposeEventPoint = (x, y) => {
}
}
//
const convertActualToBrowser = (pointX, pointY) => {}
const convertActualToBrowser = (x, y) => {
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)
}
//cmpx
const cmConversionPx = (cWidth, cHeight) => {
let pWidth = Number(cWidth) / imgBgObj.resolution / 100