|
|
@ -217,7 +217,14 @@ export class GetOutOfLineDetailsComponent implements OnInit { |
|
|
|
(v) => v.id !== item.id |
|
|
|
(v) => v.id !== item.id |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight); |
|
|
|
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight); |
|
|
|
|
|
|
|
let imgBg: any = document.getElementById("img"); |
|
|
|
|
|
|
|
const img = new Image(); |
|
|
|
|
|
|
|
img.src = imgBg.src; |
|
|
|
|
|
|
|
const canvas: any = document.querySelector("#canvas"); |
|
|
|
|
|
|
|
this.ctx.drawImage(img, 0, 0, canvas.width, canvas.height); |
|
|
|
|
|
|
|
|
|
|
|
this.strokeRect(this.currentCoordinate); |
|
|
|
this.strokeRect(this.currentCoordinate); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|