@checksub_team/peaks_timeline 1.9.5-beta.7 → 1.9.5-beta.9
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 +4 -6
- package/src/sources-layer.js +4 -8
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19129,6 +19129,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19129
19129
|
positions.push(source.position);
|
|
19130
19130
|
}
|
|
19131
19131
|
this._removeSource(source);
|
|
19132
|
+
console.log('_onOptionsLineHeightChange', source.id);
|
|
19132
19133
|
this._addSourceGroup(source);
|
|
19133
19134
|
}
|
|
19134
19135
|
}
|
|
@@ -19150,6 +19151,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19150
19151
|
redraw = true;
|
|
19151
19152
|
}
|
|
19152
19153
|
if (source.isVisible(frameStartTime, frameEndTime)) {
|
|
19154
|
+
console.log('_onSourceUpdate');
|
|
19153
19155
|
this._addSourceGroup(source);
|
|
19154
19156
|
redraw = true;
|
|
19155
19157
|
}
|
|
@@ -19171,6 +19173,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19171
19173
|
var frameStartTime = self._view.pixelsToTime(frameOffset);
|
|
19172
19174
|
var frameEndTime = self._view.pixelsToTime(frameOffset + width);
|
|
19173
19175
|
sources.forEach(function (source) {
|
|
19176
|
+
console.log('_onSourceAdd', source.id);
|
|
19174
19177
|
self._addSourceGroup(source);
|
|
19175
19178
|
});
|
|
19176
19179
|
this._view.updateTimelineLength();
|
|
@@ -19350,6 +19353,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19350
19353
|
SourcesLayer.prototype._findOrAddSourceGroup = function (source) {
|
|
19351
19354
|
var sourceGroup = this._sourcesGroup[source.id];
|
|
19352
19355
|
if (!sourceGroup) {
|
|
19356
|
+
console.log('_findOrAddSourceGroup', source.id);
|
|
19353
19357
|
sourceGroup = this._addSourceGroup(source);
|
|
19354
19358
|
}
|
|
19355
19359
|
return sourceGroup;
|
|
@@ -19402,17 +19406,11 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
|
|
|
19402
19406
|
};
|
|
19403
19407
|
SourcesLayer.prototype._removeSource = function (source, isPermanent, shouldBlockEvent) {
|
|
19404
19408
|
var sourceGroup = this._sourcesGroup[source.id];
|
|
19405
|
-
console.log('Removing source', source.id, sourceGroup, this._sourcesGroup.map(function (s) {
|
|
19406
|
-
return s.id;
|
|
19407
|
-
}));
|
|
19408
19409
|
if (sourceGroup) {
|
|
19409
19410
|
delete this._sourcesGroup[source.id];
|
|
19410
19411
|
this._lines.removeSourceGroup(source, isPermanent);
|
|
19411
19412
|
sourceGroup.destroy();
|
|
19412
19413
|
}
|
|
19413
|
-
console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup.map(function (s) {
|
|
19414
|
-
return s.id;
|
|
19415
|
-
}));
|
|
19416
19414
|
if (isPermanent && !shouldBlockEvent) {
|
|
19417
19415
|
this._peaks.emit('source.destroyed', source);
|
|
19418
19416
|
}
|
package/src/sources-layer.js
CHANGED
|
@@ -114,6 +114,7 @@ define([
|
|
|
114
114
|
positions.push(source.position);
|
|
115
115
|
}
|
|
116
116
|
this._removeSource(source);
|
|
117
|
+
console.log('_onOptionsLineHeightChange', source.id);
|
|
117
118
|
this._addSourceGroup(source);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -143,6 +144,7 @@ define([
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
if (source.isVisible(frameStartTime, frameEndTime)) {
|
|
147
|
+
console.log('_onSourceUpdate');
|
|
146
148
|
this._addSourceGroup(source);
|
|
147
149
|
redraw = true;
|
|
148
150
|
}
|
|
@@ -172,6 +174,7 @@ define([
|
|
|
172
174
|
var frameEndTime = self._view.pixelsToTime(frameOffset + width);
|
|
173
175
|
|
|
174
176
|
sources.forEach(function(source) {
|
|
177
|
+
console.log('_onSourceAdd', source.id);
|
|
175
178
|
self._addSourceGroup(source);
|
|
176
179
|
});
|
|
177
180
|
|
|
@@ -477,6 +480,7 @@ define([
|
|
|
477
480
|
var sourceGroup = this._sourcesGroup[source.id];
|
|
478
481
|
|
|
479
482
|
if (!sourceGroup) {
|
|
483
|
+
console.log('_findOrAddSourceGroup', source.id);
|
|
480
484
|
sourceGroup = this._addSourceGroup(source);
|
|
481
485
|
}
|
|
482
486
|
|
|
@@ -568,20 +572,12 @@ define([
|
|
|
568
572
|
SourcesLayer.prototype._removeSource = function(source, isPermanent, shouldBlockEvent) {
|
|
569
573
|
var sourceGroup = this._sourcesGroup[source.id];
|
|
570
574
|
|
|
571
|
-
console.log('Removing source', source.id, sourceGroup, this._sourcesGroup.map(function(s) {
|
|
572
|
-
return s.id;
|
|
573
|
-
}));
|
|
574
|
-
|
|
575
575
|
if (sourceGroup) {
|
|
576
576
|
delete this._sourcesGroup[source.id];
|
|
577
577
|
this._lines.removeSourceGroup(source, isPermanent);
|
|
578
578
|
sourceGroup.destroy();
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup.map(function(s) {
|
|
582
|
-
return s.id;
|
|
583
|
-
}));
|
|
584
|
-
|
|
585
581
|
if (isPermanent && !shouldBlockEvent) {
|
|
586
582
|
this._peaks.emit('source.destroyed', source);
|
|
587
583
|
}
|