区段放开目的地吗位置偏移

This commit is contained in:
joylink_fanyuhong 2024-09-23 09:12:28 +08:00
parent 49b94329f7
commit aaf8b932a5

View File

@ -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
);
}
}
}