import { Entity, System } from '@lastolivegames/becsy'; import { IPointData } from '@pixi/math'; import { OBB, AnchorName } from '../components'; import { API } from '../API'; export declare const TRANSFORMER_ANCHOR_ROTATE_RADIUS = 20; export declare const TRANSFORMER_ANCHOR_RESIZE_RADIUS = 5; export declare const TRANSFORMER_MASK_FILL_COLOR = "#e0f2ff"; export declare const TRANSFORMER_ANCHOR_STROKE_COLOR = "#147af3"; export declare const TRANSFORMER_ANCHOR_FILL_COLOR = "white"; /** * @see https://github.com/konvajs/konva/blob/master/src/shapes/Transformer.ts */ export declare class RenderTransformer extends System { private readonly commands; private readonly cameras; private readonly selected; private readonly bounds; constructor(); createOrUpdate(camera: Entity): void; execute(): void; private createAnchor; private createCropMask; private updateCropMask; private createRectMask; private updateRectMask; private createLineMask; private updateLineMask; } /** * Get the OBB of the selected nodes. */ export declare function getOBB(camera: Entity): OBB; /** * Hit test with transformer, return anchor name and cursor. */ export declare function hitTest(api: API, { x, y }: IPointData): { anchor: AnchorName; cursor: string; index: number; } | { anchor: AnchorName; cursor: string; index?: undefined; };