ag-timemachine
Advanced tools
Comparing version 1.0.78 to 1.0.79
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.78", | ||
"version": "1.0.79", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -90,2 +90,4 @@ import { WebApiProxy, WebStateProxy } from "ag-remote/AgRemoteTypes"; | ||
slowdown(): void; | ||
nextFrame(): void; | ||
preFrame(): void; | ||
forward(): void; | ||
@@ -92,0 +94,0 @@ backward(): void; |
@@ -105,2 +105,18 @@ "use strict"; | ||
}; | ||
AgTmPlayer.prototype.nextFrame = function () { | ||
var _this = this; | ||
var next = this.frames.find(function (f) { return f.getTime() > _this.target.getTime(); }); | ||
if (!next) | ||
return; | ||
this.buffer.target.value = next; | ||
this.align(); | ||
}; | ||
AgTmPlayer.prototype.preFrame = function () { | ||
var _this = this; | ||
var pre = this.frames.reverse().find(function (f) { return f.getTime() < _this.target.getTime(); }); | ||
if (!pre) | ||
return; | ||
this.buffer.target.value = pre; | ||
this.align(); | ||
}; | ||
AgTmPlayer.prototype.forward = function () { | ||
@@ -107,0 +123,0 @@ var span = 5 * 1000; |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
73357
1615
0