Skip to content

Commit

Permalink
v3.0.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Jul 15, 2023
1 parent 7d9eef2 commit fb2d015
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
49 changes: 40 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
# Peaks.js

## 3.0.0-beta.13 (2023/07/15)

* (#499) Added a new `zoomview.setWaveformDragMode()` method, which
enables users to create new segments by clicking and dragging in the
zoomable waveform view. The segment id value can now be set using
`segment.update()` (and point ids can be updated similarly). A new event
is emitted, `segments.insert` after the user has inserted a new segment
by dragging in the waveform view.

The following event handlers now receive event objects, see
[doc/migration-guide.md](doc/migration-guide.md) and
[doc/API.md](doc/API.md) for details:

* `points.add`, `points.remove`
* `segments.add`, `segments.remove`
* `points.enter`, `segments.enter`, `segments.exit`
* `zoom.update` (@chrisn)

* (#498) Fixed changing the `editable` flag on point markers (@chrisn)

* (#500) Fixed "Zoom level too low" error, which can happen with short
duration audio files when the overview window tries to resample the
audio to fit the available width (@chrisn)

* The custom marker `draggable` option has been renamed to `editable`,
to be consistent with the point and segment attribute with the same
name. Refer to [doc/migration-guide.md](doc/migration-guide.md) for
details of how to update your application (@chrisn)

## 3.0.0-beta.12 (2023/06/27)

* (#498) The custom marker `timeUpdated()` method has been removed, and
replaced by a more general purpose `update()` method, which is called
when any of the point or segment attributes have been updated
(including when markers are dragged). Refer to doc/migration-guide.md
for details of how to update your application (@chrisn)
(including when markers are dragged). Refer to
[doc/migration-guide.md](doc/migration-guide.md) for details of how to
update your application (@chrisn)

* (#497) Added zoomview `autoScroll` and `autoScrollOffset` options
(@chrisn)
Expand All @@ -21,7 +51,8 @@
This allwos you to prevent `zoomview.*` or `overview.*` click events
from a `segments.*` or `points.*` click event handler (@chrisn)

* (#489) Improved event documentation, see [doc/API.md#events] (@chrisn)
* (#489) Improved event documentation, see [doc/API.md](doc/API.md#events)
(@chrisn)

* (#494) Enable use of Konva v9.x (@jdelStrother)

Expand Down Expand Up @@ -129,8 +160,8 @@
and `zoomview.segmentOptions` settings.

Some segment options have been removed, please refer to
doc/migration-guide.md for details of how to update your application
(@chrisn)
[doc/migration-guide.md](doc/migration-guide.md) for details of how to
update your application (@chrisn)

## 2.1.0 (2022/10/17)

Expand Down Expand Up @@ -197,8 +228,8 @@
* (#450) Fixed waveform view initialization. This required a changed to
how custom player objects are initialized, to be async. If your application
uses a custom player object, this is a breaking API change. Please refer to
doc/migration-guide.md for details of how to update your application
(@chrisn)
[doc/migration-guide.md](doc/migration-guide.md) for details of how to update
your application (@chrisn)

* The waveform cache is now cleared on calling `setSource()`. This would
cause the waveform to not be updated when it should (@chrisn)
Expand All @@ -212,8 +243,8 @@

* (#427) Changed all mouse and click event handlers to also expose the
MouseEvent or PointerEvent. This is a breaking API change, please refer to
doc/migration-guide.md for details of how to update your application
(@chrisn)
[doc/migration-guide.md](doc/migration-guide.md) for details of how to update
your application (@chrisn)

* (#441) Added `zoomview.contextmenu`, `overview.contextmenu`,
`points.contextmenu`, and `segments.contextmenu` events (@rowild)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peaks.js",
"version": "3.0.0-beta.12",
"version": "3.0.0-beta.13",
"description": "JavaScript UI component for displaying audio waveforms",
"main": "./dist/peaks.min.js",
"module": "./dist/peaks.esm.js",
Expand Down

0 comments on commit fb2d015

Please sign in to comment.