代码调整
This commit is contained in:
parent
0a209a963a
commit
eb9b564adc
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user