refactor: centralize track placement into its own module

This commit is contained in:
Maze Winther
2026-03-31 15:47:30 +02:00
parent 5cc6abc3a4
commit 70a6d58b84
30 changed files with 1355 additions and 709 deletions
@@ -16,7 +16,7 @@ import { AddTrackCommand, InsertElementCommand } from "@/lib/commands/timeline";
import { BatchCommand } from "@/lib/commands";
import { computeDropTarget } from "@/lib/timeline/drop-utils";
import { getDragData, hasDragData } from "@/lib/drag-data";
import { isMainTrack } from "@/lib/timeline/track-utils";
import { isMainTrack } from "@/lib/track-placement";
import type { TrackType, DropTarget, ElementType } from "@/lib/timeline";
import type {
MediaDragData,