|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
horizontalSpacingFactor = 1.032 // 横向间距放大倍数
|
|
|
verticalSpacingFactor = 0.53 // 纵向间距缩小倍数
|
|
|
}else{
|
|
|
- horizontalSpacingFactor = 0.4 // 横向间距放大倍数
|
|
|
+ horizontalSpacingFactor = 0.6 // 横向间距放大倍数
|
|
|
verticalSpacingFactor = 0.53 // 纵向间距缩小倍数
|
|
|
}
|
|
|
|
|
|
@@ -231,8 +231,10 @@ export default {
|
|
|
// 计算点位的实际位置,确保它们位于柜子显示区域内
|
|
|
const col = pos.x // 当前点位的列
|
|
|
const row = pos.y // 当前点位的行
|
|
|
- x = col * cellWidth + 30 // 调整偏移量,使其向左移动
|
|
|
- y = row * cellHeight - 20 // 调整偏移量,使其向上移动
|
|
|
+ x = col * cellWidth -100;
|
|
|
+ y = row * 2 * 12-1;
|
|
|
+ // x = col * cellWidth - 100 // 调整偏移量,使其向左移动 这里之前是间距比较大的时候使用
|
|
|
+ // y = row * cellHeight - 15 // 调整偏移量,使其向上移动
|
|
|
}
|
|
|
|
|
|
const labelText = pos.entityName // 对应的文字
|