From: Eugen Rochko Date: Fri, 10 Jul 2020 10:25:44 +0000 (+0200) Subject: Add attribution notice to the audio player component (#14280) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a78b87d80026feef8960d3d39df40f7a5a394f38;p=mastodon.git 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 --- 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;