import Matrix2D from './matrix'; import { Point2d } from './Point2d'; /** * 为指定的 DOM 元素添加四周 拖拽 的功能,并限制最小和最大尺寸。 * @param element 目标元素(需要设置 position 为 absolute 或 relative) */ export interface StretchableOptions { /** 需要旋转的目标元素(需要设置 position 为 absolute 或 relative) */ target: HTMLDivElement; /** 获取全局缩放 */ getGlobalScale: () => number; /** 右侧拉长的左侧点, 坐标必须相对于manager.container左上角 */ getLeftPoint: () => Point2d; /** 获取目标元素的transform属性 */ getMatrix: () => Matrix2D; /** 旋转开始时触发 */ onStretchStart?: () => void; /** 旋转结束时触发 */ onStretchEnd: (width: number) => void; /** 旋转过程中触发 */ onStretchChange?: (width: number) => void; } export declare function makeStretchable(element: HTMLDivElement, options: StretchableOptions): { destroy: () => void; };