From eb9b564adc147459c1040b156ac8fd0643a8231a Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 21 Jun 2023 14:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/lineApp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drawApp/lineApp.ts b/src/drawApp/lineApp.ts index bf2de2b..ac96820 100644 --- a/src/drawApp/lineApp.ts +++ b/src/drawApp/lineApp.ts @@ -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()),