Skip to content

Module: src/visualizer/frequency/VisualizerFrequencyWorker

This worker processes frequency data for the VisualizerFrequency component. It receives messages from the main thread to initialize the worker, resize the offscreen canvas, or render frequency data.

Version
1.0.0
Author
Frank Kudermann - alphanull
License
MIT
Requires
math
VisualizerFrequencyRender
Source
VisualizerFrequencyWorker.js, line 13

Methods

inner onmessage(event)

Global message handler for the worker. Processes messages from the main thread based on the message type.

Parameters:
Name Type Description
event MessageEvent

The message event from the main thread.

Listens
event:MessageEvent
Source
VisualizerFrequencyWorker.js, line 23