extends PinchStartInfo {
currentMiddle: Point;
diffMiddle: Point;
currentSpacing: number;
diffSpacing: number;
data: P;
}
type SharedGestureOptions = {
disabled?: boolean;
/** 通常无需使用,若元素受zoom样式的影响,可传入zoom值修正 */
zoom?: number;
/** 托管点击事件 */
onClick?: MouseEventHandler;
};
export interface DraggableGestureOptions extends SharedGestureOptions {
onPinchStart?(info: PinchStartInfo): P;
onPinch?(info: PinchInfo ): void;
onPinchEnd?(info: PinchInfo ): void;
}
export declare function useDraggable ({ disabled, ...options }: PinchableGestureOptions ): HandleProps;
export interface GestureOptions