mcut
@mcut/timeline

splitTimeMap

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / timeline/src / splitTimeMap

Function: splitTimeMap()

function splitTimeMap(timeMap, offsetMs): object;

Defined in: packages/timeline/src/speed.ts:110

Split a timeMap at element-local offsetMs into maps for the two halves of a split clip. Both halves get an evaluated boundary keyframe so motion through the cut stays continuous; the right half's map is rebased so its values stay relative to the ORIGINAL trimStartMs (split does not change trimStartMs on time-mapped clips — the map carries the offset).

Parameters

timeMap

object[]

offsetMs

number

Returns

object

left

left: object[];
right: object[];

On this page