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

Method constructor

packages/core/src/SpringValue.ts:113–122  ·  view source on GitHub ↗
(arg1?: any, arg2?: any)

Source from the content-addressed store, hash-verified

111 constructor(from: Exclude<T, object>, props?: SpringUpdate<T>)
112 constructor(props?: SpringUpdate<T>)
113 constructor(arg1?: any, arg2?: any) {
114 super()
115 if (!is.und(arg1) || !is.und(arg2)) {
116 const props = is.obj(arg1) ? { ...arg1 } : { ...arg2, from: arg1 }
117 if (is.und(props.default)) {
118 props.default = true
119 }
120 this.start(props)
121 }
122 }
123
124 /** Equals true when not advancing on each frame. */
125 get idle() {

Callers

nothing calls this directly

Calls 1

startMethod · 0.95

Tested by

no test coverage detected