From 82ef7a1b8b743403dedef83f789516d593f5f243 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Tue, 6 Jun 2023 16:10:17 +0800 Subject: [PATCH] =?UTF-8?q?bug=E8=B0=83=E6=95=B4--=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/platform/PlatformDrawAssistant.ts | 3 --- src/graphics/rect/RectDrawAssistant.ts | 3 --- src/graphics/station/StationDrawAssistant.ts | 3 --- src/graphics/train/TrainDrawAssistant.ts | 3 --- 4 files changed, 12 deletions(-) diff --git a/src/graphics/platform/PlatformDrawAssistant.ts b/src/graphics/platform/PlatformDrawAssistant.ts index fb6b17a..f7987a9 100644 --- a/src/graphics/platform/PlatformDrawAssistant.ts +++ b/src/graphics/platform/PlatformDrawAssistant.ts @@ -52,9 +52,6 @@ export class PlatformDraw extends GraphicDrawAssistant< this.platformGraphic.clear(); this.doorGraphic.clear(); } - onRightClick(): void { - this.createAndStore(true); - } onLeftDown(e: FederatedPointerEvent): void { const { x, y } = this.toCanvasCoordinates(e.global); const p = new Point(x, y); diff --git a/src/graphics/rect/RectDrawAssistant.ts b/src/graphics/rect/RectDrawAssistant.ts index a8ed20e..63a8156 100644 --- a/src/graphics/rect/RectDrawAssistant.ts +++ b/src/graphics/rect/RectDrawAssistant.ts @@ -59,9 +59,6 @@ export class RectDraw extends GraphicDrawAssistant { clearCache(): void { this.rectGraphic.clear(); } - onRightClick(): void { - this.createAndStore(true); - } onLeftDown(e: FederatedPointerEvent): void { const { x, y } = this.toCanvasCoordinates(e.global); const p = new Point(x, y); diff --git a/src/graphics/station/StationDrawAssistant.ts b/src/graphics/station/StationDrawAssistant.ts index 9776752..a29669d 100644 --- a/src/graphics/station/StationDrawAssistant.ts +++ b/src/graphics/station/StationDrawAssistant.ts @@ -36,9 +36,6 @@ export class StationDraw extends GraphicDrawAssistant< clearCache(): void { //this.codeGraph.clear(); } - onRightClick(): void { - this.createAndStore(true); - } onLeftDown(e: FederatedPointerEvent): void { const { x, y } = this.toCanvasCoordinates(e.global); const p = new Point(x, y); diff --git a/src/graphics/train/TrainDrawAssistant.ts b/src/graphics/train/TrainDrawAssistant.ts index bb4d479..767a383 100644 --- a/src/graphics/train/TrainDrawAssistant.ts +++ b/src/graphics/train/TrainDrawAssistant.ts @@ -40,9 +40,6 @@ export class TrainDraw extends GraphicDrawAssistant { this.pauseLeft.clear(); this.codeRact.clear(); } - onRightClick(): void { - this.createAndStore(true); - } onLeftDown(e: FederatedPointerEvent): void { const { x, y } = this.toCanvasCoordinates(e.global); const p = new Point(x, y);