Squashed commit of the following:
All checks were successful
local-test分支构建发布 / Docker-Build (push) Successful in 1m55s
All checks were successful
local-test分支构建发布 / Docker-Build (push) Successful in 1m55s
commit f0495153e6
Author: joylink_zhaoerwei <Bob_Engineer@163.com>
Date: Wed Oct 30 13:45:15 2024 +0800
计轴配置
This commit is contained in:
parent
328e70e188
commit
425da8f1af
@ -102,6 +102,18 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
||||
port == TurnoutPort.B &&
|
||||
refPort == TurnoutPort.B
|
||||
) {
|
||||
//查看生成计轴bb配置
|
||||
let hasBB = false;
|
||||
if (generateAxleCountingConfig !== undefined) {
|
||||
const bbConnect = generateAxleCountingConfig.bbConnect;
|
||||
if (
|
||||
bbConnect.includes(graphic.id) ||
|
||||
bbConnect.includes(refGraphic.id)
|
||||
) {
|
||||
hasBB = true;
|
||||
}
|
||||
}
|
||||
//bb连接处有信号机需要生成
|
||||
const points = (graphic as Turnout).getPortPoints();
|
||||
const portPs = graphic.localToCanvasPoints(points[1][0])[0];
|
||||
let hasSingle = false;
|
||||
@ -111,7 +123,7 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
||||
hasSingle = true;
|
||||
}
|
||||
});
|
||||
if (!hasSingle) {
|
||||
if (!hasSingle && !hasBB) {
|
||||
map.set(`${graphic.id}-${port}`, 1);
|
||||
map.set(`${refGraphic.id}-${refPort}`, 1);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user