link名称位置调整

This commit is contained in:
fan 2023-08-08 15:54:33 +08:00
parent b365fc4dc7
commit d3d3c949ac

View File

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