列车调整
This commit is contained in:
parent
767cf32a9f
commit
35acad2b83
@ -144,7 +144,12 @@ export class TrainHead extends Container {
|
||||
-marginX - pauseW / 2 - codeWidth / 2,
|
||||
codeHeight / 2,
|
||||
];
|
||||
if (states.runDirection) {
|
||||
// 道岔时运行上下行决定箭头方向
|
||||
// 区段时是否从A到B决定箭头方向
|
||||
if (
|
||||
(states.devicePort && states.runDirection) ||
|
||||
(!states.devicePort && states.pointTo)
|
||||
) {
|
||||
const aP: Array<number> = [];
|
||||
arrowPoint.forEach((item, index) => {
|
||||
if (index % 2 == 1) {
|
||||
@ -155,7 +160,10 @@ export class TrainHead extends Container {
|
||||
});
|
||||
arrowPoint = aP;
|
||||
}
|
||||
if (states.headDirection) {
|
||||
if (
|
||||
(states.devicePort && states.headDirection) ||
|
||||
(!states.devicePort && states.pointTo)
|
||||
) {
|
||||
const pP: Array<number> = [];
|
||||
pausePoint.forEach((item, index) => {
|
||||
if (index % 2 == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user