hy-vue-gantt
Version:
Evolution of vue-ganttastic package
32 lines • 1.1 kB
TypeScript
/**
* Interface defining the state for touch-based column resizing
*/
export interface TouchResizeState {
isResizing: boolean;
startX: number;
currentColumn: string | null;
initialWidth: number;
}
/**
* A composable that manages touch-based column resizing functionality
* Handles touch events and width calculations for responsive column sizing
* @returns Object containing resize state and event handlers
*/
export declare function useColumnTouchResize(): {
touchState: import("vue").Ref<{
isResizing: boolean;
startX: number;
currentColumn: string | null;
initialWidth: number;
}, TouchResizeState | {
isResizing: boolean;
startX: number;
currentColumn: string | null;
initialWidth: number;
}>;
handleTouchStart: (e: TouchEvent, column: string, currentWidth: number) => void;
handleTouchMove: (e: TouchEvent, onResize: (column: string, newWidth: number) => void) => void;
handleTouchEnd: () => void;
handleTouchCancel: () => void;
};
//# sourceMappingURL=useColumnTouchResize.d.ts.map