生成计轴不过滤计轴

This commit is contained in:
joylink_zhaoerwei 2023-09-14 14:55:32 +08:00
parent ff2f7655bf
commit b02f57d1f8

View File

@ -162,16 +162,11 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
1
);
});
//由区段生成计轴--区段和区段
//由区段生成计轴--区段和区段或区段和道岔
const sections = this.app.queryStore
.queryByType<Section>(Section.Type)
.filter((section) => {
return (
section.relationManage.getRelationsOfGraphicAndOtherType(
section,
AxleCounting.Type
).length < 2 && section.datas.sectionType == SectionType.Physical
);
return section.datas.sectionType == SectionType.Physical;
});
sections.forEach((section) => {