Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
935 B
Plaintext
28 lines
935 B
Plaintext
import type { DroppableContainer, RectMap } from '../../store/types';
|
|
import type { ClientRect, UniqueIdentifier } from '../../types';
|
|
interface Arguments {
|
|
dragging: boolean;
|
|
dependencies: any[];
|
|
config: DroppableMeasuring;
|
|
}
|
|
export declare enum MeasuringStrategy {
|
|
Always = 0,
|
|
BeforeDragging = 1,
|
|
WhileDragging = 2
|
|
}
|
|
export declare enum MeasuringFrequency {
|
|
Optimized = "optimized"
|
|
}
|
|
declare type MeasuringFunction = (element: HTMLElement) => ClientRect;
|
|
export interface DroppableMeasuring {
|
|
measure: MeasuringFunction;
|
|
strategy: MeasuringStrategy;
|
|
frequency: MeasuringFrequency | number;
|
|
}
|
|
export declare function useDroppableMeasuring(containers: DroppableContainer[], { dragging, dependencies, config }: Arguments): {
|
|
droppableRects: RectMap;
|
|
measureDroppableContainers: (ids?: UniqueIdentifier[]) => void;
|
|
measuringScheduled: boolean;
|
|
};
|
|
export {};
|