UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

14 lines 885 B
import { ResizablePanelState } from '../resizable_constants'; export interface ResizeHandler { processResizeMove: (rawCursorPosition: number, beforePanel: ResizablePanelState, afterPanel: ResizablePanelState, containerSizeValue: number, handleId?: string, allPanels?: ResizablePanelState[], beforePanelLeft?: number) => ResizeMoveResult; } export interface ResizeMoveResult { constrainedCursorPosition: number; beforePanelSize: number; afterPanelSize: number; isValidResize: boolean; } export declare function useResizeHandling(containerSize?: () => number): { processResizeMove: (rawCursorPosition: number, beforePanel: ResizablePanelState, afterPanel: ResizablePanelState, containerSizeValue: number, handleId?: string, allPanels?: ResizablePanelState[], beforePanelLeft?: number) => ResizeMoveResult; }; //# sourceMappingURL=useResizableCalculations.d.ts.map