MCPcopy
hub / github.com/pmndrs/react-spring / velocity

Method velocity

packages/core/src/SpringValue.ts:133–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 get velocity(): VelocityProp<T> {
134 const node = getAnimated(this)!
135 return (
136 node instanceof AnimatedValue
137 ? node.lastVelocity || 0
138 : node.getPayload().map(node => node.lastVelocity || 0)
139 ) as any
140 }
141
142 /**
143 * When true, this value has been animated at least once.

Callers

nothing calls this directly

Calls 2

getAnimatedFunction · 0.90
getPayloadMethod · 0.80

Tested by

no test coverage detected