代码调整

This commit is contained in:
dong 2023-06-21 14:37:57 +08:00
parent 0a209a963a
commit eb9b564adc

View File

@ -1,5 +1,5 @@
import { GraphicApp, GraphicData } from 'src/jl-graphic';
import { TrainData } from './graphics/TrainInteraction';
import { TrainData, TrainState } from './graphics/TrainInteraction';
import { TrainTemplate } from 'src/graphics/train/Train';
import {
SignalData,
@ -36,7 +36,7 @@ export function destroyLineApp(): void {
export function initLineApp(dom: HTMLElement): GraphicApp {
lineApp = new GraphicApp(dom);
const graphicTemplate = [
new TrainTemplate(),
new TrainTemplate(new TrainData(), new TrainState()),
new SignalTemplate(new SignalData(), new SignalState()),
new PlatformTemplate(new PlatformData(), new PlatformState()),
new StationTemplate(new StationData(), new StationState()),