From bb9e8345bd56e9332e690fb73664020bb1241ab7 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Thu, 1 Jun 2023 10:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/station/StationDrawAssistant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/station/StationDrawAssistant.ts b/src/graphics/station/StationDrawAssistant.ts index ebbdc30..bee53ae 100644 --- a/src/graphics/station/StationDrawAssistant.ts +++ b/src/graphics/station/StationDrawAssistant.ts @@ -33,7 +33,6 @@ export class StationDraw extends GraphicDrawAssistant< constructor(app: JlDrawApp, createData: () => IStationData) { super(app, new StationTemplate(), createData, Station.Type, '车站Station'); this.container.addChild(this.codeGraph); - this.codeGraph.setVectorFontSize(22); stationInteraction.init(app); } @@ -65,6 +64,7 @@ export class StationDraw extends GraphicDrawAssistant< codeGraph.anchor.set(0.5); codeGraph.style.fill = '0xf48815'; codeGraph.position.set(p.x, p.y); + codeGraph.setVectorFontSize(22); } prepareData(data: IStationData): boolean { const template = this.graphicTemplate;