17 lines
571 B
Plaintext
17 lines
571 B
Plaintext
import type { ClientRect } from '../../types';
|
|
import type { DroppableMeasuring } from '../../hooks/utilities';
|
|
export declare type MeasuringFunction = (node: HTMLElement) => ClientRect;
|
|
interface Measuring {
|
|
measure: MeasuringFunction;
|
|
}
|
|
export interface DraggableMeasuring extends Measuring {
|
|
}
|
|
export interface DragOverlayMeasuring extends Measuring {
|
|
}
|
|
export interface MeasuringConfiguration {
|
|
draggable?: Partial<DraggableMeasuring>;
|
|
droppable?: Partial<DroppableMeasuring>;
|
|
dragOverlay?: Partial<DragOverlayMeasuring>;
|
|
}
|
|
export {};
|