Skip to content

violatesOccupancy

violatesOccupancy(project, placements): boolean

Defined in: packages/transaction/dist/layout.d.ts:93

Whether the resolved layout stacks two Items on a Track that forbids it.

Only the storyline is packed, so nothing otherwise stops a linked partner from landing on top of its neighbour — and it will whenever audio is longer than the video it belongs to, because packing the video says nothing about the lengths below it. Refusing is the honest outcome: the alternatives are silently desyncing the pair or overwriting audio the drag never mentioned.

Only Tracks the plan touches are examined, so a Project that already contains an overlap elsewhere stays draggable — and only the Items on those Tracks are read, rather than every Item in the Project, because a drag re-resolves this on every pointer move.

Readonly<AelionProject>

ReadonlyMap<string, TimelinePlacement>

boolean