From 1b88523b4ec23fb6e604c7d179f03e518a80cb49 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 19 Jul 2023 11:33:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]checkbox=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-out-of-line-details.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts index 794c837..39ce9b5 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts @@ -328,6 +328,11 @@ export class GetOutOfLineDetailsComponent implements OnInit { ); } 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); }