|
|
|
@ -69,6 +69,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
if (!this.legendList.some((e) => e.id == checkboxArr[i].id)) |
|
|
|
|
this.legendList.push(checkboxArr[i]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.details = this.data.content1; |
|
|
|
|
this.imgUrl = this.data.violateImage; |
|
|
|
|
this.vedioUrl = this.data.violateVideo; |
|
|
|
@ -122,6 +123,16 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
endPoint[0] - startPoint[0], |
|
|
|
|
endPoint[1] - startPoint[1] |
|
|
|
|
); |
|
|
|
|
//如果当前矩形区域为错误区域,则左上角增加色块
|
|
|
|
|
if (item.error) { |
|
|
|
|
this.ctx.fillStyle = this.typeArr[item.id].color; |
|
|
|
|
this.ctx.fillRect( |
|
|
|
|
startPoint[0], |
|
|
|
|
startPoint[1], |
|
|
|
|
10, |
|
|
|
|
10 |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
this.ctx.fillStyle = this.typeArr[item.id].color; |
|
|
|
|
this.ctx.font = "16px Verdana"; |
|
|
|
|
let name = ""; |
|
|
|
|