-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Point Markers Individually #67
Comments
What do you mean? Have several markers at the same time? Or you would like to be able to scope them per waveform offset? |
We need to change the appearance of each marker (ie. different types of points) |
We have some similar upcoming use case as well :-) Adding new options is going to make the library more and more complex to use. As a starter, adding an event
This highly coupled to the internal API/Kinetic but I would like to address that issue with the view modularisation later on. So as there would be a way to process only the displayed markers rather than all of them. Another alternative is to add an var p = Peaks.init({
segmentRenderer: defaultSegmentRender
});
function defaultSegmentRender(segment, view){
if (segments.data.type === 'speaker' && view.id === 'overview') {
// …
}
}
function speakerSegmentRenderer(segment, view){
if (view.id === 'zoomview') {
// …
}
}
p.segments.add([{ startTime: 10, endTime: 12, data: { … }, onRender: speakerSegmentRenderer } ]); Something like that. Is it somewhat you had in mind? |
Should be addressed by #87. |
The marker customisation is improved in v0.18.0. I'll close this, please raise a new issue if further changes are needed. |
We'd like to be able to set point markers per point (rather than globally for the whole waveform)
Currently Implementing This feature
The text was updated successfully, but these errors were encountered: