Custom elements for react-konva as used in mediabits.io.
Represents audio waveform. Requires pcm data for every frame.
Props:
animated- will start from specifiedframeand animate every frame until all frames are over.frame- index of current frame.frames- pcm data:[number, number][][]- low-high x samples x frames.pattern- one ofwave,pixel,bars,roundBars,line,curve- different styles of waveform- other
Konva.Shapeprops likefill,width,height,x, y`
<Waveform />
Props:
animated- will start from specifiedprogressand animate every frame untilmaxprogress- number indicating progress untilmax- [0..1]max- limit for progressbackgroundColor- color of area between progress and maxfill- color of area between 0 and progress- other
Konva.Groupelement props
<ProgressBar progress={4} max={10} />