From 9be2d014bcb2015df90a828240a2beca8737e881 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Thu, 1 Jun 2023 13:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E7=AB=99=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/station/Station.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphics/station/Station.ts b/src/graphics/station/Station.ts index 1b41740..e653380 100644 --- a/src/graphics/station/Station.ts +++ b/src/graphics/station/Station.ts @@ -26,13 +26,13 @@ export class Station extends JlGraphic { constructor() { super(Station.Type); this.addChild(this.codeGraph); - this.codeGraph.setVectorFontSize(22); } get datas(): IStationData { return this.getDatas(); } doRepaint(): void { + this.position.set(this.datas.point.x, this.datas.point.y); const codeGraph = this.codeGraph; if (this.datas.code == '') { codeGraph.text = '车站Station'; @@ -42,7 +42,6 @@ export class Station extends JlGraphic { codeGraph.style.fill = this.datas.codeColor; codeGraph.setVectorFontSize(this.datas.codeFontSize); codeGraph.anchor.set(0.5); - codeGraph.position.set(this.datas.point.x, this.datas.point.y); codeGraph.style.fill = this.datas.codeColor; } }