UNPKG

sound-visualizer

Version:
18 lines (16 loc) 497 B
/** * Calculates the starting and ending point of each line displayed within the wave, * to be used on the canvas. * * @param canvasHeight The height of the canvas. * @param value the frequency value of the line to draw. * * @returns an object with `start` and `end` properties. * * @pure this function is determinstic and doesn not mutate state **/ declare function calculateLine(canvasHeight: number, value: number): { start: number; end: number; }; export { calculateLine };