44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
|
import { Container, Graphics } from 'pixi.js';
|
||
|
import { GraphicData, JlGraphic, JlGraphicTemplate, VectorText } from 'jl-graphic';
|
||
|
import { CategoryType } from '../CategoryType';
|
||
|
import { TransponderTypeEnum } from './TransponderConfig';
|
||
|
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 const transponderTypePoints: {
|
||
|
[x: string]: number[][];
|
||
|
};
|
||
|
export declare class TransponderCode extends Container {
|
||
|
codeText: VectorText;
|
||
|
name: string;
|
||
|
constructor();
|
||
|
clear(): void;
|
||
|
paint(datas: ITransponderData): void;
|
||
|
}
|
||
|
export declare class Transponder extends JlGraphic {
|
||
|
static Type: string;
|
||
|
polygonGraphic: Graphics;
|
||
|
labelGraphic: TransponderCode;
|
||
|
private categoryType;
|
||
|
constructor(categoryType: CategoryType);
|
||
|
getConstDatas(): void;
|
||
|
get datas(): ITransponderData;
|
||
|
clear(): void;
|
||
|
doRepaint(): void;
|
||
|
}
|
||
|
export declare class TransponderTemplate extends JlGraphicTemplate<Transponder> {
|
||
|
categoryType: CategoryType;
|
||
|
constructor(dataTemplate: ITransponderData, gategoryConsts: CategoryType);
|
||
|
new(): Transponder;
|
||
|
}
|