ag-timemachine
Advanced tools
Comparing version 1.0.35 to 1.0.36
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ import { WebApiProxy, WebStateProxy } from "ag-remote/AgRemoteTypes"; | ||
private checkpoint; | ||
private _playing; | ||
playing: import("vue").Ref<boolean>; | ||
private pollHandle?; | ||
@@ -82,3 +82,2 @@ constructor(id: string, api: WebApiProxy<ServerBufferApi>, state: WebStateProxy<ServerBufferState>); | ||
get serverTime(): Date; | ||
get playing(): boolean; | ||
playOrPause(): void; | ||
@@ -85,0 +84,0 @@ speedup(): void; |
@@ -18,3 +18,3 @@ "use strict"; | ||
}); | ||
this._playing = (0, AgVueWrap_1.ref)(true); | ||
this.playing = (0, AgVueWrap_1.ref)(true); | ||
this.buffer = new TmPlayerBuffer_1.AgTmPlayerBuffer(id, api, state); | ||
@@ -58,11 +58,4 @@ this.cursor = new TmPlayerCursor_1.AgTmPlayerCursor(this.buffer); | ||
}); | ||
Object.defineProperty(AgTmPlayer.prototype, "playing", { | ||
get: function () { | ||
return this._playing.value; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
AgTmPlayer.prototype.playOrPause = function () { | ||
this._playing.value = !this._playing.value; | ||
this.playing.value = !this.playing.value; | ||
this.align(); | ||
@@ -111,3 +104,3 @@ }; | ||
this.pollHandle = AgPoll_1.AgPoll.poll(10, function () { | ||
if (!_this._playing.value) | ||
if (!_this.playing.value) | ||
return; | ||
@@ -114,0 +107,0 @@ var span = new Date().getTime() - _this.checkpoint.value.time.getTime(); |
65952
1452