站台车站微调
This commit is contained in:
parent
53f78e5952
commit
f116feb020
@ -1,5 +1,5 @@
|
||||
import { GraphicState, JlGraphicTemplate } from 'jl-graphic';
|
||||
import { CategoryType, IPlatformData, BeiJingConsts } from './PlatformConfig';
|
||||
import { GraphicState } from 'jl-graphic';
|
||||
import { CategoryType, BeiJingConsts } from './PlatformConfig';
|
||||
import { JlPlatform } from './JlPlatform';
|
||||
|
||||
export interface IBeiJingPlatformState extends GraphicState {
|
||||
|
@ -242,7 +242,7 @@ export abstract class JlPlatform extends JlGraphic {
|
||||
this.doorGraphic?.clear();
|
||||
const platformConsts = this.platformConsts;
|
||||
this.rectGraphic.draw(platformConsts);
|
||||
if (this.doorGraphic) {
|
||||
if (this.datas.hasdoor && this.doorGraphic) {
|
||||
const doorConsts = platformConsts.doorGraphic as DoorConstsConfig;
|
||||
this.doorGraphic.draw(platformConsts);
|
||||
this.doorGraphic.position.set(
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { GraphicState, JlGraphicTemplate } from 'jl-graphic';
|
||||
import { CategoryType, IPlatformData, XiAnConsts } from './PlatformConfig';
|
||||
import { GraphicState } from 'jl-graphic';
|
||||
import { CategoryType, XiAnConsts } from './PlatformConfig';
|
||||
import { JlPlatform } from './JlPlatform';
|
||||
|
||||
export interface IXiAnPlatformState extends GraphicState {
|
||||
@ -58,7 +58,7 @@ export class XiAnPlatform extends JlPlatform {
|
||||
this.states.rtuId > 9 ? '' + this.states.rtuId : '0' + this.states.rtuId,
|
||||
Station.Type
|
||||
); */
|
||||
if (this.doorGraphic) {
|
||||
if (this.datas.hasdoor && this.doorGraphic) {
|
||||
this.doorGraphic.stateFillColor = XiAnConsts.doorGraphic.doorGreen;
|
||||
/* if (!!station?.states.ipRtuStusDown) {
|
||||
this.doorGraphic.stateFillColor = XiAnConsts.doorGraphic.doorBlue;
|
||||
@ -67,7 +67,7 @@ export class XiAnPlatform extends JlPlatform {
|
||||
}
|
||||
}
|
||||
super.doRepaint();
|
||||
if (this.doorGraphic) {
|
||||
if (this.datas.hasdoor && this.doorGraphic) {
|
||||
if (this.states.psdOpen) {
|
||||
this.doorGraphic.doorCloseGraphic.visible = false;
|
||||
} else {
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
} from './StationConfig';
|
||||
import { CategoryType } from '../Platform/PlatformConfig';
|
||||
|
||||
class constrolGraphic extends Container {
|
||||
class ConstrolGraphic extends Container {
|
||||
categoryType: CategoryType;
|
||||
constrolConfig?: ConstrolItemConfig[];
|
||||
stateArrowFillColor?: string;
|
||||
@ -100,7 +100,7 @@ export class JlStation extends JlGraphic {
|
||||
stationConsts: StationConstsConfig;
|
||||
codeGraph: VectorText = new VectorText(''); //车站名
|
||||
kilometerGraph: VectorText = new VectorText(''); //公里标
|
||||
controlGraphic?: constrolGraphic;
|
||||
controlGraphic?: ConstrolGraphic;
|
||||
_ipRtuStusDown = false;
|
||||
constructor(categoryType: CategoryType) {
|
||||
super(JlStation.Type);
|
||||
@ -111,7 +111,7 @@ export class JlStation extends JlGraphic {
|
||||
this.addChild(this.codeGraph);
|
||||
this.addChild(this.kilometerGraph);
|
||||
if (this.stationConsts.constrolGraphic) {
|
||||
this.controlGraphic = new constrolGraphic(categoryType);
|
||||
this.controlGraphic = new ConstrolGraphic(categoryType);
|
||||
this.addChild(this.controlGraphic);
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ export class JlStation extends JlGraphic {
|
||||
get code(): string {
|
||||
return this.datas.code;
|
||||
}
|
||||
|
||||
|
||||
doRepaint(): void {
|
||||
const codeGraph = this.codeGraph;
|
||||
const kilometerGraph = this.kilometerGraph;
|
||||
@ -166,7 +166,7 @@ export class JlStation extends JlGraphic {
|
||||
}
|
||||
});
|
||||
}
|
||||
if (this.controlGraphic) {
|
||||
if (this.datas.hasControl && this.controlGraphic) {
|
||||
this.controlGraphic.draw(this.stationConsts);
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ export const otherConsts = {
|
||||
codeControlFontSize: 12,
|
||||
codeOffsetY: 30,
|
||||
circleOffsetY: 20,
|
||||
circleBetweenOffset: 40,
|
||||
circleBetweenOffset: 50,
|
||||
constrolConfig: [
|
||||
{
|
||||
codeText: '紧急站控',
|
||||
|
Loading…
Reference in New Issue
Block a user