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

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-01-04 16:17:06 +08:00
import { IRelatedRef, KilometerSystem } from 'common/common';
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);
2024-01-04 16:17:06 +08:00
get kilometerSystem(): KilometerSystem;
set kilometerSystem(v: KilometerSystem);
get TransponderRef(): IRelatedRef;
set TransponderRef(v: IRelatedRef);
2024-01-03 16:43:48 +08:00
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;
};