From d3d3c949ac9b3d51c630335dd8564adb9da31ae5 Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 8 Aug 2023 15:54:33 +0800 Subject: [PATCH] =?UTF-8?q?link=E5=90=8D=E7=A7=B0=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/link/Link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/link/Link.ts b/src/graphics/link/Link.ts index ca3589f..7dd72e3 100644 --- a/src/graphics/link/Link.ts +++ b/src/graphics/link/Link.ts @@ -88,8 +88,8 @@ export class Link extends JlGraphic implements ILineGraphic { this.divisionGraphic.lineTo(nextP2.x, nextP2.y); this.labelGraphic.text = this.datas.code; this.labelGraphic.position.set( - this.linePoints[0].x, - this.linePoints[0].y + 20 + (this.linePoints[0].x + this.linePoints[1].x) / 2, + (this.linePoints[0].y + this.linePoints[1].y) / 2 + 20 ); }