UNPKG

sound-visualizer

Version:
27 lines (25 loc) 691 B
/** * The options that are common across both visualizer functions. */ interface DrawOptions { /** * The color of the wave drawn on the canvas. * * @default "#000" */ strokeColor?: string; /** * The thickness of the bar used to draw the wave. * * If a number is provided, it will be used as a `px` value. * If a thickness string is provided, it will be transformed into a percentage of the canvas width. * * @default "default" */ rectWidth?: number | "thick" | "thin" | "default"; } /** * The defaults for `DrawOptions`. */ declare const defaultDrawOptions: DrawOptions; export { DrawOptions, defaultDrawOptions };