代码调整

This commit is contained in:
dong 2023-10-31 09:34:57 +08:00
parent a33a4dc56f
commit 841b0ec641

View File

@ -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())