@checksub_team/peaks_timeline 2.0.0-alpha.5 → 2.0.0-alpha.6
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/components/source-group.js +1 -1
- package/src/view.js +5 -5
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -18108,7 +18108,7 @@ module.exports = function (WaveformBuilder, WaveformShape, Loader, Utils, Konva)
|
|
|
18108
18108
|
return group.isAncestorOf(this._group);
|
|
18109
18109
|
};
|
|
18110
18110
|
SourceGroup.prototype.hideButKeepFocus = function () {
|
|
18111
|
-
this._group.moveTo(this._view.
|
|
18111
|
+
this._group.moveTo(this._view.getTempGroup());
|
|
18112
18112
|
};
|
|
18113
18113
|
SourceGroup.prototype.getParent = function () {
|
|
18114
18114
|
return this._group.getParent();
|
|
@@ -22089,8 +22089,7 @@ module.exports = function (MouseDragHandler, PlayheadLayer, SourcesLayer, ModeLa
|
|
|
22089
22089
|
width: self._width - self._peaks.options.lineIndicatorWidth,
|
|
22090
22090
|
height: self._height
|
|
22091
22091
|
});
|
|
22092
|
-
self.
|
|
22093
|
-
self._stage.add(self._tempLayer);
|
|
22092
|
+
self._tempGroup = new Konva.Group({ listening: false });
|
|
22094
22093
|
self._width -= self._peaks.options.lineIndicatorWidth;
|
|
22095
22094
|
self._axis = new Axis(self._peaks, self, {
|
|
22096
22095
|
axisGridlineColor: this._options.axisGridlineColor,
|
|
@@ -22099,6 +22098,7 @@ module.exports = function (MouseDragHandler, PlayheadLayer, SourcesLayer, ModeLa
|
|
|
22099
22098
|
self._axis.addBackToStage(self._stage);
|
|
22100
22099
|
self._sourcesLayer = new SourcesLayer(peaks, self, true);
|
|
22101
22100
|
self._sourcesLayer.addToStage(self._stage);
|
|
22101
|
+
self._sourcesLayer.add(self._tempGroup);
|
|
22102
22102
|
self._axis.addFrontToStage(self._stage);
|
|
22103
22103
|
self._playheadLayer = new PlayheadLayer(peaks, self, self._sourcesLayer, self._options.showPlayheadTime);
|
|
22104
22104
|
self._playheadLayer.addToStage(self._stage);
|
|
@@ -22207,8 +22207,8 @@ module.exports = function (MouseDragHandler, PlayheadLayer, SourcesLayer, ModeLa
|
|
|
22207
22207
|
View.prototype.setClickable = function (clickable) {
|
|
22208
22208
|
this._isClickable = clickable;
|
|
22209
22209
|
};
|
|
22210
|
-
View.prototype.
|
|
22211
|
-
return this.
|
|
22210
|
+
View.prototype.getTempGroup = function () {
|
|
22211
|
+
return this._tempGroup;
|
|
22212
22212
|
};
|
|
22213
22213
|
View.prototype.getSelectedElements = function () {
|
|
22214
22214
|
return Object.values(this._modeLayer.getSelectedElements());
|
package/src/view.js
CHANGED
|
@@ -119,9 +119,7 @@ define([
|
|
|
119
119
|
height: self._height
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
self.
|
|
123
|
-
// self._tempLayer.listening(false);
|
|
124
|
-
self._stage.add(self._tempLayer);
|
|
122
|
+
self._tempGroup = new Konva.Group({ listening: false });
|
|
125
123
|
|
|
126
124
|
self._width -= self._peaks.options.lineIndicatorWidth;
|
|
127
125
|
|
|
@@ -135,6 +133,8 @@ define([
|
|
|
135
133
|
self._sourcesLayer = new SourcesLayer(peaks, self, true);
|
|
136
134
|
self._sourcesLayer.addToStage(self._stage);
|
|
137
135
|
|
|
136
|
+
self._sourcesLayer.add(self._tempGroup);
|
|
137
|
+
|
|
138
138
|
self._axis.addFrontToStage(self._stage);
|
|
139
139
|
|
|
140
140
|
self._playheadLayer = new PlayheadLayer(
|
|
@@ -317,8 +317,8 @@ define([
|
|
|
317
317
|
this._isClickable = clickable;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
-
View.prototype.
|
|
321
|
-
return this.
|
|
320
|
+
View.prototype.getTempGroup = function() {
|
|
321
|
+
return this._tempGroup;
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
View.prototype.getSelectedElements = function() {
|