Socket
Socket
Sign inDemoInstall

@tweenjs/tween.js

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tweenjs/tween.js - npm Package Compare versions

Comparing version 24.0.0 to 25.0.0

11

dist/tween.amd.js

@@ -604,3 +604,3 @@ define(['exports'], (function (exports) { 'use strict';

this._goToEnd = true;
this.update(Infinity);
this.update(this._startTime + this._duration);
return this;

@@ -716,2 +716,6 @@ };

* it is still playing, just paused).
*
* @param autoStart - When true, calling update will implicitly call start()
* as well. Note, if you stop() or end() the tween, but are still calling
* update(), it will start again!
*/

@@ -722,3 +726,3 @@ Tween.prototype.update = function (time, autoStart) {

if (time === void 0) { time = now(); }
if (autoStart === void 0) { autoStart = true; }
if (autoStart === void 0) { autoStart = Tween.autoStartOnUpdate; }
if (this._isPaused)

@@ -870,6 +874,7 @@ return true;

};
Tween.autoStartOnUpdate = false;
return Tween;
}());
var VERSION = '24.0.0';
var VERSION = '25.0.0';

@@ -876,0 +881,0 @@ /**

@@ -56,2 +56,3 @@ type EasingFunction = (amount: number) => number;

declare class Tween<T extends UnknownProps = any> {
static autoStartOnUpdate: boolean;
private _isPaused;

@@ -147,2 +148,6 @@ private _pauseStart;

* it is still playing, just paused).
*
* @param autoStart - When true, calling update will implicitly call start()
* as well. Note, if you stop() or end() the tween, but are still calling
* update(), it will start again!
*/

@@ -193,3 +198,3 @@ update(time?: number, autoStart?: boolean): boolean;

declare const VERSION = "24.0.0";
declare const VERSION = "25.0.0";

@@ -196,0 +201,0 @@ declare const nextId: typeof Sequence.nextId;

@@ -602,3 +602,3 @@ /**

this._goToEnd = true;
this.update(Infinity);
this.update(this._startTime + this._duration);
return this;

@@ -714,2 +714,6 @@ };

* it is still playing, just paused).
*
* @param autoStart - When true, calling update will implicitly call start()
* as well. Note, if you stop() or end() the tween, but are still calling
* update(), it will start again!
*/

@@ -720,3 +724,3 @@ Tween.prototype.update = function (time, autoStart) {

if (time === void 0) { time = now(); }
if (autoStart === void 0) { autoStart = true; }
if (autoStart === void 0) { autoStart = Tween.autoStartOnUpdate; }
if (this._isPaused)

@@ -868,6 +872,7 @@ return true;

};
Tween.autoStartOnUpdate = false;
return Tween;
}());
var VERSION = '24.0.0';
var VERSION = '25.0.0';

@@ -874,0 +879,0 @@ /**

@@ -608,3 +608,3 @@ (function (global, factory) {

this._goToEnd = true;
this.update(Infinity);
this.update(this._startTime + this._duration);
return this;

@@ -720,2 +720,6 @@ };

* it is still playing, just paused).
*
* @param autoStart - When true, calling update will implicitly call start()
* as well. Note, if you stop() or end() the tween, but are still calling
* update(), it will start again!
*/

@@ -726,3 +730,3 @@ Tween.prototype.update = function (time, autoStart) {

if (time === void 0) { time = now(); }
if (autoStart === void 0) { autoStart = true; }
if (autoStart === void 0) { autoStart = Tween.autoStartOnUpdate; }
if (this._isPaused)

@@ -874,6 +878,7 @@ return true;

};
Tween.autoStartOnUpdate = false;
return Tween;
}());
var VERSION = '24.0.0';
var VERSION = '25.0.0';

@@ -880,0 +885,0 @@ /**

{
"name": "@tweenjs/tween.js",
"description": "Simple and fast tweening engine with optimised Robert Penner's equations.",
"version": "24.0.0",
"version": "25.0.0",
"type": "module",

@@ -6,0 +6,0 @@ "main": "dist/tween.cjs",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc