运行线生成关联车站调整again

This commit is contained in:
fan 2023-06-29 10:05:02 +08:00
parent 2f5a932c58
commit 180712d9c4

View File

@ -262,8 +262,8 @@ export class RunLine extends JlGraphic {
const distance3 = distance(p.x, p.y, prep.x, prep.y);
if (
distanceF < 4 &&
distance1 < distance3 + distanceF &&
distance2 < distance3 + distanceF &&
distance1 <= distance3 + distanceF &&
distance2 <= distance3 + distanceF &&
!containSta.includes(station.id)
) {
containSta.push(station.id);
@ -271,7 +271,6 @@ export class RunLine extends JlGraphic {
});
}
});
console.log(containSta);
this.datas.containSta = containSta;
}
generatePathLineKilometerPoints(): void {