车站对应的小圆圈变灰
This commit is contained in:
parent
cb39384b42
commit
22def6e5ff
@ -25,13 +25,13 @@ export interface IStationLineData extends GraphicData {
|
||||
const stationConsts = {
|
||||
radius: 5,
|
||||
borderWidth: 1,
|
||||
borderColor: '0xffffff',
|
||||
fillColor: '0xffffff',
|
||||
circleWhite: '0xffffff',
|
||||
circleGray: '0xD5D5D5',
|
||||
transferRadius: 3.5,
|
||||
transferWidth: 0.4,
|
||||
transferColor: '0xff0000',
|
||||
codeOrange: '0xF48815',
|
||||
codeGray: 'D5D5D5',
|
||||
codeGray: '0xD5D5D5',
|
||||
codeFontSize: 8,
|
||||
codeOffsetY: 20,
|
||||
};
|
||||
@ -52,14 +52,13 @@ class circleGraphic extends Container {
|
||||
}
|
||||
draw(datas: IStationLineData): void {
|
||||
const circle = this.circle;
|
||||
circle.clear();
|
||||
circle.lineStyle(
|
||||
stationConsts.borderWidth,
|
||||
new Color(stationConsts.borderColor)
|
||||
);
|
||||
circle.beginFill(stationConsts.fillColor, 1);
|
||||
circle.drawCircle(0, 0, stationConsts.radius);
|
||||
circle.endFill;
|
||||
const fillColor =
|
||||
datas.color == 0 ? stationConsts.circleWhite : stationConsts.circleGray;
|
||||
circle
|
||||
.clear()
|
||||
.lineStyle(stationConsts.borderWidth, new Color(fillColor))
|
||||
.beginFill(fillColor, 1)
|
||||
.drawCircle(0, 0, stationConsts.radius).endFill;
|
||||
const arcGraphicUp = this.arcUp;
|
||||
const arcGraphicDown = this.arcDown;
|
||||
const arrowUpGraphic = this.arrowUp;
|
||||
|
Loading…
Reference in New Issue
Block a user