From 3eae46dd303454ea71c210aace397871aa2a03c0 Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 27 Jul 2023 10:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=98=E5=88=B6=E5=8F=B3=E9=94=AE=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/esbButton/EsbButtonDrawAssistant.ts | 4 ---- src/graphics/gatedBox/GatedBoxDrawAssistant.ts | 4 ---- src/graphics/signal/SignalDrawAssistant.ts | 3 --- src/graphics/spksSwitch/SpksSwitchDrawAssistant.ts | 4 ---- src/graphics/stopPosition/StopPositionDrawAssistant.ts | 4 ---- 5 files changed, 19 deletions(-) diff --git a/src/graphics/esbButton/EsbButtonDrawAssistant.ts b/src/graphics/esbButton/EsbButtonDrawAssistant.ts index 3becadf..04e6849 100644 --- a/src/graphics/esbButton/EsbButtonDrawAssistant.ts +++ b/src/graphics/esbButton/EsbButtonDrawAssistant.ts @@ -36,10 +36,6 @@ export class EsbButtonDraw extends GraphicDrawAssistant< return this._esbButton; } - onRightClick(): void { - this.createAndStore(true); - } - onLeftUp(e: FederatedMouseEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true); diff --git a/src/graphics/gatedBox/GatedBoxDrawAssistant.ts b/src/graphics/gatedBox/GatedBoxDrawAssistant.ts index 3fe9720..ea7be22 100644 --- a/src/graphics/gatedBox/GatedBoxDrawAssistant.ts +++ b/src/graphics/gatedBox/GatedBoxDrawAssistant.ts @@ -36,10 +36,6 @@ export class GatedBoxDraw extends GraphicDrawAssistant< return this._gatedBox; } - onRightClick(): void { - this.createAndStore(true); - } - onLeftUp(e: FederatedMouseEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true); diff --git a/src/graphics/signal/SignalDrawAssistant.ts b/src/graphics/signal/SignalDrawAssistant.ts index efd68b1..5f351ac 100644 --- a/src/graphics/signal/SignalDrawAssistant.ts +++ b/src/graphics/signal/SignalDrawAssistant.ts @@ -41,9 +41,6 @@ export class SignalDraw extends GraphicDrawAssistant< return this._signal; } - onRightClick(): void { - this.createAndStore(true); - } onLeftUp(e: FederatedPointerEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true); diff --git a/src/graphics/spksSwitch/SpksSwitchDrawAssistant.ts b/src/graphics/spksSwitch/SpksSwitchDrawAssistant.ts index a0c8bec..03ab1e3 100644 --- a/src/graphics/spksSwitch/SpksSwitchDrawAssistant.ts +++ b/src/graphics/spksSwitch/SpksSwitchDrawAssistant.ts @@ -36,10 +36,6 @@ export class SpksSwitchDraw extends GraphicDrawAssistant< return this._spksSwitch; } - onRightClick(): void { - this.createAndStore(true); - } - onLeftUp(e: FederatedMouseEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true); diff --git a/src/graphics/stopPosition/StopPositionDrawAssistant.ts b/src/graphics/stopPosition/StopPositionDrawAssistant.ts index 35a379d..cfc17b4 100644 --- a/src/graphics/stopPosition/StopPositionDrawAssistant.ts +++ b/src/graphics/stopPosition/StopPositionDrawAssistant.ts @@ -40,10 +40,6 @@ export class StopPositionDraw extends GraphicDrawAssistant< return this._stopPosition; } - onRightClick(): void { - this.createAndStore(true); - } - onLeftUp(e: FederatedMouseEvent): void { this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.createAndStore(true);