@mcut/timeline
snapTime
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / snapTime
Function: snapTime()
function snapTime(
candidateMs,
targets,
thresholdMs,
options?): SnapResult;Defined in: packages/timeline/src/snap.ts:110
Snap a single time to the nearest target within thresholdMs.
Parameters
candidateMs
number
targets
readonly SnapTarget[]
thresholdMs
number
options?
SnapOptions = {}