rt-graphic-component/components/packages/Transponder/TransponderConfig.d.ts

44 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-01-03 16:43:48 +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
}
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;
};