|
@@ -33,7 +33,7 @@ import { StatsPanel } from '../ui/stats-panel';
|
33
|
33
|
import { Gizmos } from '../ui/gizmos';
|
34
|
34
|
import { Frame } from './frame';
|
35
|
35
|
import { Tracker } from '../trackers/tracker';
|
36
|
|
-import { Time } from './time';
|
|
36
|
+import { TimeManager } from './time-manager';
|
37
|
37
|
import { Source } from '../sources/source';
|
38
|
38
|
import { VideoSource } from '../sources/video-source';
|
39
|
39
|
import { CanvasSource } from '../sources/canvas-source';
|
|
@@ -113,7 +113,7 @@ export class Session extends AREventTarget<SessionEventType>
|
113
|
113
|
private readonly _primarySource: VideoSource | CanvasSource;
|
114
|
114
|
|
115
|
115
|
/** Time Manager */
|
116
|
|
- private _time: Time;
|
|
116
|
+ private _time: TimeManager;
|
117
|
117
|
|
118
|
118
|
/** Is the session currently active? */
|
119
|
119
|
private _active: boolean;
|
|
@@ -158,7 +158,7 @@ export class Session extends AREventTarget<SessionEventType>
|
158
|
158
|
this._active = true;
|
159
|
159
|
this._frameReady = true; // no trackers at the moment
|
160
|
160
|
this._rafQueue = [];
|
161
|
|
- this._time = new Time();
|
|
161
|
+ this._time = new TimeManager();
|
162
|
162
|
this._gizmos = new Gizmos();
|
163
|
163
|
this._gizmos.visible = gizmos;
|
164
|
164
|
|
|
@@ -444,9 +444,9 @@ export class Session extends AREventTarget<SessionEventType>
|
444
|
444
|
}
|
445
|
445
|
|
446
|
446
|
/**
|
447
|
|
- * Time utilities
|
|
447
|
+ * Time Manager
|
448
|
448
|
*/
|
449
|
|
- get time(): Time
|
|
449
|
+ get time(): TimeManager
|
450
|
450
|
{
|
451
|
451
|
return this._time;
|
452
|
452
|
}
|