From 589b8d6952ad9370b51cf8365dbacc798776d512 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 19 Jan 2024 14:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/Turnout/common/JlTurnout.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packages/Turnout/common/JlTurnout.ts b/src/packages/Turnout/common/JlTurnout.ts index 69499be..657f6d4 100644 --- a/src/packages/Turnout/common/JlTurnout.ts +++ b/src/packages/Turnout/common/JlTurnout.ts @@ -19,7 +19,7 @@ export function getForkPoint(r: number, p: IPointData): IPointData { return { x: scale * p.x, y: scale * p.y }; } -class TurnoutSection extends Graphics { +export class TurnoutSection extends Graphics { turnoutConsts: TurnoutConstsConfig; turnout: JlTurnout; port: DevicePort; @@ -65,6 +65,7 @@ class ForkGraphic extends Graphics { turnoutConsts: TurnoutConstsConfig; turnout: JlTurnout; stateFillColor?: string; + dt = 0; constructor(turnout: JlTurnout, turnoutConsts: TurnoutConstsConfig) { super(); this.turnoutConsts = turnoutConsts; @@ -82,7 +83,7 @@ class ForkGraphic extends Graphics { } export abstract class JlTurnout extends JlGraphic { - static Type = 'JlTurnout'; + static Type = 'Turnout'; graphics: { fork: ForkGraphic; sections: [TurnoutSection, TurnoutSection, TurnoutSection];