Skip to content

Commit d03a1e3

Browse files
author
ArthurBeaulieu
committed
ready to release
1 parent 6343806 commit d03a1e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+378
-382
lines changed

demo/demo.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,37 @@ button[disabled] {
3333

3434
nav {
3535
align-items: center;
36-
background-color: #181818;
37-
border-bottom: solid 1px grey;
36+
background-color: #404040;
3837
color: white;
3938
display: flex;
40-
height: 40px;
39+
height: 45px;
4140
justify-content: center;
4241
position: absolute;
4342
top: 0;
4443
width: 100%;
4544
}
4645

4746
nav a {
47+
align-items: center;
4848
cursor: pointer;
49+
display: flex;
4950
fill: white;
5051
height: 80%;
52+
justify-content: center;
5153
position: absolute;
5254
right: 10px;
55+
width: 36px;
5356
transition: fill 0.4s;
5457
}
58+
5559
nav a:active, nav a:focus, nav a:hover {
5660
fill: #56D45B;
5761
}
58-
nav a h1 {
62+
63+
nav h1 {
64+
font-size: 1.3rem;
5965
margin: 0;
60-
padding-left: 10px;
66+
padding: 0;
6167
}
6268

6369
nav a.about {
@@ -94,12 +100,13 @@ audio {
94100

95101
.view-switcher {
96102
align-items: center;
97-
border-bottom: solid 1px grey;
103+
background-color: #f7f7f7;
104+
border-bottom: solid 1px #e3e3e3;
98105
display: flex;
99106
height: 30px;
100107
justify-content: center;
101108
position: absolute;
102-
top: 40px;
109+
top: 45px;
103110
width: 100%;
104111
}
105112

@@ -119,6 +126,7 @@ audio {
119126

120127
.view-switcher .entry.selected p {
121128
color: #56D45B;
129+
font-weight: bold;
122130
}
123131

124132
.view-switcher button {
@@ -136,14 +144,15 @@ audio {
136144
align-items: flex-start;
137145
bottom: 0;
138146
display: flex;
139-
height: calc(100% - 70px);
147+
height: calc(100% - 75px);
140148
justify-content: center;
141149
padding: 40px;
142150
position: absolute;
143151
width: 100%;
144152
}
145153

146154
.view {
155+
box-shadow: 0 0 10px;
147156
height: calc(100% - 30px);
148157
width: 100%;
149158
}

demo/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</head>
1515
<!--
1616
17-
AudioVisualizer 1.0.0 - 2020/2021
17+
AudioVisualizer 1.0.0 - 2020/2022
1818
@author Arthur Beaulieu - https://github.com/ArthurBeaulieu
1919
2020
To use AudioVisualizer as an ES6 Module, you must ensure that assets, scss and js

doc/AudioVisualizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
583583
<br class="clear">
584584

585585
<footer>
586-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
586+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
587587
</footer>
588588

589589
<script> prettyPrint(); </script>

doc/AudioVisualizer.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
113113
<br class="clear">
114114

115115
<footer>
116-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
116+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
117117
</footer>
118118

119119
<script> prettyPrint(); </script>

doc/BackgroundStar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
525525
<br class="clear">
526526

527527
<footer>
528-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
528+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
529529
</footer>
530530

531531
<script> prettyPrint(); </script>

doc/BaseComponent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
20772077
<br class="clear">
20782078

20792079
<footer>
2080-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
2080+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
20812081
</footer>
20822082

20832083
<script> prettyPrint(); </script>

doc/CanvasUtils.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
41514151
<br class="clear">
41524152

41534153
<footer>
4154-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
4154+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
41554155
</footer>
41564156

41574157
<script> prettyPrint(); </script>

doc/ColorUtils.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
23172317
<br class="clear">
23182318

23192319
<footer>
2320-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
2320+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
23212321
</footer>
23222322

23232323
<script> prettyPrint(); </script>

doc/FrequencyBars.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
16281628
<br class="clear">
16291629

16301630
<footer>
1631-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
1631+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
16321632
</footer>
16331633

16341634
<script> prettyPrint(); </script>

doc/FrequencyCircle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3275,7 +3275,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
32753275
<br class="clear">
32763276

32773277
<footer>
3278-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
3278+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
32793279
</footer>
32803280

32813281
<script> prettyPrint(); </script>

doc/Oscilloscope.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2889,7 +2889,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
28892889
<br class="clear">
28902890

28912891
<footer>
2892-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
2892+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
28932893
</footer>
28942894

28952895
<script> prettyPrint(); </script>

doc/OscilloscopeRadialPoint.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
340340
<br class="clear">
341341

342342
<footer>
343-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
343+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
344344
</footer>
345345

346346
<script> prettyPrint(); </script>

doc/PeakMeter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3584,7 +3584,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
35843584
<br class="clear">
35853585

35863586
<footer>
3587-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
3587+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
35883588
</footer>
35893589

35903590
<script> prettyPrint(); </script>

doc/Spectrum.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4191,7 +4191,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
41914191
<br class="clear">
41924192

41934193
<footer>
4194-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
4194+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
41954195
</footer>
41964196

41974197
<script> prettyPrint(); </script>

doc/Timeline.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4909,7 +4909,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
49094909
<br class="clear">
49104910

49114911
<footer>
4912-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
4912+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
49134913
</footer>
49144914

49154915
<script> prettyPrint(); </script>

doc/VisuComponentMono.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
22642264
<br class="clear">
22652265

22662266
<footer>
2267-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
2267+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
22682268
</footer>
22692269

22702270
<script> prettyPrint(); </script>

doc/VisuComponentStereo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
24602460
<br class="clear">
24612461

24622462
<footer>
2463-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
2463+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
24642464
</footer>
24652465

24662466
<script> prettyPrint(); </script>

doc/Waveform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4542,7 +4542,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
45424542
<br class="clear">
45434543

45444544
<footer>
4545-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:24:00 GMT+0200 (Central European Summer Time)
4545+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
45464546
</footer>
45474547

45484548
<script> prettyPrint(); </script>

doc/components_FrequencyBars.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
125125
<br class="clear">
126126

127127
<footer>
128-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
128+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
129129
</footer>
130130

131131
<script> prettyPrint(); </script>

doc/components_FrequencyCircle.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
521521
<br class="clear">
522522

523523
<footer>
524-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
524+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
525525
</footer>
526526

527527
<script> prettyPrint(); </script>

doc/components_Oscilloscope.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
255255
<br class="clear">
256256

257257
<footer>
258-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
258+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
259259
</footer>
260260

261261
<script> prettyPrint(); </script>

doc/components_PeakMeter.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
517517
<br class="clear">
518518

519519
<footer>
520-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
520+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
521521
</footer>
522522

523523
<script> prettyPrint(); </script>

doc/components_Spectrum.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
489489
<br class="clear">
490490

491491
<footer>
492-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
492+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
493493
</footer>
494494

495495
<script> prettyPrint(); </script>

doc/components_Timeline.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
971971
<br class="clear">
972972

973973
<footer>
974-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
974+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
975975
</footer>
976976

977977
<script> prettyPrint(); </script>

doc/components_Waveform.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
593593
<br class="clear">
594594

595595
<footer>
596-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
596+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
597597
</footer>
598598

599599
<script> prettyPrint(); </script>

doc/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h3> </h3>
4747
<p><img src="https://badgen.net/badge/version/1.0.0/blue" alt="">
4848
<img src="https://img.shields.io/github/license/ArthurBeaulieu/AudioVisualizer.svg" alt="License">
4949
<img src="https://badgen.net/badge/documentation/written/green" alt="Doc">
50-
<img src="https://badgen.net/badge/test/wip/orange" alt="Test">
50+
<img src="https://badgen.net/badge/test/basic/green" alt="Test">
5151
<img src="https://badgen.net/badge/dependencies/none/green" alt="Dep"></p>
5252
<p>This library free module provides several standard audio visualizations in the browser using WebAudioAPI. It is best to be used with an HTML audio element (to benefit its streaming mechanism), but can also work with an <code>AudioContext</code>.</p>
5353
<p><a href="https://arthurbeaulieu.github.io/AudioVisualizer/demo/example.html">See it live</a> or <a href="https://arthurbeaulieu.github.io/AudioVisualizer/doc/index.html">Read the documentation</a></p>
@@ -248,7 +248,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
248248
<br class="clear">
249249

250250
<footer>
251-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
251+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
252252
</footer>
253253

254254
<script> prettyPrint(); </script>

doc/utils_BaseComponent.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
291291
<br class="clear">
292292

293293
<footer>
294-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
294+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
295295
</footer>
296296

297297
<script> prettyPrint(); </script>

doc/utils_CanvasUtils.js.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h1 class="page-title">Source: utils/CanvasUtils.js</h1>
119119
static drawCircleGlow(canvas, options) {
120120
const ctx = canvas.getContext('2d');
121121
ctx.beginPath();
122-
ctx.arc(options.centerX, options.centerY, options.radius, options.radStart, options.radEnd);
122+
ctx.arc(options.centerX, options.centerY, options.radius, options.radStart, options.radEnd);
123123
ctx.fillStyle = ColorUtils.radialGlowGradient(canvas, options);
124124
ctx.fill();
125125
ctx.closePath();
@@ -172,7 +172,7 @@ <h1 class="page-title">Source: utils/CanvasUtils.js</h1>
172172
ctx.fillRect(options.originX, canvas.height - options.height, options.width, options.height);
173173
options.vertical = true; // Enforce vertical gradient
174174
ctx.fillStyle = ColorUtils.linearGradient(canvas, options);
175-
ctx.fillRect(options.originX, canvas.height - options.height, options.width, options.height);
175+
ctx.fillRect(options.originX, canvas.height - options.height, options.width, options.height);
176176
ctx.closePath();
177177
}
178178

@@ -339,7 +339,7 @@ <h1 class="page-title">Source: utils/CanvasUtils.js</h1>
339339
options.vertical = (options.orientation === 'vertical');
340340
ctx.fillStyle = ColorUtils.linearGradient(canvas, options);
341341
ctx.fill();
342-
342+
343343
if (options.orientation === 'horizontal') {
344344
const ledWidth = canvas.width - options.amplitude;
345345
ctx.fillRect(0, 0, ledWidth, canvas.height);
@@ -481,7 +481,7 @@ <h1 class="page-title">Source: utils/CanvasUtils.js</h1>
481481
if (typeof options.x !== 'number' || typeof options.y !== 'number' || typeof options.label !== 'string') {
482482
return new Error('CanvasUtils.drawBeatCount : Invalid type for options.x or options.y or options.label');
483483
}
484-
// Perform method purpose
484+
// Perform method purpose
485485
const ctx = canvas.getContext('2d');
486486
ctx.beginPath();
487487
// Label text drawing
@@ -513,7 +513,7 @@ <h1 class="page-title">Source: utils/CanvasUtils.js</h1>
513513
if (typeof value !== 'number' || typeof precision !== 'number') {
514514
return new Error('CanvasUtils.precisionRound : Invalid type for value or precision');
515515
}
516-
// Perform method purpose
516+
// Perform method purpose
517517
const multiplier = Math.pow(10, precision || 0);
518518
return Math.round(value * multiplier) / multiplier;
519519
}
@@ -539,7 +539,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AudioVisu
539539
<br class="clear">
540540

541541
<footer>
542-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 09:23:59 GMT+0200 (Central European Summer Time)
542+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Jul 20 2022 10:22:10 GMT+0200 (Central European Summer Time)
543543
</footer>
544544

545545
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)