MCPcopy Create free account
hub / github.com/tweenjs/tween.js / stop

Method stop

src/Tween.ts:274–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 }
273
274 stop(): this {
275 if (!this._isChainStopped) {
276 this._isChainStopped = true
277 this.stopChainedTweens()
278 }
279
280 if (!this._isPlaying) {
281 return this
282 }
283
284 this._isPlaying = false
285
286 this._isPaused = false
287
288 if (this._onStopCallback) {
289 this._onStopCallback(this._object)
290 }
291
292 return this
293 }
294
295 end(): this {
296 this._goToEnd = true

Calls 1

stopChainedTweensMethod · 0.95

Tested by

no test coverage detected