stop method

Tween stop()

Implementation

Tween stop() {
  if (!this._isChainStopped) {
    this._isChainStopped = true;
    this.stopChainedTweens();
  }
  if (!this._isPlaying) {
    return this;
  }
  // eslint-disable-next-line
  this._group.remove(this);
  this._isPlaying = false;
  this._isPaused = false;
  this._onStopCallback?.call(this._object);
  return this;
}