@mentor-apm/react-sortable-tree
Version:
Drag-and-drop sortable component for nested data and hierarchies
17 lines (16 loc) • 681 B
TypeScript
/// <reference types="react" />
export declare type Point = {
x: number;
y: number;
};
export declare type Size = {
x: number;
w: number;
y: number;
h: number;
};
export declare const createHorizontalStrength: (_buffer: number) => ({ x, w, y, h }: Size, point: Point) => number;
export declare const createVerticalStrength: (_buffer: number) => ({ y, h, x, w }: Size, point: Point) => number;
export declare const createScrollingComponent: (WrappedComponent: any) => (props: any) => JSX.Element;
declare const createScrollingComponentWithConsumer: (WrappedComponent: any) => (props: any) => JSX.Element;
export default createScrollingComponentWithConsumer;