]> cat aescling's git repositories - mastodon.git/commitdiff
Add attribution notice to the audio player component (#14280)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 10 Jul 2020 10:25:44 +0000 (12:25 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2020 10:25:44 +0000 (12:25 +0200)
The code for rendering a frequency graph around a circle has been adopted (with modifications) from a CodePen by Alex Permyakov

app/javascript/mastodon/features/audio/index.js

index f0cd79873fbc28dea6d1c8f58c2f6da09d7cf132..6ab835bd6eab0a06949da39cbce60a5b55ef4a55 100644 (file)
@@ -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;