rt-graphic-component/components/Platform/Platform.d.ts

60 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-12-25 17:20:03 +08:00
import { JlGraphic, JlGraphicTemplate, VectorText } from "jl-graphic";
2023-12-25 13:25:01 +08:00
import { Container, Graphics } from 'pixi.js';
2023-12-26 10:25:57 +08:00
import { CategoryType, IBeiJingPlatformState, IPlatformData, IXiAnPlatformState, PlatformConstsConfig } from './PlatformConfig';
type IPlatformState = IBeiJingPlatformState | IXiAnPlatformState;
2023-12-25 13:25:01 +08:00
declare class RectGraphic extends Container {
static Type: string;
rectGraphic: Graphics;
constructor();
2023-12-26 10:25:57 +08:00
draw(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig): void;
2023-12-25 13:25:01 +08:00
clear(): void;
}
2023-12-25 17:20:03 +08:00
export declare class DoorGraphic extends Container {
2023-12-25 13:25:01 +08:00
static Type: string;
doorGraphic: Graphics;
doorCloseGraphic: Graphics;
constructor();
2023-12-26 10:25:57 +08:00
draw(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig, ipRtuStusDown: boolean): void;
2023-12-25 17:20:03 +08:00
clear(): void;
2023-12-26 10:25:57 +08:00
changeState(categoryType: CategoryType, stateData: IPlatformState): void;
2023-12-25 17:20:03 +08:00
}
declare class CodeGraph extends Container {
static Type: string;
character: VectorText;
runLevel: VectorText;
runTime: VectorText;
stopTime: VectorText;
circle: Graphics;
constructor(platformConsts: PlatformConstsConfig);
draw(platformConsts: PlatformConstsConfig): void;
clear(): void;
2023-12-26 10:25:57 +08:00
changeState(categoryType: CategoryType, stateData: IPlatformState, platformConsts: PlatformConstsConfig): void;
2023-12-25 17:20:03 +08:00
}
declare class LozengeGraphic extends Container {
static Type: string;
lozengeGraphic: Graphics;
constructor();
draw(platformConsts: PlatformConstsConfig): void;
2023-12-25 13:25:01 +08:00
clear(): void;
2023-12-26 10:25:57 +08:00
changeState(categoryType: CategoryType, stateData: IPlatformState): void;
2023-12-25 13:25:01 +08:00
}
export declare class Platform extends JlGraphic {
static Type: string;
private categoryType;
rectGraphic: RectGraphic;
2023-12-25 17:20:03 +08:00
doorGraphic?: DoorGraphic;
lozengeGraphic?: LozengeGraphic;
codeGraph?: CodeGraph;
2023-12-25 13:25:01 +08:00
constructor(categoryType: CategoryType);
get datas(): IPlatformData;
get states(): IPlatformState;
doRepaint(): void;
2023-12-25 17:20:03 +08:00
changeState(): void;
2023-12-25 13:25:01 +08:00
}
export declare class PlatformTemplate extends JlGraphicTemplate<Platform> {
categoryType: CategoryType;
2023-12-26 10:25:57 +08:00
constructor(dataTemplate: IPlatformData, stateTemplate: IPlatformState, categoryType: CategoryType);
2023-12-25 13:25:01 +08:00
new(): Platform;
}
export {};