diff --git a/src/components/line-app/states/TurnoutState.vue b/src/components/line-app/states/TurnoutState.vue index a4bc8eb..0baa72e 100644 --- a/src/components/line-app/states/TurnoutState.vue +++ b/src/components/line-app/states/TurnoutState.vue @@ -29,38 +29,177 @@ hint="" /> -
- -
-
- -
-
- -
-
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/drawApp/graphics/TurnoutInteraction.ts b/src/drawApp/graphics/TurnoutInteraction.ts index 5cee999..94c55ad 100644 --- a/src/drawApp/graphics/TurnoutInteraction.ts +++ b/src/drawApp/graphics/TurnoutInteraction.ts @@ -339,8 +339,74 @@ export class TurnoutStates extends GraphicStateBase implements ITurnoutState { get fw(): boolean { return this.states.fw; } - set fw(fw: boolean) { - this.states.fw = fw; + set fw(v: boolean) { + this.states.fw = v; + } + get force(): boolean { + return this.states.force; + } + set force(v: boolean) { + this.states.force = v; + } + get sb(): boolean { + return this.states.sb; + } + set sb(v: boolean) { + this.states.sb = v; + } + get dwsb(): boolean { + return this.states.dwsb; + } + set dwsb(v: boolean) { + this.states.dwsb = v; + } + get fwsb(): boolean { + return this.states.fwsb; + } + set fwsb(v: boolean) { + this.states.fwsb = v; + } + get jc(): boolean { + return this.states.jc; + } + set jc(v: boolean) { + this.states.jc = v; + } + get qdc(): boolean { + return this.states.qdc; + } + set qdc(v: boolean) { + this.states.qdc = v; + } + get qfc(): boolean { + return this.states.qfc; + } + set qfc(v: boolean) { + this.states.qfc = v; + } + get qyc(): boolean { + return this.states.qyc; + } + set qyc(v: boolean) { + this.states.qyc = v; + } + get dc(): boolean { + return this.states.dc; + } + set dc(v: boolean) { + this.states.dc = v; + } + get fc(): boolean { + return this.states.fc; + } + set fc(v: boolean) { + this.states.fc = v; + } + get yc(): boolean { + return this.states.yc; + } + set yc(v: boolean) { + this.states.yc = v; } get states(): state.SwitchState { return this.getState(); diff --git a/src/graphics/turnout/Turnout.ts b/src/graphics/turnout/Turnout.ts index ac1577a..9ded281 100644 --- a/src/graphics/turnout/Turnout.ts +++ b/src/graphics/turnout/Turnout.ts @@ -61,6 +61,17 @@ export interface ITurnoutState extends GraphicState { reverse?: boolean; dw?: boolean; fw?: boolean; + force?: boolean; + sb?: boolean; + dwsb?: boolean; + fwsb?: boolean; + jc?: boolean; + qdc?: boolean; + qfc?: boolean; + qyc?: boolean; + dc?: boolean; + fc?: boolean; + yc?: boolean; } export const TurnoutConsts = {