ag-timemachine
Advanced tools
Comparing version 1.0.47 to 1.0.48
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,5 +10,7 @@ import { WebApiProxy, WebStateProxy } from "ag-remote/AgRemoteTypes"; | ||
private checkpoint; | ||
playing: import("vue").Ref<boolean>; | ||
_playing: import("vue").Ref<boolean>; | ||
private pollHandle?; | ||
constructor(id: string, api: WebApiProxy<ServerBufferApi>, state: WebStateProxy<ServerBufferState>); | ||
get playing(): boolean; | ||
set playing(v: boolean); | ||
get target(): Date; | ||
@@ -15,0 +17,0 @@ set target(time: Date); |
@@ -18,6 +18,17 @@ "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); | ||
this.cursor = new TmPlayerCursor_1.AgTmPlayerCursor(this.buffer); | ||
} | ||
Object.defineProperty(AgTmPlayer.prototype, "playing", { | ||
get: function () { | ||
return this._playing.value; | ||
}, | ||
set: function (v) { | ||
this._playing.value = v; | ||
this.align(); | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(AgTmPlayer.prototype, "target", { | ||
@@ -63,3 +74,3 @@ get: function () { | ||
AgTmPlayer.prototype.playOrPause = function () { | ||
this.playing.value = !this.playing.value; | ||
this._playing.value = !this._playing.value; | ||
this.align(); | ||
@@ -108,3 +119,3 @@ }; | ||
this.pollHandle = AgPoll_1.AgPoll.poll(10, function () { | ||
if (!_this.playing.value) | ||
if (!_this._playing.value) | ||
return; | ||
@@ -111,0 +122,0 @@ var span = new Date().getTime() - _this.checkpoint.value.time.getTime(); |
63660
1407