• Replaces the library animation functions with custom ones.

    Parameters

    • nextFrame: ((callback: FrameRequestCallback) => number)

      A function that will be called with a callback to be executed in the next frame.

        • (callback): number
        • Parameters

          • callback: FrameRequestCallback

          Returns number

    • cancel: ((handle: number) => void)

      A function that will be called with the handle of the frame to be canceled.

        • (handle): void
        • Parameters

          • handle: number

          Returns void

    Returns void