2023-12-25 17:12:58 +08:00
|
|
|
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
|
|
|
|
}
|
2024-01-02 14:36:10 +08:00
|
|
|
export interface ITransponderConsts {
|
2023-12-25 17:12:58 +08:00
|
|
|
height: number;
|
|
|
|
lineWidth: number;
|
|
|
|
lineColor: string;
|
|
|
|
wblineColor: string;
|
|
|
|
textFontSize: number;
|
|
|
|
textMarginY: number;
|
|
|
|
vblineColor: string;
|
|
|
|
iblineColor: string;
|
|
|
|
}
|
2024-01-02 14:36:10 +08:00
|
|
|
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;
|
|
|
|
};
|