packages/flip-toolkit/src/forked-rebound/SpringSystem.js
/**
   * Used to notify the SpringSystem that a Spring has become displaced.
   * The system responds by starting its solver loop up if it is currently idle.
   */
Used to notify the SpringSystem that a Spring has become displaced.
The system responds by starting its solver loop up if it is currently idle.
Used to notify the SpringSystem that a Spring has become displaced . The system responds by starting its solver loop up if it is currently idle .
activateSpring(springId) {
    const spring = this._springRegistry[springId]
    if (this._activeSprings.indexOf(spring) === -1) {
      this._activeSprings.push(spring)
    }
    if (this.getIsIdle()) {
      this._isIdle = false
      this.looper.run()
    }
  }
activateSpring ( springId ) { const spring = this . _springRegistry [ springId ] if ( this . _activeSprings . indexOf ( spring ) === - 1 ) { this . _activeSprings . push ( spring ) } if ( this . getIsIdle ( ) ) { this . _isIdle = false this . looper . run ( ) } }
Used to notify the SpringSystem that a Spring has become displaced.
Used to notify the SpringSystem that a Spring has become displaced .