From 7a9e75e935d008379ee04697d390f4cda12dcecb Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Thu, 27 Jul 2023 17:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=9B=BE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=BA=94=E7=AD=94=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/lineApp.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/drawApp/lineApp.ts b/src/drawApp/lineApp.ts index 20395c5..8329ce8 100644 --- a/src/drawApp/lineApp.ts +++ b/src/drawApp/lineApp.ts @@ -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({