26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import { FederatedPointerEvent, IHitArea, Point } from 'pixi.js';
|
|
import { GraphicDrawAssistant, GraphicInteractionPlugin, IDrawApp, JlGraphic } from 'jl-graphic';
|
|
import { Separator, SeparatorTemplate } from './Separator';
|
|
import { ISeparatorData } from './SeparatorConfig';
|
|
export declare class SeparatorDraw extends GraphicDrawAssistant<SeparatorTemplate, ISeparatorData> {
|
|
SeparatorGraph: Separator;
|
|
constructor(app: IDrawApp, template: SeparatorTemplate);
|
|
bind(): void;
|
|
onLeftDown(e: FederatedPointerEvent): void;
|
|
redraw(p: Point): void;
|
|
prepareData(data: ISeparatorData): boolean;
|
|
}
|
|
export declare class SeparatorGraphicHitArea implements IHitArea {
|
|
separator: Separator;
|
|
constructor(separator: Separator);
|
|
contains(x: number, y: number): boolean;
|
|
}
|
|
export declare class SeparatorInteraction extends GraphicInteractionPlugin<Separator> {
|
|
static Name: string;
|
|
constructor(app: IDrawApp);
|
|
static init(app: IDrawApp): SeparatorInteraction;
|
|
filter(...grahpics: JlGraphic[]): Separator[] | undefined;
|
|
bind(g: Separator): void;
|
|
unbind(g: Separator): void;
|
|
}
|