This commit is contained in:
2025-08-13 18:06:35 +08:00
parent 98e21918a5
commit a59955e8f6
8 changed files with 95 additions and 76 deletions

View File

@@ -332,10 +332,12 @@ export default {
)
}
// 绘制点位名称(文字大小随缩放变化)
this.ctx.font = '12px Arial'
this.ctx.fillStyle = 'white'
this.ctx.textAlign = 'center'
this.ctx.fillText(point.station_name, x, y + 18)
if (point.station_type === 'Station') {
this.ctx.font = '12px Arial'
this.ctx.fillStyle = 'white'
this.ctx.textAlign = 'center'
this.ctx.fillText(point.station_name, x, y + 18)
}
})
},
drawCar () {
@@ -347,10 +349,10 @@ export default {
this.ctx.rotate(-this.carPosition.angle)
this.ctx.drawImage(
this.cachedImages.car,
-25,
-25,
50,
50
-10,
-10,
20,
20
)
// this.ctx.restore()
},