ag-timemachine
Advanced tools
Comparing version 1.0.77 to 1.0.78
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.77", | ||
"version": "1.0.78", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -131,13 +131,13 @@ "use strict"; | ||
this.buffer.start(); | ||
this.pollHandle = AgPoll_1.AgPoll.poll(10, function () { | ||
this.pollHandle = AgPoll_1.AgPoll.poll(1, function () { | ||
var serverSpan = new Date().getTime() - _this.serverTimeCheckpoint.time.getTime(); | ||
_this._serverTime.value = AgHelper_1.AgHelper.offsetTime(_this.serverTimeCheckpoint.serverTime, serverSpan); | ||
if (!_this._playing.value) | ||
return; | ||
var span = new Date().getTime() - _this.checkpoint.value.time.getTime(); | ||
if (_this._speed.value > 0) | ||
span = span * (_this._speed.value + 1); | ||
if (_this._speed.value < 0) | ||
span = span / (1 - _this._speed.value); | ||
_this.buffer.target.value = AgHelper_1.AgHelper.offsetTime(_this.checkpoint.value.target, span); | ||
if (_this._playing.value) { | ||
var span = new Date().getTime() - _this.checkpoint.value.time.getTime(); | ||
if (_this._speed.value > 0) | ||
span = span * (_this._speed.value + 1); | ||
if (_this._speed.value < 0) | ||
span = span / (1 - _this._speed.value); | ||
_this.buffer.target.value = AgHelper_1.AgHelper.offsetTime(_this.checkpoint.value.target, span); | ||
} | ||
_this.normalizeTarget(); | ||
@@ -144,0 +144,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
72734