车站微调
This commit is contained in:
parent
bb9e8345bd
commit
9be2d014bc
@ -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<IStationData>();
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user