|
@@ -1,5 +1,3 @@
|
|
-import { furnitureIconSizeMap } from '@/const/furniture'
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 格式化秒数为年、月、日、时、分、秒的字符串表示
|
|
* 格式化秒数为年、月、日、时、分、秒的字符串表示
|
|
* @param {number} seconds - 秒数
|
|
* @param {number} seconds - 秒数
|
|
@@ -90,8 +88,8 @@ export const getOriginPosition = (
|
|
const originOffsetY = originY - offsetY
|
|
const originOffsetY = originY - offsetY
|
|
|
|
|
|
// 雷达尺寸
|
|
// 雷达尺寸
|
|
- const radarWidth = furnitureIconSizeMap['radar']?.width ?? 0
|
|
|
|
- const radarHeight = furnitureIconSizeMap['radar']?.height ?? 0
|
|
|
|
|
|
+ const radarWidth = 20
|
|
|
|
+ const radarHeight = 20
|
|
|
|
|
|
// 雷达基于原点的偏移量
|
|
// 雷达基于原点的偏移量
|
|
const radarX = Math.round(originX - radarWidth / 2)
|
|
const radarX = Math.round(originX - radarWidth / 2)
|