绘制右键调整
This commit is contained in:
parent
62b5164904
commit
3eae46dd30
@ -36,10 +36,6 @@ export class EsbButtonDraw extends GraphicDrawAssistant<
|
|||||||
return this._esbButton;
|
return this._esbButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
onRightClick(): void {
|
|
||||||
this.createAndStore(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
onLeftUp(e: FederatedMouseEvent): void {
|
onLeftUp(e: FederatedMouseEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
|
@ -36,10 +36,6 @@ export class GatedBoxDraw extends GraphicDrawAssistant<
|
|||||||
return this._gatedBox;
|
return this._gatedBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
onRightClick(): void {
|
|
||||||
this.createAndStore(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
onLeftUp(e: FederatedMouseEvent): void {
|
onLeftUp(e: FederatedMouseEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
|
@ -41,9 +41,6 @@ export class SignalDraw extends GraphicDrawAssistant<
|
|||||||
return this._signal;
|
return this._signal;
|
||||||
}
|
}
|
||||||
|
|
||||||
onRightClick(): void {
|
|
||||||
this.createAndStore(true);
|
|
||||||
}
|
|
||||||
onLeftUp(e: FederatedPointerEvent): void {
|
onLeftUp(e: FederatedPointerEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
|
@ -36,10 +36,6 @@ export class SpksSwitchDraw extends GraphicDrawAssistant<
|
|||||||
return this._spksSwitch;
|
return this._spksSwitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
onRightClick(): void {
|
|
||||||
this.createAndStore(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
onLeftUp(e: FederatedMouseEvent): void {
|
onLeftUp(e: FederatedMouseEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
|
@ -40,10 +40,6 @@ export class StopPositionDraw extends GraphicDrawAssistant<
|
|||||||
return this._stopPosition;
|
return this._stopPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
onRightClick(): void {
|
|
||||||
this.createAndStore(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
onLeftUp(e: FederatedMouseEvent): void {
|
onLeftUp(e: FederatedMouseEvent): void {
|
||||||
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
|
||||||
this.createAndStore(true);
|
this.createAndStore(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user