vis-util
    Preparing search index...

    Function throttle

    • Throttle the given function to be only executed once per animation frame.

      Parameters

      • fn: () => void

        The original function.

      Returns () => void

      The throttled function.