We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 349927f commit 4efcd04Copy full SHA for 4efcd04
src/index.ts
@@ -56,6 +56,9 @@ function generateNewCanvasTarget(width, height) {
56
return canvas;
57
}
58
59
+/**
60
+ * Main class for generating waveforms with canvas and SVG.
61
+ */
62
class WaveformGenerator {
63
#fileArrayBuffer: ArrayBuffer;
64
#audioBuffer: AudioBuffer;
@@ -64,6 +67,9 @@ class WaveformGenerator {
67
#canvasContext: CanvasRenderingContext2D;
65
68
#options: Options = defaultOptions;
66
69
70
+ /**
71
+ * Call the constructor with the file ArrayBuffer.
72
73
constructor(fileArrayBuffer: ArrayBuffer) {
74
this.#fileArrayBuffer = fileArrayBuffer;
75
0 commit comments