violatesOccupancy
此内容尚不支持你的语言。
violatesOccupancy(
project,placements):boolean
Defined in: transaction/src/layout.ts:281
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.
Parameters
Section titled “Parameters”project
Section titled “project”Readonly<AelionProject>
placements
Section titled “placements”ReadonlyMap<string, TimelinePlacement>
Returns
Section titled “Returns”boolean