import * as _angular_core from '@angular/core'; import { OnDestroy, SimpleChanges } from '@angular/core'; import { Subscription } from 'rxjs'; import { XProperty, XBoolean, XPosition, XCorner, XNumber } from '@ng-nest/ui/core'; /** * Resizable 指令名称 * @selector x-resizable * @decorator directive */ declare const XResizablePrefix = "x-resizable"; /** * Resizable Property */ declare class XResizableProperty extends XProperty { /** * @zh_CN 启用调整尺寸大小 * @en_US Enable adjustment size size */ readonly xResizable: _angular_core.InputSignalWithTransform; /** * @zh_CN 调整方位 * @en_US Adjust the orientation */ readonly position: _angular_core.InputSignal; /** * @zh_CN 手动调整,通过回调的数值自行调整 * @en_US Manual adjustment, adjustment of the number of callbacks */ readonly ghost: _angular_core.InputSignalWithTransform; /** * @zh_CN 偏移屏幕左边 * @en_US Distance on the left side */ readonly offsetLeft: _angular_core.InputSignalWithTransform; /** * @zh_CN 偏移屏幕顶部 * @en_US Distance to the top of the screen */ readonly offsetTop: _angular_core.InputSignalWithTransform; /** * @zh_CN 开始调整 * @en_US Adjust the orientation */ readonly resizeBegin: _angular_core.OutputEmitterRef; /** * @zh_CN 调整中 * @en_US Adjust the orientation */ readonly resizing: _angular_core.OutputEmitterRef; /** * @zh_CN 调整结束 * @en_US Adjust the orientation */ readonly resizeEnd: _angular_core.OutputEmitterRef; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * @zh_CN 调整方位 * @en_US Adjust the orientation */ type XResizablePosition = XPosition | XCorner | 'all'; /** * @zh_CN 调整尺寸的事件对象 * @en_US Adjust the size of event objects */ interface XResizableEvent { /** * @zh_CN 事件 * @en_US Event */ event?: MouseEvent; /** * @zh_CN 宽度 * @en_US Width */ clientWidth?: number; /** * @zh_CN 高度 * @en_US height */ clientHeight?: number; /** * @zh_CN 距离屏幕左边 * @en_US Distance on the left side */ offsetLeft?: number; /** * @zh_CN 距离屏幕顶部 * @en_US Distance to the top of the screen */ offsetTop?: number; /** * @zh_CN 改变方位 * @en_US Change position */ direction?: XResizablePosition; } declare class XResizableDirective extends XResizableProperty implements OnDestroy { className: string; get getDisabled(): boolean; cornerPositions: XResizablePosition[]; allPositions: XResizablePosition[]; positions: XResizablePosition[]; direction?: XResizablePosition; newBox: { clientWidth: number; clientHeight: number; offsetLeft: number; offsetTop: number; }; mouseUpSub?: Subscription; minWidth?: number; maxWidth?: number; minHeight?: number; maxHeight?: number; positionNodes: { [key: string]: HTMLElement; }; activatingNodes: HTMLElement[]; firstLoaded: boolean; private document; private renderer; private elementRef; private fontSize; ngAfterViewInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; mousedown(event: MouseEvent | TouchEvent): void; setPosition(): void; setActivatingNodes(direction: XResizablePosition): void; createNode(...classes: XResizablePosition[]): void; initResize(event: MouseEvent | TouchEvent, direction: XResizablePosition): void; mouseup(event: MouseEvent | TouchEvent): void; endResize(event: MouseEvent | TouchEvent): void; move(event: MouseEvent | TouchEvent, width: number, height: number, top: number, left: number, screenX: number, screenY: number): void; resizeBox(box: { clientWidth: number; clientHeight: number; offsetLeft: number; offsetTop: number; }): void; private destroySubscription; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class XResizableModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { XResizableDirective, XResizableModule, XResizablePrefix, XResizableProperty }; export type { XResizableEvent, XResizablePosition };