测试
This commit is contained in:
parent
f87f2178fb
commit
589b8d6952
@ -19,7 +19,7 @@ export function getForkPoint(r: number, p: IPointData): IPointData {
|
|||||||
return { x: scale * p.x, y: scale * p.y };
|
return { x: scale * p.x, y: scale * p.y };
|
||||||
}
|
}
|
||||||
|
|
||||||
class TurnoutSection extends Graphics {
|
export class TurnoutSection extends Graphics {
|
||||||
turnoutConsts: TurnoutConstsConfig;
|
turnoutConsts: TurnoutConstsConfig;
|
||||||
turnout: JlTurnout;
|
turnout: JlTurnout;
|
||||||
port: DevicePort;
|
port: DevicePort;
|
||||||
@ -65,6 +65,7 @@ class ForkGraphic extends Graphics {
|
|||||||
turnoutConsts: TurnoutConstsConfig;
|
turnoutConsts: TurnoutConstsConfig;
|
||||||
turnout: JlTurnout;
|
turnout: JlTurnout;
|
||||||
stateFillColor?: string;
|
stateFillColor?: string;
|
||||||
|
dt = 0;
|
||||||
constructor(turnout: JlTurnout, turnoutConsts: TurnoutConstsConfig) {
|
constructor(turnout: JlTurnout, turnoutConsts: TurnoutConstsConfig) {
|
||||||
super();
|
super();
|
||||||
this.turnoutConsts = turnoutConsts;
|
this.turnoutConsts = turnoutConsts;
|
||||||
@ -82,7 +83,7 @@ class ForkGraphic extends Graphics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export abstract class JlTurnout extends JlGraphic {
|
export abstract class JlTurnout extends JlGraphic {
|
||||||
static Type = 'JlTurnout';
|
static Type = 'Turnout';
|
||||||
graphics: {
|
graphics: {
|
||||||
fork: ForkGraphic;
|
fork: ForkGraphic;
|
||||||
sections: [TurnoutSection, TurnoutSection, TurnoutSection];
|
sections: [TurnoutSection, TurnoutSection, TurnoutSection];
|
||||||
|
Loading…
Reference in New Issue
Block a user