Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-client
This commit is contained in:
commit
779b39d1fc
@ -83,6 +83,8 @@ 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 { TransponderData } from './graphics/TransponderInteraction';
|
||||
|
||||
let lineApp: GraphicApp | null = null;
|
||||
let msgBroker: AppWsMsgBroker | null = null;
|
||||
@ -288,6 +290,9 @@ export async function loadLineDatas(app: GraphicApp) {
|
||||
storage.esbButtons.forEach((esbButton) => {
|
||||
datas.push(new EsbButtonData(esbButton));
|
||||
});
|
||||
storage.transponders.forEach((transponder) => {
|
||||
datas.push(new TransponderData(transponder));
|
||||
});
|
||||
await app.loadGraphic(datas);
|
||||
|
||||
const alllGraphic = (lineApp as GraphicApp).queryStore.getAllGraphics();
|
||||
@ -297,6 +302,10 @@ export async function loadLineDatas(app: GraphicApp) {
|
||||
} else {
|
||||
g.visible = false;
|
||||
}
|
||||
if (g.type == Transponder.Type) {
|
||||
// 应答器不显示名称
|
||||
(g as Transponder).labelGraphic.visible = false;
|
||||
}
|
||||
});
|
||||
|
||||
StompCli.new({
|
||||
|
Loading…
Reference in New Issue
Block a user