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