@checksub_team/peaks_timeline 1.9.5-beta.9 → 1.9.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksub_team/peaks_timeline",
3
- "version": "1.9.5-beta.9",
3
+ "version": "1.9.5",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -15589,8 +15589,8 @@ module.exports = function (Colors, EventEmitter, TimelineSegments, TimelineSourc
15589
15589
  Peaks.prototype.addSource = function (source) {
15590
15590
  this.sources.add(source);
15591
15591
  };
15592
- Peaks.prototype.destroySource = function (sourceId, notify) {
15593
- this.sources.destroyById(sourceId, !notify);
15592
+ Peaks.prototype.destroySource = function (sourceId) {
15593
+ this.sources.destroyById(sourceId);
15594
15594
  };
15595
15595
  Peaks.prototype.showSource = function (sourceId) {
15596
15596
  this.sources.showById(sourceId);
@@ -15639,8 +15639,8 @@ module.exports = function (Colors, EventEmitter, TimelineSegments, TimelineSourc
15639
15639
  Peaks.prototype.selectSourcesOnLineAfter = function (lineId, time) {
15640
15640
  return this.view.selectSourcesOnLineAfter(lineId, time);
15641
15641
  };
15642
- Peaks.prototype.deselectAll = function (notify) {
15643
- return this.view.deselectAll(notify);
15642
+ Peaks.prototype.deselectAll = function () {
15643
+ return this.view.deselectAll();
15644
15644
  };
15645
15645
  Peaks.prototype._addWindowResizeHandler = function () {
15646
15646
  this._onResize = this._onResize.bind(this);
@@ -15753,7 +15753,7 @@ module.exports = function (Utils, Source, SourceGroup, Konva) {
15753
15753
  const sources = [];
15754
15754
  const segments = [];
15755
15755
  const self = this;
15756
- this.deselectDifference(elements, false);
15756
+ this.deselectDifference(elements, true);
15757
15757
  elements.forEach(function (element) {
15758
15758
  if (!self._selectedElements[element.id]) {
15759
15759
  self._selectedElements[element.id] = element;
@@ -19129,7 +19129,6 @@ 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);
19133
19132
  this._addSourceGroup(source);
19134
19133
  }
19135
19134
  }
@@ -19151,7 +19150,6 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
19151
19150
  redraw = true;
19152
19151
  }
19153
19152
  if (source.isVisible(frameStartTime, frameEndTime)) {
19154
- console.log('_onSourceUpdate');
19155
19153
  this._addSourceGroup(source);
19156
19154
  redraw = true;
19157
19155
  }
@@ -19173,7 +19171,6 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
19173
19171
  var frameStartTime = self._view.pixelsToTime(frameOffset);
19174
19172
  var frameEndTime = self._view.pixelsToTime(frameOffset + width);
19175
19173
  sources.forEach(function (source) {
19176
- console.log('_onSourceAdd', source.id);
19177
19174
  self._addSourceGroup(source);
19178
19175
  });
19179
19176
  this._view.updateTimelineLength();
@@ -19353,7 +19350,6 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
19353
19350
  SourcesLayer.prototype._findOrAddSourceGroup = function (source) {
19354
19351
  var sourceGroup = this._sourcesGroup[source.id];
19355
19352
  if (!sourceGroup) {
19356
- console.log('_findOrAddSourceGroup', source.id);
19357
19353
  sourceGroup = this._addSourceGroup(source);
19358
19354
  }
19359
19355
  return sourceGroup;
@@ -20252,8 +20248,8 @@ module.exports = function (MouseDragHandler, PlayheadLayer, SourcesLayer, ModeLa
20252
20248
  this._modeLayer.selectElements(sources, false);
20253
20249
  }
20254
20250
  };
20255
- TimelineZoomView.prototype.deselectAll = function (notify) {
20256
- this._modeLayer.deselectDifference([], notify);
20251
+ TimelineZoomView.prototype.deselectAll = function () {
20252
+ this._modeLayer.deselectDifference([], false);
20257
20253
  };
20258
20254
  TimelineZoomView.prototype.isListening = function () {
20259
20255
  return this._stage.listening();
package/src/main.js CHANGED
@@ -637,8 +637,8 @@ define([
637
637
  * @param {String} sourceId
638
638
  */
639
639
 
640
- Peaks.prototype.destroySource = function(sourceId, notify) {
641
- this.sources.destroyById(sourceId, !notify);
640
+ Peaks.prototype.destroySource = function(sourceId) {
641
+ this.sources.destroyById(sourceId);
642
642
  };
643
643
 
644
644
  /**
@@ -730,9 +730,9 @@ define([
730
730
  .selectSourcesOnLineAfter(lineId, time);
731
731
  };
732
732
 
733
- Peaks.prototype.deselectAll = function(notify) {
733
+ Peaks.prototype.deselectAll = function() {
734
734
  return this.view
735
- .deselectAll(notify);
735
+ .deselectAll();
736
736
  };
737
737
 
738
738
  Peaks.prototype._addWindowResizeHandler = function() {
package/src/mode-layer.js CHANGED
@@ -86,7 +86,7 @@ define([
86
86
  const segments = [];
87
87
  const self = this;
88
88
 
89
- this.deselectDifference(elements, false);
89
+ this.deselectDifference(elements, true);
90
90
 
91
91
  elements.forEach(function(element) {
92
92
  if (!self._selectedElements[element.id]) {
@@ -114,7 +114,6 @@ define([
114
114
  positions.push(source.position);
115
115
  }
116
116
  this._removeSource(source);
117
- console.log('_onOptionsLineHeightChange', source.id);
118
117
  this._addSourceGroup(source);
119
118
  }
120
119
  }
@@ -144,7 +143,6 @@ define([
144
143
  }
145
144
 
146
145
  if (source.isVisible(frameStartTime, frameEndTime)) {
147
- console.log('_onSourceUpdate');
148
146
  this._addSourceGroup(source);
149
147
  redraw = true;
150
148
  }
@@ -174,7 +172,6 @@ define([
174
172
  var frameEndTime = self._view.pixelsToTime(frameOffset + width);
175
173
 
176
174
  sources.forEach(function(source) {
177
- console.log('_onSourceAdd', source.id);
178
175
  self._addSourceGroup(source);
179
176
  });
180
177
 
@@ -480,7 +477,6 @@ define([
480
477
  var sourceGroup = this._sourcesGroup[source.id];
481
478
 
482
479
  if (!sourceGroup) {
483
- console.log('_findOrAddSourceGroup', source.id);
484
480
  sourceGroup = this._addSourceGroup(source);
485
481
  }
486
482
 
@@ -400,8 +400,8 @@ define([
400
400
  }
401
401
  };
402
402
 
403
- TimelineZoomView.prototype.deselectAll = function(notify) {
404
- this._modeLayer.deselectDifference([], notify);
403
+ TimelineZoomView.prototype.deselectAll = function() {
404
+ this._modeLayer.deselectDifference([], false);
405
405
  };
406
406
 
407
407
  TimelineZoomView.prototype.isListening = function() {