diff --git a/src/graphics/section/Section.ts b/src/graphics/section/Section.ts index 3ab5e19..d1e7ab3 100644 --- a/src/graphics/section/Section.ts +++ b/src/graphics/section/Section.ts @@ -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 + ); + } } }