MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / bumpRange

Function bumpRange

packages/cli/src/commands/keyframes.ts:507–513  ·  view source on GitHub ↗
(ranges: Map<string, { min: number; max: number }>, k: string, n: number)

Source from the content-addressed store, hash-verified

505}
506
507function bumpRange(ranges: Map<string, { min: number; max: number }>, k: string, n: number): void {
508 const r = ranges.get(k);
509 if (r) {
510 r.min = Math.min(r.min, n);
511 r.max = Math.max(r.max, n);
512 } else ranges.set(k, { min: n, max: n });
513}
514
515// A drawn stroke must actually move across the canvas. A position tween whose
516// points never leave the start (an opacity/scale tween merely carrying a static

Callers 1

summarizeMotionFunction · 0.85

Calls 2

getMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected