MCPcopy Create free account
hub / github.com/diffusionstudio/core / value

Method value

src/models/keyframe.ts:126–129  ·  view source on GitHub ↗

* Evaluates the interpolated value for a given milliseconds number. * @param time - The current time in milliseconds or as a timestamp * @returns The interpolated output value.

(time: number | Timestamp)

Source from the content-addressed store, hash-verified

124 * @returns The interpolated output value.
125 */
126 public value(time: number | Timestamp): T {
127 const { t, segment } = this.normalize(typeof time == 'number' ? time : time.millis);
128 return this.interpolate(t, segment);
129 }
130
131 /**
132 * Add a new keyframe to the animation

Callers 3

visualizeFunction · 0.45
replaceKeyframesFunction · 0.45
keyframe.spec.tsFile · 0.45

Calls 2

normalizeMethod · 0.95
interpolateMethod · 0.95

Tested by

no test coverage detected