Browse Source

commit

master
xuhuihui 3 years ago
parent
commit
4408845dd1
  1. 2
      04.系统编码/Frontend/src/components/RamanLidar.vue
  2. 5
      04.系统编码/Frontend/src/index.less
  3. 8
      04.系统编码/Frontend/src/model/heat-map-drawer.ts

2
04.系统编码/Frontend/src/components/RamanLidar.vue

@ -1265,7 +1265,7 @@ export default {
}
#pm2_5_chart {
transform: scale(0.7, 0.43) translate(-236px, 417px);
transform: scale(0.7, 0.43) translate(-236px, 450px);
}
#pm10_chart {

5
04.系统编码/Frontend/src/index.less

@ -6,8 +6,9 @@
body {
height: 100vh;
background: url("../images/bg.png") no-repeat top center;
width: 100vw;
background: url("../images/bg.png") no-repeat;
background-size: 100% 100%;
}
:root {

8
04.系统编码/Frontend/src/model/heat-map-drawer.ts

@ -15,8 +15,8 @@ export class HeatMapDrawer{
private readonly height: number = null;
private readonly paddingLeft: number = 150;
private readonly paddingRight: number = 100;
private readonly paddingTop: number = 60;
private readonly paddingBottom: number = 120;
private readonly paddingTop: number = 80;
private readonly paddingBottom: number = 100;
private colorChart: ColorChart = null;
private values: any = null;
@ -280,14 +280,14 @@ export class HeatMapDrawer{
this.canvasContext.font = "normal 25px Verdana";
this.canvasContext.fillStyle = "#000000";
let unitX = 680
this.canvasContext.fillText(unit, unitX, 60);
this.canvasContext.fillText(unit, unitX, 80);
}
private drawResolutionName(name): void {
this.canvasContext.font = "normal 35px Verdana";
this.canvasContext.fillStyle = "#000000";
let nameX = 380
this.canvasContext.fillText(name, nameX, 580)
this.canvasContext.fillText(name, nameX, 60)
}
private drawVerticalScale(): void{

Loading…
Cancel
Save