运行线生成关联车站调整again
This commit is contained in:
parent
2f5a932c58
commit
180712d9c4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user