@waveform-playlist/browser 15.1.0 → 15.2.0

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/dist/index.d.mts CHANGED
@@ -155,6 +155,8 @@ interface PlaylistDataContextValue {
155
155
  canZoomOut: boolean;
156
156
  barWidth: number;
157
157
  barGap: number;
158
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). */
159
+ roundedBars: boolean;
158
160
  /** Width in pixels of progress bars. Defaults to barWidth + barGap (fills gaps). */
159
161
  progressBarWidth: number;
160
162
  /** Whether the playlist has finished loading all tracks */
@@ -200,6 +202,8 @@ interface WaveformPlaylistProviderProps {
200
202
  barWidth?: number;
201
203
  /** Spacing in pixels between waveform bars. Default: 0 */
202
204
  barGap?: number;
205
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). Default: false */
206
+ roundedBars?: boolean;
203
207
  /** Width in pixels of progress bars. Default: barWidth + barGap (fills gaps). */
204
208
  progressBarWidth?: number;
205
209
  /** Callback when engine clip operations (move, trim, split) change tracks.
@@ -298,6 +302,8 @@ interface MediaElementDataContextValue {
298
302
  };
299
303
  barWidth: number;
300
304
  barGap: number;
305
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). */
306
+ roundedBars: boolean;
301
307
  progressBarWidth: number;
302
308
  fadeIn?: FadeConfig;
303
309
  fadeOut?: FadeConfig;
@@ -334,6 +340,8 @@ interface MediaElementPlaylistProviderProps {
334
340
  barWidth?: number;
335
341
  /** Gap between waveform bars */
336
342
  barGap?: number;
343
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). Default: false */
344
+ roundedBars?: boolean;
337
345
  /** Width of progress bars */
338
346
  progressBarWidth?: number;
339
347
  /** Callback when annotations are changed (drag, edit, etc.) */
package/dist/index.d.ts CHANGED
@@ -155,6 +155,8 @@ interface PlaylistDataContextValue {
155
155
  canZoomOut: boolean;
156
156
  barWidth: number;
157
157
  barGap: number;
158
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). */
159
+ roundedBars: boolean;
158
160
  /** Width in pixels of progress bars. Defaults to barWidth + barGap (fills gaps). */
159
161
  progressBarWidth: number;
160
162
  /** Whether the playlist has finished loading all tracks */
@@ -200,6 +202,8 @@ interface WaveformPlaylistProviderProps {
200
202
  barWidth?: number;
201
203
  /** Spacing in pixels between waveform bars. Default: 0 */
202
204
  barGap?: number;
205
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). Default: false */
206
+ roundedBars?: boolean;
203
207
  /** Width in pixels of progress bars. Default: barWidth + barGap (fills gaps). */
204
208
  progressBarWidth?: number;
205
209
  /** Callback when engine clip operations (move, trim, split) change tracks.
@@ -298,6 +302,8 @@ interface MediaElementDataContextValue {
298
302
  };
299
303
  barWidth: number;
300
304
  barGap: number;
305
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). */
306
+ roundedBars: boolean;
301
307
  progressBarWidth: number;
302
308
  fadeIn?: FadeConfig;
303
309
  fadeOut?: FadeConfig;
@@ -334,6 +340,8 @@ interface MediaElementPlaylistProviderProps {
334
340
  barWidth?: number;
335
341
  /** Gap between waveform bars */
336
342
  barGap?: number;
343
+ /** Draw bars with pill-shaped rounded caps (radius barWidth/2). Default: false */
344
+ roundedBars?: boolean;
337
345
  /** Width of progress bars */
338
346
  progressBarWidth?: number;
339
347
  /** Callback when annotations are changed (drag, edit, etc.) */
package/dist/index.js CHANGED
@@ -1875,6 +1875,7 @@ var WaveformPlaylistProvider = ({
1875
1875
  onAnnotationsChange,
1876
1876
  barWidth = 1,
1877
1877
  barGap = 0,
1878
+ roundedBars = false,
1878
1879
  progressBarWidth: progressBarWidthProp,
1879
1880
  onTracksChange,
1880
1881
  soundFontCache,
@@ -2914,6 +2915,7 @@ var WaveformPlaylistProvider = ({
2914
2915
  canZoomOut: zoom.canZoomOut,
2915
2916
  barWidth,
2916
2917
  barGap,
2918
+ roundedBars,
2917
2919
  progressBarWidth,
2918
2920
  isReady,
2919
2921
  mono,
@@ -2939,6 +2941,7 @@ var WaveformPlaylistProvider = ({
2939
2941
  zoom.canZoomOut,
2940
2942
  barWidth,
2941
2943
  barGap,
2944
+ roundedBars,
2942
2945
  progressBarWidth,
2943
2946
  isReady,
2944
2947
  mono,
@@ -3026,6 +3029,7 @@ var MediaElementPlaylistProvider = ({
3026
3029
  annotationList,
3027
3030
  barWidth = 1,
3028
3031
  barGap = 0,
3032
+ roundedBars = false,
3029
3033
  progressBarWidth: progressBarWidthProp,
3030
3034
  audioContext,
3031
3035
  onAnnotationsChange,
@@ -3348,6 +3352,7 @@ var MediaElementPlaylistProvider = ({
3348
3352
  controls,
3349
3353
  barWidth,
3350
3354
  barGap,
3355
+ roundedBars,
3351
3356
  progressBarWidth,
3352
3357
  fadeIn: track.fadeIn,
3353
3358
  fadeOut: track.fadeOut
@@ -3362,6 +3367,7 @@ var MediaElementPlaylistProvider = ({
3362
3367
  controls,
3363
3368
  barWidth,
3364
3369
  barGap,
3370
+ roundedBars,
3365
3371
  progressBarWidth,
3366
3372
  track.fadeIn,
3367
3373
  track.fadeOut
@@ -4059,6 +4065,7 @@ var PlaylistVisualization = ({
4059
4065
  controls,
4060
4066
  barWidth,
4061
4067
  barGap,
4068
+ roundedBars,
4062
4069
  isReady,
4063
4070
  mono
4064
4071
  } = usePlaylistData();
@@ -4317,7 +4324,8 @@ var PlaylistVisualization = ({
4317
4324
  duration: displayDuration * 1e3,
4318
4325
  controls,
4319
4326
  barWidth,
4320
- barGap
4327
+ barGap,
4328
+ roundedBars
4321
4329
  },
4322
4330
  children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4323
4331
  import_ui_components8.Playlist,
@@ -4935,6 +4943,7 @@ var MediaElementPlaylist = ({
4935
4943
  playoutRef,
4936
4944
  barWidth,
4937
4945
  barGap,
4946
+ roundedBars,
4938
4947
  fadeIn,
4939
4948
  fadeOut
4940
4949
  } = useMediaElementData();
@@ -5046,7 +5055,8 @@ var MediaElementPlaylist = ({
5046
5055
  duration: duration * 1e3,
5047
5056
  controls,
5048
5057
  barWidth,
5049
- barGap
5058
+ barGap,
5059
+ roundedBars
5050
5060
  },
5051
5061
  children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5052
5062
  import_ui_components10.Playlist,