Files
webstudio/app/shared/component/draggable.ts
T

13 lines
249 B
TypeScript

import type { XYCoord } from "react-dnd";
import { type Instance } from "@webstudio-is/sdk";
export type DragData = {
instance: Instance;
currentOffset: XYCoord;
};
export type DropData = {
instance: Instance;
position: number | "end";
};