link名称位置调整
This commit is contained in:
parent
b365fc4dc7
commit
d3d3c949ac
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user