From a78b87d80026feef8960d3d39df40f7a5a394f38 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 10 Jul 2020 12:25:44 +0200 Subject: [PATCH] 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 --- app/javascript/mastodon/features/audio/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/mastodon/features/audio/index.js b/app/javascript/mastodon/features/audio/index.js index f0cd79873..6ab835bd6 100644 --- a/app/javascript/mastodon/features/audio/index.js +++ b/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;