The underlying canvas element.
Returns true if the viewer is ready to connect to data sources.
Close a recording.
The viewer must have been started via WebViewer.start.
URLs to .rrd files or gRPC connections to our SDK.
Get the active recording id.
Get the active timeline.
This always returns null if the recording can't be found.
Get the current time.
The interpretation of time depends on what kind of timeline it is:
This always returns 0 if the recording or timeline can't be found.
Get the play state.
This always returns false if the recording can't be found.
Get the time range for a timeline.
This always returns null if the recording or timeline can't be found.
Unregister an event listener.
The event emitter relies on referential equality to store callbacks.
The callback passed in must be the exact same instance of the function passed in to on or once.
See ViewerEvent for a full list of available events.
Unregister an event listener.
The event emitter relies on referential equality to store callbacks.
The callback passed in must be the exact same instance of the function passed in to on or once.
See ViewerEvent for a full list of available events.
Register an event listener.
Returns a function which removes the listener when called.
See ViewerEvent for a full list of available events.
Register an event listener.
Returns a function which removes the listener when called.
See ViewerEvent for a full list of available events.
Register an event listener which runs only once.
Returns a function which removes the listener when called.
See ViewerEvent for a full list of available events.
Register an event listener which runs only once.
Returns a function which removes the listener when called.
See ViewerEvent for a full list of available events.
Open a recording.
The viewer must have been started via WebViewer.start.
URLs to .rrd files or gRPC connections to our SDK.
follow_if_http: Whether Rerun should open the resource in "Following" mode when streaming
from an HTTP url. Defaults to false. Ignored for non-HTTP URLs.
Opens a new channel for sending log messages.
The channel can be used to incrementally push rrd chunks into the viewer.
used to identify the channel.
Force a panel to a specific state.
which panel to configure
which state to force the panel into
Set the active recording id.
This is the same as clicking on the recording in the Viewer's left panel.
Set the active timeline.
This does nothing if the recording or timeline can't be found.
Set the current time.
Equivalent to clicking on the timeline in the time panel at the specified time.
The interpretation of time depends on what kind of timeline it is:
This does nothing if the recording or timeline can't be found.
Set the play state.
This does nothing if the recording can't be found.
Start the viewer.
URLs to .rrd files or gRPC connections to our SDK.
The element to attach the canvas onto.
Web Viewer configuration.
Stop the viewer, freeing all associated memory.
The same viewer instance may be started multiple times.
Toggle fullscreen mode.
This does nothing if allow_fullscreen was not set to true when starting the viewer.
Fullscreen mode works by updating the underlying <canvas> element's style:
position to fixedWhen fullscreen mode is toggled off, the style is restored to its previous values.
When fullscreen mode is toggled on, any other instance of the viewer on the page which is already in fullscreen mode is toggled off. This means that it doesn't have to be tracked manually.
This functionality can also be directly accessed in the viewer:
Toggle fullscreen UI command (accessible via the command palette, CTRL+P)Toggle panel overrides set via override_panel_state.
Optionalvalue: null | booleanset to a specific value. Toggles the previous value if not provided.
Rerun Web Viewer
Data may be provided to the Viewer as:
viewer.start("https://app.rerun.io/version/0.26.2/examples/dna.rrd")viewer.start("rerun+http://127.0.0.1:9876/proxy")Callbacks may be attached for various events using WebViewer.on:
For the full list of available events, see ViewerEvent.