Optional
Readonly
dataReadonly
initialInitial panel state
Readonly
layout: LayoutActionsActions the panel may perform related to the user's current layout.
Optional
onProcess render events for the panel. Each render event receives a render state and a done callback. Render events occur frequently (60hz, 30hz, etc).
The done callback should be called once the panel has rendered the render state.
Readonly
panelThe root element for the panel. Add your panel elements as children under this element.
Save arbitrary object as persisted panel state. This state is persisted for the panel within a layout.
The state value should be JSON serializable.
Optional
seekSeek playback to the given time. Behaves as if the user had clicked the playback bar to seek.
Clients can pass a number or alternatively a Time object for greater precision.
Set the value of parameter name to value.
The name of the parameter to set.
The new value of the parameter.
Set the active preview time. Setting the preview time to undefined clears the preview time.
Set the transient state shared by panels of the same type as the caller of this function. This will not be persisted in the layout.
Set the value of variable name to value.
The name of the variable to set.
The new value of the variable.
Subscribe to updates on this field within the render state. Render will only be invoked when this field changes.
Indicate intent to publish messages on a specific topic.
The topic on which the extension will publish messages.
The name of the schema that the published messages will conform to.
Optional
options: Record<string, unknown>Options passed to the current data source for additional configuration.
Subscribe to an array of topic names.
Subscribe will update the current subscriptions to the list of topic names. Passing an empty array will unsubscribe from all topics.
Calling subscribe with an empty array of topics is analagous to unsubscribeAll.
Use subscribe
with an array of Subscription objects instead.
Subscribe to an array of topics with additional options for each subscription.
Subscribe will update the current subscriptions to the new list of Subscriptions and unsubscribe from any previously subscribed topics no longer in the Subscription list. Passing an empty array will unsubscribe from all topics.
Calling subscribe with an empty array is analagous to unsubscribeAll.
Updates the panel's settings editor. Call this every time you want to update the representation of the panel settings in the editor.
Readonly
actionHandler to process all actions on the settings tree initiated by the UI.
Optional
Readonly
enableTrue if the settings editor should show the filter control.
Optional
Readonly
focusedSetting this will have a one-time effect of scrolling the editor to the node at the path and highlighting it. This is a transient effect so it is not necessary to subsequently unset this.
Readonly
nodes: SettingsTreeNodesThe settings tree root nodes. Updates to these will automatically be reflected in the editor UI.
Identifies the semantics of the data being played back, such as which topics or parameters are semantically meaningful or normalization conventions to use. This typically maps to a shorthand identifier for a robotics framework such as "ros1", "ros2", or "ulog". See the MCAP profiles concept at https://github.com/foxglove/mcap/blob/main/docs/specification/appendix.md#well-known-profiles.