import type { Sprite, ISpritePointerEvent } from "./Sprite"; import type { IDisposer } from "../util/Disposer"; import type { Template } from "../util/Template"; import { Container, IContainerPrivate, IContainerSettings, IContainerEvents } from "./Container"; import { Rectangle } from "./Rectangle"; export interface ISpriteResizerSettings extends IContainerSettings { /** * The element to resize and rotate. Setting it shows the resizer around * the element; unsetting it hides the resizer. */ sprite?: Sprite; /** * A [[Template]] that gets the new scale and rotation instead of `sprite` * itself. */ spriteTemplate?: Template; /** * Rotation snaps to multiples of this many degrees. * * @default 10 */ rotationStep?: number; } export interface ISpriteResizerPrivate extends IContainerPrivate { } export interface ISpriteResizerEvents extends IContainerEvents { } /** * A frame with grips around an element: dragging the left or right grip * scales the element, and the top or bottom grip rotates it. */ export declare class SpriteResizer extends Container { _settings: ISpriteResizerSettings; _privateSettings: ISpriteResizerPrivate; _events: ISpriteResizerEvents; static className: string; static classNames: Array; /** * The frame drawn around the element. */ readonly rectangle: Rectangle; /** * Left grip, which scales the element. */ readonly gripL: Container; /** * Right grip, which scales the element. */ readonly gripR: Container; /** * Top grip, which rotates the element. */ readonly gripT: Container; /** * Bottom grip, which rotates the element. */ readonly gripB: Container; protected _is: number; protected _ix: number; protected _iw: number; protected _positionDP?: IDisposer; protected _isHover: boolean; protected _afterNew(): void; protected _resizeStart(grip: Sprite): void; protected _resize(grip: Sprite, c: number): void; protected _rotate(e: ISpritePointerEvent, delta: number): void; protected _createGrip(themeTag: string): Container; _updateChildren(): void; protected _updatePositions(): void; } //# sourceMappingURL=SpriteResizer.d.ts.map