绘制右键调整

This commit is contained in:
fan 2023-07-27 10:15:06 +08:00
parent 62b5164904
commit 3eae46dd30
5 changed files with 0 additions and 19 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);