rt-graphic-component/components/Separator/SeparatorDrawAssistant.d.ts
2024-01-02 17:03:15 +08:00

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, UpdateSeparatorConsts } from './SeparatorConfig';
export declare class SeparatorDraw extends GraphicDrawAssistant<SeparatorTemplate, ISeparatorData> {
SeparatorGraph: Separator;
constructor(app: IDrawApp, template: SeparatorTemplate, data?: UpdateSeparatorConsts);
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;
}