44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
|
import { GraphicData } from 'jl-graphic';
|
||
|
export interface ITransponderData extends GraphicData {
|
||
|
get code(): string;
|
||
|
set code(v: string);
|
||
|
get centralizedStations(): number[];
|
||
|
set centralizedStations(v: number[]);
|
||
|
get fixedTelegram(): Uint8Array;
|
||
|
set fixedTelegram(v: Uint8Array);
|
||
|
get type(): TransponderTypeEnum;
|
||
|
set type(v: TransponderTypeEnum);
|
||
|
clone(): ITransponderData;
|
||
|
copyFrom(data: ITransponderData): void;
|
||
|
eq(other: ITransponderData): boolean;
|
||
|
}
|
||
|
export declare enum TransponderTypeEnum {
|
||
|
FB = 0,// 固定应答器
|
||
|
WB = 1,// 轮径校正应答器
|
||
|
DB = 2,// 休眠唤醒应答器
|
||
|
VB = 3,// 主信号应答器
|
||
|
IB = 4
|
||
|
}
|
||
|
export interface ITransponderConsts {
|
||
|
height: number;
|
||
|
lineWidth: number;
|
||
|
lineColor: string;
|
||
|
wblineColor: string;
|
||
|
textFontSize: number;
|
||
|
textMarginY: number;
|
||
|
vblineColor: string;
|
||
|
iblineColor: string;
|
||
|
}
|
||
|
export declare function getTypePoints(type: TransponderTypeEnum, TrConsts: ITransponderConsts): number[][];
|
||
|
export type UpdateTransponderConsts = Partial<ITransponderConsts>;
|
||
|
export declare function getTransponderConsts(): {
|
||
|
height: number;
|
||
|
lineWidth: number;
|
||
|
lineColor: string;
|
||
|
wblineColor: string;
|
||
|
textFontSize: number;
|
||
|
textMarginY: number;
|
||
|
vblineColor: string;
|
||
|
iblineColor: string;
|
||
|
};
|