Components Interactions Examples Tutorials API FAQ
Options
Menu

Module RenderController

The RenderController is responsible for enqueueing and synchronizing layout and render calls for Components.

Layout and render calls occur inside an animation callback (window.requestAnimationFrame if available).

RenderController.flush() immediately lays out and renders all Components currently enqueued.

To always have immediate rendering (useful for debugging), call

Plottable.RenderController.setRenderPolicy(
  new Plottable.RenderPolicies.Immediate()
);

Index

Functions

flush

  • flush(): void
  • Renders all Components waiting to be rendered immediately instead of waiting until the next frame.

    Useful to call when debugging.

    Returns void

registerToComputeLayout

  • registerToComputeLayout(component: Component): void

registerToRender

  • registerToRender(component: Component): void

renderPolicy

  • renderPolicy(): RenderPolicy
  • renderPolicy(renderPolicy: string): void

Generated using TypeDoc