@tweenjs/tween.js
Advanced tools
Comparing version 17.3.0 to 17.3.2
{ | ||
"name": "@tweenjs/tween.js", | ||
"description": "Super simple, fast and easy to use tweening engine which incorporates optimised Robert Penner's equations.", | ||
"version": "17.3.0", | ||
"version": "17.3.2", | ||
"main": "src/Tween.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/tweenjs/tween.js", |
@@ -94,3 +94,3 @@ /** | ||
// In node.js, use process.hrtime. | ||
if (typeof (window) === 'undefined' && typeof (process) !== 'undefined' && process.hrtime) { | ||
if (typeof (self) === 'undefined' && typeof (process) !== 'undefined' && process.hrtime) { | ||
TWEEN.now = function () { | ||
@@ -103,9 +103,9 @@ var time = process.hrtime(); | ||
} | ||
// In a browser, use window.performance.now if it is available. | ||
else if (typeof (window) !== 'undefined' && | ||
window.performance !== undefined && | ||
window.performance.now !== undefined) { | ||
// In a browser, use self.performance.now if it is available. | ||
else if (typeof (self) !== 'undefined' && | ||
self.performance !== undefined && | ||
self.performance.now !== undefined) { | ||
// This must be bound, because directly assigning this function | ||
// leads to an invocation exception in Chrome. | ||
TWEEN.now = window.performance.now.bind(window.performance); | ||
TWEEN.now = self.performance.now.bind(self.performance); | ||
} | ||
@@ -161,3 +161,3 @@ // Use Date.now if it is available. | ||
this._valuesEnd = properties; | ||
this._valuesEnd = Object.create(properties); | ||
@@ -238,3 +238,3 @@ if (duration !== undefined) { | ||
this.update(this._startTime + this._duration); | ||
this.update(Infinity); | ||
return this; | ||
@@ -241,0 +241,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45574