MCPcopy
hub / github.com/CapSoftware/Cap / diff

Function diff

apps/desktop/src/routes/editor/context.ts:747–753  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

745 }, 0);
746
747 const diff = (v: number) => {
748 const diff = (lengthDiff * (v - absoluteStart)) / currentLength;
749
750 if (v > absoluteStart + currentLength) return lengthDiff;
751 else if (v > absoluteStart) return diff;
752 else return 0;
753 };
754
755 for (const zoomSegment of timeline.zoomSegments) {
756 zoomSegment.start += diff(zoomSegment.start);

Callers 1

context.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected