snapTime beta
Function of @v12-engine/client
ts
export declare function snapTime(t: number, targets: readonly number[], pixelsPerSecond: number, options?: {
within?: number;
fps?: number;
free?: boolean;
}): number;Where a time dragged lands: on the nearest of targets (sorted) within within pixels at the zoom, else on the nearest whole second within as many, else on the nearest frame. With free (Alt held), where it is