wavesurfer.js 6.0.0 → 6.0.1

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/CHANGES.md CHANGED
@@ -1,6 +1,10 @@
1
1
  wavesurfer.js changelog
2
2
  =======================
3
3
 
4
+ 6.0.1 (13.02.2022)
5
+ ------------------
6
+ - Fixed a regression that broke bars rendering when using a certain format for the peaks array (#2439)
7
+
4
8
  6.0.0 (07.02.2022)
5
9
  ------------------
6
10
  - Add additional type to `waveColor` and `progressColor` parameters to support linear gradients (#2345)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js cursor plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js cursor plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js cursor plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js cursor plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js elan plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js elan plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js elan plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js elan plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js markers plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js markers plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js markers plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js markers plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js mediasession plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js mediasession plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js mediasession plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js mediasession plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js microphone plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js microphone plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js microphone plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js microphone plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js minimap plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js minimap plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js minimap plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js minimap plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js playhead plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js playhead plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js playhead plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js playhead plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js regions plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js regions plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js regions plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js regions plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js spectrogram plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js spectrogram plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js spectrogram plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js spectrogram plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js timeline plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js timeline plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js timeline plugin 6.0.0 (2022-02-07)
2
+ * wavesurfer.js timeline plugin 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js 6.0.0 (2022-02-07)
2
+ * wavesurfer.js 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js 6.0.0 (2022-02-07)
2
+ * wavesurfer.js 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * wavesurfer.js 6.0.0 (2022-02-07)
2
+ * wavesurfer.js 6.0.1 (2022-02-14)
3
3
  * https://wavesurfer-js.org
4
4
  * @license BSD-3-Clause
5
5
  */
@@ -204,7 +204,7 @@ var CanvasEntry = /*#__PURE__*/function () {
204
204
  * Otherwise, it will be treated as an array, and a canvas gradient will
205
205
  * be returned
206
206
  *
207
- * @since 5.3.0
207
+ * @since 6.0.0
208
208
  * @param {CanvasRenderingContext2D} ctx Rendering context of target canvas
209
209
  * @param {string|string[]} color Fill color for the wave canvas, or an array of colors to apply as a gradient
210
210
  * @returns {string|CanvasGradient} Returns a string fillstyle value, or a canvas gradient
@@ -1325,7 +1325,7 @@ var MultiCanvas = /*#__PURE__*/function (_Drawer) {
1325
1325
 
1326
1326
  do {
1327
1327
  // do..while makes sure at least one peak is always evaluated
1328
- var newPeak = peaks[peakIndexRange];
1328
+ var newPeak = Math.abs(peaks[peakIndexRange]); // for arrays starting with negative values
1329
1329
 
1330
1330
  if (newPeak > peak) {
1331
1331
  peak = newPeak; // higher
@@ -5594,7 +5594,7 @@ var WaveSurfer = /*#__PURE__*/function (_util$Observer) {
5594
5594
 
5595
5595
  exports["default"] = WaveSurfer;
5596
5596
 
5597
- _defineProperty(WaveSurfer, "VERSION", "6.0.0");
5597
+ _defineProperty(WaveSurfer, "VERSION", "6.0.1");
5598
5598
 
5599
5599
  _defineProperty(WaveSurfer, "util", util);
5600
5600