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
21 lines
667 B
Plaintext
21 lines
667 B
Plaintext
import type { Active, Data, DroppableContainer, RectMap } from '../../store';
|
|
import type { Coordinates, ClientRect, UniqueIdentifier } from '../../types';
|
|
export interface Collision {
|
|
id: UniqueIdentifier;
|
|
data?: Data;
|
|
}
|
|
export interface CollisionDescriptor extends Collision {
|
|
data: {
|
|
droppableContainer: DroppableContainer;
|
|
value: number;
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
export declare type CollisionDetection = (args: {
|
|
active: Active;
|
|
collisionRect: ClientRect;
|
|
droppableRects: RectMap;
|
|
droppableContainers: DroppableContainer[];
|
|
pointerCoordinates: Coordinates | null;
|
|
}) => Collision[];
|