plotomics
    Preparing search index...

    Function createRenderLoop

    • Run renders one at a time, and merge the requests that arrive while one runs into a single next render.

      regl-scatterplot rejects a draw() that starts before the previous one has finished, and keeps the old points, which would leave them under axes for new data. A dragged window edge sends a resize on every frame, and each render maps every point again; merged, a burst of requests costs one more render, not one per request. A render starts in a microtask, so requests made together, such as the setData() and setOptions() that the Shiny binding sends on every update, also become one render. The merged render fits if any request asked for a fit. It reads the component's state when it starts, so it always draws the latest data and options. A failed render is logged and does not stop the next one.

      Parameters

      • render: (fit: boolean) => Promise<void>

      Returns RenderLoop