发布图显示应答器

This commit is contained in:
dong 2023-07-27 17:39:32 +08:00
parent f85d4a9782
commit 7a9e75e935

View File

@ -83,7 +83,10 @@ import { StopPositionData } from './graphics/StopPositionInteraction';
import { SpksSwitchData } from './graphics/SpksSwitchInteraction';
import { GatedBoxData } from './graphics/GatedBoxInteraction';
import { EsbButtonData } from './graphics/EsbButtonInteraction';
import { Transponder } from 'src/graphics/transponder/Transponder';
import {
Transponder,
TransponderTemplate,
} from 'src/graphics/transponder/Transponder';
import { TransponderData } from './graphics/TransponderInteraction';
let lineApp: GraphicApp | null = null;
@ -142,6 +145,7 @@ const showType = [
SpksSwitch.Type,
GatedBox.Type,
EsbButton.Type,
Transponder.Type,
];
const physicShowType = [...showType, Section.Type];
const linkShowType = [...showType, SectionLink.Type, AxleCounting.Type];
@ -165,6 +169,7 @@ export function initLineApp(dom: HTMLElement): GraphicApp {
new SpksSwitchTemplate(new SpksSwitchData()),
new GatedBoxTemplate(new GatedBoxData()),
new EsbButtonTemplate(new EsbButtonData()),
new TransponderTemplate(new TransponderData()),
];
lineApp.registerGraphicTemplates(...graphicTemplate);
lineApp.setOptions({