This commit is contained in:
joylink_zhaoerwei 2023-06-01 10:50:55 +08:00
parent 241de95414
commit bb9e8345bd

View File

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