Skip to main content

throttledAnimLog

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/debug/lastAnimLog / throttledAnimLog

Function: throttledAnimLog()

throttledAnimLog(message: string): void

Defined in: utils/debug/lastAnimLog.ts:183

Logs animation progress messages to the console at most once every 500ms to prevent log flooding. Intended for development/debug logging only, and disabled in production builds.

This utility uses a closure to maintain state and throttle log messages, which is particularly useful for high-frequency events like animation frames or scroll handlers.

Parameters​

message​

string

The message to log to the console.

Returns​

void