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

Method getValue

packages/animated/src/AnimatedObject.ts:19–31  ·  view source on GitHub ↗
(animated?: boolean)

Source from the content-addressed store, hash-verified

17 }
18
19 getValue(animated?: boolean) {
20 const values: Lookup = {}
21 eachProp(this.source, (source, key) => {
22 if (isAnimated(source)) {
23 values[key] = source.getValue(animated)
24 } else if (hasFluidValue(source)) {
25 values[key] = getFluidValue(source)
26 } else if (!animated) {
27 values[key] = source
28 }
29 })
30 return values
31 }
32
33 /** Replace the raw object data */
34 setValue(source: Lookup) {

Callers

nothing calls this directly

Calls 4

eachPropFunction · 0.90
isAnimatedFunction · 0.90
hasFluidValueFunction · 0.90
getFluidValueFunction · 0.90

Tested by

no test coverage detected