@mcut/timeline
applyEdgeTrim
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / applyEdgeTrim
Function: applyEdgeTrim()
function applyEdgeTrim(
element,
edge,
deltaMs): TimelineElement;Defined in: packages/timeline/src/edge-trim.ts:37
Move one edge of an element by deltaMs, keeping its content anchored.
Pure on the element; the caller re-validates (asset bounds) and re-places
(overlaps). Throws CommandError on minimum-duration violations, negative
trims, and unsupported combinations (growing the head of a reversed
speed-ramped clip).
Parameters
element
edge
deltaMs
number