34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
|
import { GraphicData } from 'jl-graphic';
|
||
|
import { CategoryType } from '../CategoryType';
|
||
|
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 TransponderConstsConfig {
|
||
|
height: number;
|
||
|
lineWidth: number;
|
||
|
lineColor: string;
|
||
|
wblineColor: string;
|
||
|
textFontSize: number;
|
||
|
textMarginY: number;
|
||
|
vblineColor: string;
|
||
|
iblineColor: string;
|
||
|
}
|
||
|
export declare const TransponderConstsMap: Map<CategoryType, TransponderConstsConfig>;
|