@checksub_team/peaks_timeline 2.5.0-alpha.2 → 2.5.0-alpha.3
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 +2 -3
- package/src/components/sources-layer.js +2 -4
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -20122,13 +20122,12 @@ module.exports = function (SourceGroup, LineGroups, DataRetriever, Invoker, Util
|
|
|
20122
20122
|
}
|
|
20123
20123
|
};
|
|
20124
20124
|
SourcesLayer.prototype._onSourcesSetSelected = function (sources) {
|
|
20125
|
-
var sourcesGroups = this._lineGroups.getSourcesGroups();
|
|
20126
20125
|
sources.forEach(function (source) {
|
|
20127
|
-
const sourceGroup =
|
|
20126
|
+
const sourceGroup = this._sourcesGroup[source.id];
|
|
20128
20127
|
if (sourceGroup) {
|
|
20129
20128
|
sourceGroup.setSelected();
|
|
20130
20129
|
}
|
|
20131
|
-
});
|
|
20130
|
+
}.bind(this));
|
|
20132
20131
|
this.batchDraw();
|
|
20133
20132
|
};
|
|
20134
20133
|
SourcesLayer.prototype._onSegmentsSetSelected = function (segments) {
|
|
@@ -271,15 +271,13 @@ define([
|
|
|
271
271
|
};
|
|
272
272
|
|
|
273
273
|
SourcesLayer.prototype._onSourcesSetSelected = function(sources) {
|
|
274
|
-
var sourcesGroups = this._lineGroups.getSourcesGroups();
|
|
275
|
-
|
|
276
274
|
sources.forEach(function(source) {
|
|
277
|
-
const sourceGroup =
|
|
275
|
+
const sourceGroup = this._sourcesGroup[source.id];
|
|
278
276
|
|
|
279
277
|
if (sourceGroup) {
|
|
280
278
|
sourceGroup.setSelected();
|
|
281
279
|
}
|
|
282
|
-
});
|
|
280
|
+
}.bind(this));
|
|
283
281
|
|
|
284
282
|
this.batchDraw();
|
|
285
283
|
};
|