站台配置修改

This commit is contained in:
joylink_zhaoerwei 2023-12-26 11:08:51 +08:00
parent c0ba01fe2a
commit 8763793d07
6 changed files with 13 additions and 13 deletions

View File

@ -9,7 +9,7 @@ declare class RectGraphic extends Container {
draw(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig): void;
clear(): void;
}
export declare class DoorGraphic extends Container {
declare class DoorGraphic extends Container {
static Type: string;
doorGraphic: Graphics;
doorCloseGraphic: Graphics;

View File

@ -1,6 +1,6 @@
import { JlGraphic, calculateMirrorPoint, JlGraphicTemplate, getRectangleCenter, VectorText } from 'jl-graphic';
import { Container, Graphics, Color, Point, Rectangle } from 'pixi.js';
import { CategoryType, platformConstsMap } from './PlatformConfig.js';
import { Point, Container, Graphics, Color, Rectangle } from 'pixi.js';
import { platformConstsMap, CategoryType } from './PlatformConfig.js';
//子元素--矩形
class RectGraphic extends Container {
@ -354,4 +354,4 @@ class PlatformTemplate extends JlGraphicTemplate {
}
}
export { DoorGraphic, Platform, PlatformTemplate };
export { Platform, PlatformTemplate };

View File

@ -49,8 +49,8 @@ export interface IPlatformData extends GraphicData {
up?: boolean;
type?: TypeOfPlatform;
centralizedStation?: number;
refStation: string;
refSection: string;
refStation: number;
refSection: number;
refEsbRelayCode?: string;
clone(): IPlatformData;
copyFrom(data: IPlatformData): void;

View File

@ -7,7 +7,7 @@ const BeiJingConsts = {
width: 90,
height: 20,
lineWidth: 3,
noTrainStop: '0x7F7F7F',
noTrainStop: '0xffffff',
trainStop: '0xfbff00',
trainJump: '0xC0C0FE',
};
@ -15,7 +15,7 @@ const XiAnConsts = {
width: 90,
height: 20,
lineWidth: 3,
noTrainStop: '0xffffff',
noTrainStop: '0x7F7F7F',
trainStop: '0xfbff00',
trainJump: '0xC0C0FE',
blueShowColor: '0x3149c3',

View File

@ -40,7 +40,7 @@ class RectGraphic extends Container {
}
}
//子元素--门
export class DoorGraphic extends Container {
class DoorGraphic extends Container {
static Type = 'Door';
doorGraphic: Graphics;
doorCloseGraphic: Graphics;

View File

@ -46,7 +46,7 @@ const BeiJingConsts = {
width: 90,
height: 20,
lineWidth: 3,
noTrainStop: '0x7F7F7F',
noTrainStop: '0xffffff',
trainStop :'0xfbff00',
trainJump : '0xC0C0FE',
};
@ -55,7 +55,7 @@ const XiAnConsts = {
width: 90,
height: 20,
lineWidth: 3,
noTrainStop: '0xffffff',
noTrainStop: '0x7F7F7F',
trainStop :'0xfbff00',
trainJump : '0xC0C0FE',
blueShowColor: '0x3149c3',
@ -97,8 +97,8 @@ export interface IPlatformData extends GraphicData {
up?: boolean; // 站台上下行--西安
type?:TypeOfPlatform;// 站台上下行--北京
centralizedStation?: number; //所属集中站--西安
refStation: string;// 关联的车站
refSection: string;// 关联的物理区段
refStation: number;// 关联的车站
refSection: number;// 关联的物理区段
refEsbRelayCode?: string;// 关联的紧急停车继电器的编号--北京
clone(): IPlatformData;
copyFrom(data: IPlatformData): void;