This commit is contained in:
joylink_zhaoerwei 2024-01-19 14:01:10 +08:00
parent f87f2178fb
commit 589b8d6952
1 changed files with 3 additions and 2 deletions

View File

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