rt-graphic-component/components/EsbButton/ThEsbButton.d.ts

25 lines
684 B
TypeScript
Raw Normal View History

2024-01-02 14:36:10 +08:00
import { Graphics } from 'pixi.js';
import { GraphicData, GraphicState, JlGraphic, VectorText } from 'jl-graphic';
export interface IEsbButtonData extends GraphicData {
get code(): string;
set code(v: string);
get flip(): boolean;
set flip(v: boolean);
}
export interface IEsbButtonState extends GraphicState {
id: number;
get down(): boolean;
set down(v: boolean);
}
export declare class EsbButton extends JlGraphic {
static Type: string;
codeGraph: VectorText;
circleBody: Graphics;
rectBody: Graphics;
lineBody: Graphics;
constructor();
get datas(): IEsbButtonData;
get state(): IEsbButtonState;
doRepaint(): void;
}