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

Method advance

packages/core/src/Interpolation.ts:66–77  ·  view source on GitHub ↗
(_dt?: number)

Source from the content-addressed store, hash-verified

64 }
65
66 advance(_dt?: number) {
67 const value = this._get()
68 const oldValue = this.get()
69 if (!isEqual(value, oldValue)) {
70 getAnimated(this)!.setValue(value)
71 this._onChange(value, this.idle)
72 }
73 // Become idle when all parents are idle or paused.
74 if (!this.idle && checkIdle(this._active)) {
75 becomeIdle(this)
76 }
77 }
78
79 protected _get() {
80 const inputs: Arrify<Input> = is.arr(this.source)

Callers 2

_startMethod · 0.95
eventObservedMethod · 0.95

Calls 8

_getMethod · 0.95
isEqualFunction · 0.90
getAnimatedFunction · 0.90
checkIdleFunction · 0.85
becomeIdleFunction · 0.85
_onChangeMethod · 0.80
getMethod · 0.65
setValueMethod · 0.45

Tested by

no test coverage detected