|
|
|
@ -45,6 +45,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
{ id: 14, name: "断开的卸油管", color: "blue" }, |
|
|
|
|
{ id: 15, name: "烟雾预警", color: "#B4C3FF" }, |
|
|
|
|
{ id: 16, name: "火灾报警", color: "red" }, |
|
|
|
|
{ id: 17, name: "延长工装", color: "blue" }, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
userName; |
|
|
|
@ -127,8 +128,8 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
var img = new Image(); |
|
|
|
|
img.src = url; |
|
|
|
|
img.onload = () => { |
|
|
|
|
this.canvasWidth = img.width; |
|
|
|
|
this.canvasHeight = img.height; |
|
|
|
|
// this.canvasWidth = img.width;
|
|
|
|
|
// this.canvasHeight = img.height;
|
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
// 加载图片
|
|
|
|
|
this.ctx.drawImage(img, 0, 0, this.canvasWidth, this.canvasHeight); |
|
|
|
|