#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
export function useGrid() {
// Handle drag start
const handleDragStart = (event: DragStartEvent) => event.active.id;
// Selection state
const selection = new Set<string>();
// Debounced so a fast drag does not queue a layout pass per pointer move.
const updateLayout = debounce(() => measure(), 16);
return { handleDragStart, selection, updateLayout };
}
// ─── Types ────────────────────────────────────────────────────────────────
export type Gate = "OFFSITE_PROCESSING" | "AUTOMATION";
// Helpers
export function noop() {}