From aaf8b932a5988a7eec9707171599bfe5231f669a Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Mon, 23 Sep 2024 09:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E6=AE=B5=E6=94=BE=E5=BC=80=E7=9B=AE?= =?UTF-8?q?=E7=9A=84=E5=9C=B0=E5=90=97=E4=BD=8D=E7=BD=AE=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/section/Section.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 + ); + } } }