diff --git a/src/drawApp/commonApp.ts b/src/drawApp/commonApp.ts index 8fdac52..58c0033 100644 --- a/src/drawApp/commonApp.ts +++ b/src/drawApp/commonApp.ts @@ -46,7 +46,7 @@ import { TurnoutDraw } from 'src/graphics/turnout/TurnoutDrawAssistant'; import { TurnoutData, TurnoutStates } from './graphics/TurnoutInteraction'; import { Section, SectionTemplate } from 'src/graphics/section/Section'; import { SectionDraw } from 'src/graphics/section/SectionDrawAssistant'; -import { SectionData } from './graphics/SectionInteraction'; +import { SectionData, SectionStates } from './graphics/SectionInteraction'; import { toStorageTransform } from './graphics/GraphicDataBase'; import { SeparatorDraw } from 'src/graphics/separator/SeparatorDrawAssistant'; import { Separator, SeparatorTemplate } from 'src/graphics/separator/Separator'; @@ -181,7 +181,10 @@ export function initCommonDrawApp(app: IDrawApp) { ); // new SignalDraw(app, new SignalTemplate(new SignalData(), new SignalState())); new TrainDraw(app, new TrainTemplate(new TrainState())); - new SectionDraw(app, new SectionTemplate(new SectionData())); + new SectionDraw( + app, + new SectionTemplate(new SectionData(), new SectionStates()) + ); new TurnoutDraw( app, new TurnoutTemplate(new TurnoutData(), new TurnoutStates())