Browse Source
Add attribution notice to the audio player component (#14280)
The code for rendering a frequency graph around a circle has been adopted (with modifications) from a CodePen by Alex Permyakov
master
Eugen Rochko
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
app/javascript/mastodon/features/audio/index.js
|
|
@ -21,6 +21,9 @@ const messages = defineMessages({ |
|
|
|
download: { id: 'video.download', defaultMessage: 'Download file' }, |
|
|
|
}); |
|
|
|
|
|
|
|
// Some parts of the canvas rendering code in this file have been adopted from
|
|
|
|
// https://codepen.io/alexdevp/full/RNELPV by Alex Permyakov
|
|
|
|
|
|
|
|
const TICK_SIZE = 10; |
|
|
|
const PADDING = 180; |
|
|
|
|
|
|
|