Compare commits
No commits in common. "930f5665e3f322b54e0136945be9c4bd81e46097" and "5047b212b77b03bb4cc641ad69c1cce08fae6e83" have entirely different histories.
930f5665e3
...
5047b212b7
@ -276,7 +276,6 @@
|
||||
effect="dark"
|
||||
:content="item.sortNum || '节点未保存'"
|
||||
placement="top"
|
||||
trigger="click"
|
||||
>
|
||||
<div
|
||||
v-if="item.type === 1 && item.layerSelectionShow"
|
||||
@ -2213,15 +2212,7 @@ const disposeEventPoint = (x, y) => {
|
||||
}
|
||||
}
|
||||
// 传入实际现场的数据,转换成浏览器坐标的数据
|
||||
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)
|
||||
}
|
||||
const convertActualToBrowser = (pointX, pointY) => {}
|
||||
//将节点实际宽高cm转换成px
|
||||
const cmConversionPx = (cWidth, cHeight) => {
|
||||
let pWidth = Number(cWidth) / imgBgObj.resolution / 100
|
||||
|
Loading…
Reference in New Issue
Block a user