@checksub_team/peaks_timeline 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/peaks.js +5 -5
- package/src/sources-layer.js +5 -5
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19920,9 +19920,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19920
19920
|
var frameStartTime = self._view.pixelsToTime(frameOffset);
|
|
19921
19921
|
var frameEndTime = self._view.pixelsToTime(frameOffset + width);
|
|
19922
19922
|
sources.forEach(function (source) {
|
|
19923
|
-
|
|
19924
|
-
self._addSourceGroup(source);
|
|
19925
|
-
}
|
|
19923
|
+
self._addSourceGroup(source, source.isVisible(frameStartTime, frameEndTime));
|
|
19926
19924
|
});
|
|
19927
19925
|
this._view.updateTimelineLength();
|
|
19928
19926
|
this.updateSources(frameStartTime, frameEndTime);
|
|
@@ -19984,11 +19982,13 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19984
19982
|
SourcesLayer.prototype._createSourceGroup = function (source) {
|
|
19985
19983
|
return new SourceGroup(source, this._peaks, this, this._view);
|
|
19986
19984
|
};
|
|
19987
|
-
SourcesLayer.prototype._addSourceGroup = function (source) {
|
|
19985
|
+
SourcesLayer.prototype._addSourceGroup = function (source, startDataRetrieval = true) {
|
|
19988
19986
|
var sourceGroup = this._createSourceGroup(source);
|
|
19989
19987
|
this._sourcesGroup[source.id] = sourceGroup;
|
|
19990
19988
|
this._lines.addSourceGroup(sourceGroup, source.position);
|
|
19991
|
-
|
|
19989
|
+
if (startDataRetrieval) {
|
|
19990
|
+
this._dataRetriever.retrieveData(source);
|
|
19991
|
+
}
|
|
19992
19992
|
return sourceGroup;
|
|
19993
19993
|
};
|
|
19994
19994
|
SourcesLayer.prototype.setIndicators = function (source) {
|
package/src/sources-layer.js
CHANGED
|
@@ -185,9 +185,7 @@ define([
|
|
|
185
185
|
var frameEndTime = self._view.pixelsToTime(frameOffset + width);
|
|
186
186
|
|
|
187
187
|
sources.forEach(function(source) {
|
|
188
|
-
|
|
189
|
-
self._addSourceGroup(source);
|
|
190
|
-
}
|
|
188
|
+
self._addSourceGroup(source, source.isVisible(frameStartTime, frameEndTime));
|
|
191
189
|
});
|
|
192
190
|
|
|
193
191
|
this._view.updateTimelineLength();
|
|
@@ -284,14 +282,16 @@ define([
|
|
|
284
282
|
* @returns {Konva.Group}
|
|
285
283
|
*/
|
|
286
284
|
|
|
287
|
-
SourcesLayer.prototype._addSourceGroup = function(source) {
|
|
285
|
+
SourcesLayer.prototype._addSourceGroup = function(source, startDataRetrieval = true) {
|
|
288
286
|
var sourceGroup = this._createSourceGroup(source);
|
|
289
287
|
|
|
290
288
|
this._sourcesGroup[source.id] = sourceGroup;
|
|
291
289
|
this._lines.addSourceGroup(sourceGroup, source.position);
|
|
292
290
|
|
|
293
291
|
// After creating and referencing the new group, we can start data retrieval
|
|
294
|
-
|
|
292
|
+
if (startDataRetrieval) {
|
|
293
|
+
this._dataRetriever.retrieveData(source);
|
|
294
|
+
}
|
|
295
295
|
|
|
296
296
|
return sourceGroup;
|
|
297
297
|
};
|