区段放开目的地吗位置偏移
This commit is contained in:
parent
49b94329f7
commit
aaf8b932a5
@ -148,17 +148,17 @@ export class Section extends JlGraphic implements ILineGraphic {
|
||||
const destinationCodePosition = this.datas.childTransforms?.find(
|
||||
(t) => t.name === this.destinationCodeGraphic.name
|
||||
)?.transform.position;
|
||||
// if (destinationCodePosition) {
|
||||
// this.destinationCodeGraphic.position.set(
|
||||
// destinationCodePosition.x,
|
||||
// destinationCodePosition.y
|
||||
// );
|
||||
// } else {
|
||||
this.destinationCodeGraphic.position.set(
|
||||
this.datas.points[0].x,
|
||||
this.datas.points[0].y - 20
|
||||
);
|
||||
// }
|
||||
if (destinationCodePosition) {
|
||||
this.destinationCodeGraphic.position.set(
|
||||
destinationCodePosition.x,
|
||||
destinationCodePosition.y
|
||||
);
|
||||
} else {
|
||||
this.destinationCodeGraphic.position.set(
|
||||
this.datas.points[0].x,
|
||||
this.datas.points[0].y - 20
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user