waveform-renderer
Version:
High-performance audio waveform visualization library for the web. Create customizable, interactive waveform renderers with TypeScript support and zero dependencies.
24 lines (22 loc) • 515 B
text/typescript
import type { WaveformOptions } from "@/types";
export const DEFAULT_OPTIONS: Required<WaveformOptions> = {
amplitude: 1,
backgroundColor: "#CCCCCC",
barWidth: 2,
borderColor: "#000000",
borderRadius: 0,
borderWidth: 0,
color: "#000000",
gap: 1,
minPixelRatio: 1,
position: "center",
progress: 0,
progressLine: {
color: "#FF0000",
heightPercent: 1,
position: "center",
style: "solid",
width: 2,
},
smoothing: true,
};