地图编辑

This commit is contained in:
yyy 2025-03-05 10:05:32 +08:00
parent b816c868f7
commit b37d7e7505

View File

@ -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)
}
//cmpx
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 = ''