css
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user