@foxglove/embed 0.2.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{cjs/FoxgloveViewer.d.ts → FoxgloveViewer.d.ts} +4 -3
  2. package/dist/FoxgloveViewer.d.ts.map +1 -0
  3. package/dist/{esm/FoxgloveViewer.js → FoxgloveViewer.js} +3 -3
  4. package/dist/FoxgloveViewer.js.map +1 -0
  5. package/dist/{cjs/commands.d.ts → commands.d.ts} +1 -1
  6. package/dist/commands.d.ts.map +1 -0
  7. package/dist/commands.js +1 -0
  8. package/dist/{cjs/commands.js.map → commands.js.map} +1 -1
  9. package/dist/index.d.ts +3 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +4 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/{cjs/layout.generated.d.ts → layout.generated.d.ts} +903 -211
  14. package/dist/layout.generated.d.ts.map +1 -0
  15. package/dist/{esm/layout.generated.js → layout.generated.js} +0 -1
  16. package/dist/layout.generated.js.map +1 -0
  17. package/dist/{cjs/types.d.ts → types.d.ts} +2 -2
  18. package/dist/types.d.ts.map +1 -0
  19. package/dist/types.js +2 -0
  20. package/dist/types.js.map +1 -0
  21. package/package.json +11 -10
  22. package/src/FoxgloveViewer.ts +6 -7
  23. package/src/commands.ts +1 -1
  24. package/src/index.ts +2 -2
  25. package/src/layout.generated.ts +922 -211
  26. package/src/types.ts +2 -2
  27. package/dist/cjs/FoxgloveViewer.d.ts.map +0 -1
  28. package/dist/cjs/FoxgloveViewer.js +0 -307
  29. package/dist/cjs/FoxgloveViewer.js.map +0 -1
  30. package/dist/cjs/commands.d.ts.map +0 -1
  31. package/dist/cjs/commands.js +0 -3
  32. package/dist/cjs/index.d.ts +0 -3
  33. package/dist/cjs/index.d.ts.map +0 -1
  34. package/dist/cjs/index.js +0 -7
  35. package/dist/cjs/index.js.map +0 -1
  36. package/dist/cjs/layout.generated.d.ts.map +0 -1
  37. package/dist/cjs/layout.generated.js +0 -6
  38. package/dist/cjs/layout.generated.js.map +0 -1
  39. package/dist/cjs/types.d.ts.map +0 -1
  40. package/dist/cjs/types.js +0 -5
  41. package/dist/cjs/types.js.map +0 -1
  42. package/dist/esm/FoxgloveViewer.d.ts +0 -141
  43. package/dist/esm/FoxgloveViewer.d.ts.map +0 -1
  44. package/dist/esm/FoxgloveViewer.js.map +0 -1
  45. package/dist/esm/commands.d.ts +0 -48
  46. package/dist/esm/commands.d.ts.map +0 -1
  47. package/dist/esm/commands.js +0 -2
  48. package/dist/esm/commands.js.map +0 -1
  49. package/dist/esm/index.d.ts +0 -3
  50. package/dist/esm/index.d.ts.map +0 -1
  51. package/dist/esm/index.js +0 -4
  52. package/dist/esm/index.js.map +0 -1
  53. package/dist/esm/layout.generated.d.ts +0 -1875
  54. package/dist/esm/layout.generated.d.ts.map +0 -1
  55. package/dist/esm/layout.generated.js.map +0 -1
  56. package/dist/esm/types.d.ts +0 -78
  57. package/dist/esm/types.d.ts.map +0 -1
  58. package/dist/esm/types.js +0 -2
  59. package/dist/esm/types.js.map +0 -1
  60. package/dist/tsconfig.cjs.tsbuildinfo +0 -1
  61. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,1875 +0,0 @@
1
- /**
2
- * This file was automatically generated. DO NOT MODIFY IT BY HAND.
3
- * */
4
- /**
5
- * A value that can be used as a variable in the layout.
6
- *
7
- * This interface was referenced by `Layout`'s JSON-Schema
8
- * via the `definition` "VariableValue".
9
- */
10
- export type VariableValue = boolean | number | string | VariableValue[] | {
11
- [k: string]: VariableValue;
12
- };
13
- /**
14
- * The panel or arrangement of panels comprising the content.
15
- *
16
- * This interface was referenced by `Layout`'s JSON-Schema
17
- * via the `definition` "Content".
18
- */
19
- export type Content = BasePanel | Tabs | Stack | Split;
20
- /**
21
- * Write documentation and notes formatted using Markdown.
22
- *
23
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/markdown).
24
- *
25
- * This interface was referenced by `Layout`'s JSON-Schema
26
- * via the `definition` "MarkdownPanel".
27
- */
28
- export type MarkdownPanel = BasePanel & {
29
- panelType: "Markdown";
30
- config: MarkdownConfig;
31
- /**
32
- * The title of the panel.
33
- */
34
- title?: string;
35
- /**
36
- * The version of the panel config schema.
37
- */
38
- version: 1;
39
- };
40
- /**
41
- * A schema for a generic panel; can be used as a fallback for panels that are not yet supported.
42
- *
43
- * This interface was referenced by `Layout`'s JSON-Schema
44
- * via the `definition` "Panel".
45
- */
46
- export type Panel = BasePanel & {
47
- config?: PanelConfig;
48
- /**
49
- * The title of the panel.
50
- */
51
- title?: string;
52
- };
53
- /**
54
- * Operator used for comparison against message data for state detection
55
- *
56
- * This interface was referenced by `Layout`'s JSON-Schema
57
- * via the `definition` "StateTransitionsRangeCustomStateOperator".
58
- */
59
- export type StateTransitionsRangeCustomStateOperator = "=" | "<" | "<=" | ">" | ">=";
60
- /**
61
- * A range custom state for the customization strategy
62
- *
63
- * This interface was referenced by `Layout`'s JSON-Schema
64
- * via the `definition` "StateTransitionsRangeCustomState".
65
- */
66
- export type StateTransitionsRangeCustomState = StateTransitionsBaseCustomState & {
67
- /**
68
- * Value used for comparison against message data for state detection
69
- */
70
- value?: number;
71
- operator: StateTransitionsRangeCustomStateOperator;
72
- };
73
- /**
74
- * A discrete state customization strategy
75
- *
76
- * This interface was referenced by `Layout`'s JSON-Schema
77
- * via the `definition` "StateTransitionsDiscreteCustomState".
78
- */
79
- export type StateTransitionsDiscreteCustomState = StateTransitionsBaseCustomState & {
80
- /**
81
- * Value used for comparison against message data for state detection. The comparison is done using the '=' operator.
82
- */
83
- value: string;
84
- };
85
- /**
86
- * State customization strategy
87
- *
88
- * This interface was referenced by `Layout`'s JSON-Schema
89
- * via the `definition` "StateTransitionsCustomStates".
90
- */
91
- export type StateTransitionsCustomStates = StateTransitionsRangeCustomStates | StateTransitionsDiscreteCustomStates;
92
- /**
93
- * Timestamp used for message ordering
94
- * - receiveTime: standard timestamp used for playback message ordering across the app
95
- * - customField: any field within the message data containing sec and nsec integers
96
- * - headerStamp: header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field')
97
- * - publishTime: optional MCAP-specific field
98
- *
99
- * This interface was referenced by `Layout`'s JSON-Schema
100
- * via the `definition` "StateTransitionsTimestampMethod".
101
- */
102
- export type StateTransitionsTimestampMethod = "receiveTime" | "publishTime" | "headerStamp" | "customField";
103
- /**
104
- * Position of the playback bar in the view
105
- *
106
- * This interface was referenced by `Layout`'s JSON-Schema
107
- * via the `definition` "StateTransitionsPlaybackBarPosition".
108
- */
109
- export type StateTransitionsPlaybackBarPosition = "center" | "right";
110
- /**
111
- * Configure a sliding or fixed range of time.
112
- * - Automatic: Last 30 seconds for live data, or the full time range for recorded data
113
- * - Sliding: Specify a sliding time window that follows the current playback time
114
- * - Fixed: Set fixed min and max values
115
- *
116
- * This interface was referenced by `Layout`'s JSON-Schema
117
- * via the `definition` "StateTransitionsTimeWindowMode".
118
- */
119
- export type StateTransitionsTimeWindowMode = "automatic" | "sliding" | "fixed";
120
- /**
121
- * Track when values change over time.
122
- *
123
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/state-transitions).
124
- *
125
- * This interface was referenced by `Layout`'s JSON-Schema
126
- * via the `definition` "StateTransitionsPanel".
127
- */
128
- export type StateTransitionsPanel = BasePanel & {
129
- panelType: "StateTransitions";
130
- config: StateTransitionsConfig;
131
- /**
132
- * The title of the panel.
133
- */
134
- title?: string;
135
- /**
136
- * The version of the panel config schema.
137
- */
138
- version: 1;
139
- };
140
- /**
141
- * Plot numerical values over time or other values.
142
- *
143
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/plot).
144
- *
145
- * This interface was referenced by `Layout`'s JSON-Schema
146
- * via the `definition` "PlotPanel".
147
- */
148
- export type PlotPanel = BasePanel & {
149
- panelType: "Plot";
150
- config: PlotConfig;
151
- /**
152
- * The title of the panel.
153
- */
154
- title?: string;
155
- /**
156
- * The version of the panel config schema.
157
- */
158
- version: 1;
159
- };
160
- /**
161
- * Display the transform tree.
162
- *
163
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/tf-tree).
164
- *
165
- * This interface was referenced by `Layout`'s JSON-Schema
166
- * via the `definition` "TransformTreePanel".
167
- */
168
- export type TransformTreePanel = BasePanel & {
169
- panelType: "TransformTree";
170
- /**
171
- * The version of the panel config schema.
172
- */
173
- version: 1;
174
- };
175
- /**
176
- * The direction to use as "up" when loading meshes without orientation info (e.g. STL, OBJ)
177
- *
178
- * This interface was referenced by `Layout`'s JSON-Schema
179
- * via the `definition` "BaseRendererMeshUpAxis".
180
- */
181
- export type BaseRendererMeshUpAxis = "y_up" | "z_up";
182
- /**
183
- * This interface was referenced by `Layout`'s JSON-Schema
184
- * via the `definition` "BaseRendererLayerSettingsTransform".
185
- */
186
- export type BaseRendererLayerSettingsTransform = BaseRendererBaseSettings & {
187
- /**
188
- * @minItems 3
189
- * @maxItems 3
190
- */
191
- xyzOffset?: [number, number, number];
192
- /**
193
- * @minItems 3
194
- * @maxItems 3
195
- */
196
- rpyCoefficient?: [number, number, number];
197
- };
198
- /**
199
- * This interface was referenced by `Layout`'s JSON-Schema
200
- * via the `definition` "BaseRendererCustomLayerSettings".
201
- */
202
- export type BaseRendererCustomLayerSettings = BaseRendererBaseSettings & {
203
- /**
204
- * An identifier for a unique instance of a layer.
205
- */
206
- instanceId?: string;
207
- /**
208
- * An identifier for a type of layer, such as `"foxglove.Grid"`.
209
- */
210
- layerId?: string;
211
- /**
212
- * The label to use for this layer in the settings tree, under "Custom Layers".
213
- */
214
- label?: string;
215
- /**
216
- * Optional value specifying order in the custom layer list
217
- */
218
- order?: number;
219
- };
220
- /**
221
- * Viewport following behavior during playback: fixed, or the pose or position of the display frame
222
- *
223
- * This interface was referenced by `Layout`'s JSON-Schema
224
- * via the `definition` "ThreeDeeFollowMode".
225
- */
226
- export type ThreeDeeFollowMode = "follow-pose" | "follow-position" | "follow-none";
227
- /**
228
- * This interface was referenced by `Layout`'s JSON-Schema
229
- * via the `definition` "ThreeDeePublishClickType".
230
- */
231
- export type ThreeDeePublishClickType = "pose_estimate" | "pose" | "point";
232
- /**
233
- * Configuration for the 3D panel
234
- *
235
- * This interface was referenced by `Layout`'s JSON-Schema
236
- * via the `definition` "ThreeDeeConfig".
237
- */
238
- export type ThreeDeeConfig = BaseRendererConfig & {
239
- cameraState?: ThreeDeeCameraState;
240
- /**
241
- * Coordinate frame that the scene is rendered relative to. The camera position and orientation will be relative to the origin of this frame.
242
- */
243
- followTf?: string;
244
- /**
245
- * The stationary world reference relative to which all other objects in the scene are located. Elements that accumulate over time (for example, point clouds) are stored and displayed in this frame, and in 2D mode the camera faces this frame's x-y plane.
246
- */
247
- fixedFrame?: string;
248
- followMode?: ThreeDeeFollowMode;
249
- /**
250
- * Topic containing location fix data associated with a frame in the scene. Auto will use the first available topic.
251
- */
252
- locationFixTopic?: string;
253
- /**
254
- * Defines the East-North-Up orientation of the scene. Maps and location fixes will be aligned relative to the XY plane of this frame.
255
- */
256
- enuFrameId?: string;
257
- publish?: ThreeDeePublishSettings;
258
- /**
259
- * instanceId -> settings
260
- */
261
- panelOverlays?: {
262
- [k: string]: ThreeDeeOverlaySettings;
263
- };
264
- };
265
- /**
266
- * Display markers, camera images, meshes, URDFs, and more in a 3D scene.
267
- *
268
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/3d).
269
- *
270
- * This interface was referenced by `Layout`'s JSON-Schema
271
- * via the `definition` "ThreeDeePanel".
272
- */
273
- export type ThreeDeePanel = BasePanel & {
274
- panelType: "ThreeDee";
275
- config: ThreeDeeConfig;
276
- /**
277
- * The title of the panel.
278
- */
279
- title?: string;
280
- /**
281
- * The version of the panel config schema.
282
- */
283
- version: 1;
284
- };
285
- /**
286
- * Configuration for the image panel.
287
- *
288
- * This interface was referenced by `Layout`'s JSON-Schema
289
- * via the `definition` "ImageConfig".
290
- */
291
- export type ImageConfig = BaseRendererConfig & {
292
- imageMode?: ImageModeConfig;
293
- };
294
- /**
295
- * Display annotated images.
296
- *
297
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/image).
298
- *
299
- * This interface was referenced by `Layout`'s JSON-Schema
300
- * via the `definition` "ImagePanel".
301
- */
302
- export type ImagePanel = BasePanel & {
303
- panelType: "Image";
304
- config: ImageConfig;
305
- /**
306
- * The title of the panel.
307
- */
308
- title?: string;
309
- /**
310
- * The version of the panel config schema.
311
- */
312
- version: 1;
313
- };
314
- /**
315
- * Play audio streams.
316
- *
317
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/audio).
318
- *
319
- * This interface was referenced by `Layout`'s JSON-Schema
320
- * via the `definition` "AudioPanel".
321
- */
322
- export type AudioPanel = BasePanel & {
323
- panelType: "Audio";
324
- config: AudioConfig;
325
- /**
326
- * The title of the panel.
327
- */
328
- title?: string;
329
- /**
330
- * The version of the panel config schema.
331
- */
332
- version: 1;
333
- };
334
- /**
335
- * Display a summary of all ROS DiagnosticArray messages.
336
- *
337
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/diagnostics).
338
- *
339
- * This interface was referenced by `Layout`'s JSON-Schema
340
- * via the `definition` "DiagnosticsSummaryPanel".
341
- */
342
- export type DiagnosticsSummaryPanel = BasePanel & {
343
- panelType: "DiagnosticsSummary";
344
- config: DiagnosticsSummaryConfig;
345
- /**
346
- * The title of the panel.
347
- */
348
- title?: string;
349
- /**
350
- * The version of the panel config schema.
351
- */
352
- version: 1;
353
- };
354
- /**
355
- * Display ROS DiagnosticArray messages for a specific hardware_id.
356
- *
357
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/diagnostics).
358
- *
359
- * This interface was referenced by `Layout`'s JSON-Schema
360
- * via the `definition` "DiagnosticsDetailPanel".
361
- */
362
- export type DiagnosticsDetailPanel = BasePanel & {
363
- panelType: "DiagnosticsDetail";
364
- config: DiagnosticsDetailConfig;
365
- /**
366
- * The title of the panel.
367
- */
368
- title?: string;
369
- /**
370
- * The version of the panel config schema.
371
- */
372
- version: 1;
373
- };
374
- /**
375
- * Display a colored and/or textual indicator based on a threshold value.
376
- *
377
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/indicator).
378
- *
379
- * This interface was referenced by `Layout`'s JSON-Schema
380
- * via the `definition` "IndicatorPanel".
381
- */
382
- export type IndicatorPanel = BasePanel & {
383
- panelType: "Indicator";
384
- config: IndicatorConfig;
385
- /**
386
- * The title of the panel.
387
- */
388
- title?: string;
389
- /**
390
- * The version of the panel config schema.
391
- */
392
- version: 1;
393
- };
394
- /**
395
- * Display a colored gauge based on a continuous value.
396
- *
397
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/gauge).
398
- *
399
- * This interface was referenced by `Layout`'s JSON-Schema
400
- * via the `definition` "GaugePanel".
401
- */
402
- export type GaugePanel = BasePanel & {
403
- panelType: "Gauge";
404
- config: GaugeConfig;
405
- /**
406
- * The title of the panel.
407
- */
408
- title?: string;
409
- /**
410
- * The version of the panel config schema.
411
- */
412
- version: 1;
413
- };
414
- /**
415
- * Teleoperate a robot over a live connection.
416
- *
417
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/teleop).
418
- *
419
- * This interface was referenced by `Layout`'s JSON-Schema
420
- * via the `definition` "TeleopPanel".
421
- */
422
- export type TeleopPanel = BasePanel & {
423
- panelType: "Teleop";
424
- config: TeleopConfig;
425
- /**
426
- * The title of the panel.
427
- */
428
- title?: string;
429
- /**
430
- * The version of the panel config schema.
431
- */
432
- version: 1;
433
- };
434
- /**
435
- * Display points on a map.
436
- *
437
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/map).
438
- *
439
- * This interface was referenced by `Layout`'s JSON-Schema
440
- * via the `definition` "MapPanel".
441
- */
442
- export type MapPanel = BasePanel & {
443
- panelType: "Map";
444
- config: MapConfig;
445
- /**
446
- * The title of the panel.
447
- */
448
- title?: string;
449
- /**
450
- * The version of the panel config schema.
451
- */
452
- version: 1;
453
- };
454
- /**
455
- * Read and set parameters for a data source.
456
- *
457
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/parameters).
458
- *
459
- * This interface was referenced by `Layout`'s JSON-Schema
460
- * via the `definition` "ParametersPanel".
461
- */
462
- export type ParametersPanel = BasePanel & {
463
- panelType: "Parameters";
464
- /**
465
- * The version of the panel config schema.
466
- */
467
- version: 1;
468
- };
469
- /**
470
- * Publish messages to the data source (live connections only).
471
- *
472
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/publish).
473
- *
474
- * This interface was referenced by `Layout`'s JSON-Schema
475
- * via the `definition` "PublishPanel".
476
- */
477
- export type PublishPanel = BasePanel & {
478
- panelType: "Publish";
479
- config: PublishConfig;
480
- /**
481
- * The title of the panel.
482
- */
483
- title?: string;
484
- /**
485
- * The version of the panel config schema.
486
- */
487
- version: 1;
488
- };
489
- /**
490
- * Call a service and view the service call result.
491
- *
492
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/service-call).
493
- *
494
- * This interface was referenced by `Layout`'s JSON-Schema
495
- * via the `definition` "ServiceCallPanel".
496
- */
497
- export type ServiceCallPanel = BasePanel & {
498
- panelType: "ServiceCall";
499
- config: ServiceCallConfig;
500
- /**
501
- * The title of the panel.
502
- */
503
- title?: string;
504
- /**
505
- * The version of the panel config schema.
506
- */
507
- version: 1;
508
- };
509
- /**
510
- * Inspect topic messages.
511
- *
512
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/raw-messages).
513
- *
514
- * This interface was referenced by `Layout`'s JSON-Schema
515
- * via the `definition` "RawMessagesPanel".
516
- */
517
- export type RawMessagesPanel = BasePanel & {
518
- panelType: "RawMessages";
519
- config: RawMessagesConfig;
520
- /**
521
- * The version of the panel config schema.
522
- */
523
- version: 1;
524
- };
525
- /**
526
- * Display logs by node and severity level.
527
- *
528
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/log).
529
- *
530
- * This interface was referenced by `Layout`'s JSON-Schema
531
- * via the `definition` "LogPanel".
532
- */
533
- export type LogPanel = BasePanel & {
534
- panelType: "Log";
535
- config: LogConfig;
536
- /**
537
- * The title of the panel.
538
- */
539
- title?: string;
540
- /**
541
- * The version of the panel config schema.
542
- */
543
- version: 1;
544
- };
545
- /**
546
- * Display topic messages in a tabular format.
547
- *
548
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/table).
549
- *
550
- * This interface was referenced by `Layout`'s JSON-Schema
551
- * via the `definition` "TablePanel".
552
- */
553
- export type TablePanel = BasePanel & {
554
- panelType: "Table";
555
- config: TableConfig;
556
- /**
557
- * The version of the panel config schema.
558
- */
559
- version: 1;
560
- };
561
- /**
562
- * Display a graph of active nodes, topics, and services.
563
- *
564
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/topic-graph).
565
- *
566
- * This interface was referenced by `Layout`'s JSON-Schema
567
- * via the `definition` "TopicGraphPanel".
568
- */
569
- export type TopicGraphPanel = BasePanel & {
570
- panelType: "TopicGraph";
571
- /**
572
- * The version of the panel config schema.
573
- */
574
- version: 1;
575
- };
576
- /**
577
- * View details like topics and timestamps for the current data source.
578
- *
579
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/data-source-info).
580
- *
581
- * This interface was referenced by `Layout`'s JSON-Schema
582
- * via the `definition` "DataSourceInfoPanel".
583
- */
584
- export type DataSourceInfoPanel = BasePanel & {
585
- panelType: "DataSourceInfo";
586
- /**
587
- * The version of the panel config schema.
588
- */
589
- version: 1;
590
- };
591
- /**
592
- * Update numerical variable values for a layout.
593
- *
594
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/variable-slider).
595
- *
596
- * This interface was referenced by `Layout`'s JSON-Schema
597
- * via the `definition` "VariableSliderPanel".
598
- */
599
- export type VariableSliderPanel = BasePanel & {
600
- panelType: "VariableSlider";
601
- config: VariableSliderConfig;
602
- /**
603
- * The title of the panel.
604
- */
605
- title?: string;
606
- /**
607
- * The version of the panel config schema.
608
- */
609
- version: 1;
610
- };
611
- /**
612
- * Write custom data transformations in TypeScript.
613
- *
614
- * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/user-scripts).
615
- *
616
- * This interface was referenced by `Layout`'s JSON-Schema
617
- * via the `definition` "UserScriptsPanel".
618
- */
619
- export type UserScriptsPanel = BasePanel & {
620
- panelType: "UserScripts";
621
- config: UserScriptsConfig;
622
- /**
623
- * The title of the panel.
624
- */
625
- title?: string;
626
- /**
627
- * The version of the panel config schema.
628
- */
629
- version: 1;
630
- };
631
- /**
632
- * A Foxglove layout, which describes the arrangement of panels and their configuration.
633
- */
634
- export type Layout = {
635
- /**
636
- * The version of the Layout schema used to create this layout. This is used to ensure backwards compatibility with previous versions of the schema.
637
- */
638
- version: 1;
639
- variables?: Variables;
640
- userScripts?: UserScripts;
641
- content: Content;
642
- };
643
- /**
644
- * A dictionary of variable values available in panels, message paths, user scripts, and extensions.
645
- *
646
- * This interface was referenced by `Layout`'s JSON-Schema
647
- * via the `definition` "Variables".
648
- */
649
- export type Variables = {
650
- [k: string]: VariableValue;
651
- };
652
- /**
653
- * A dictionary of user scripts available in the layout, indexed by their ID.
654
- *
655
- * This interface was referenced by `Layout`'s JSON-Schema
656
- * via the `definition` "UserScripts".
657
- */
658
- export type UserScripts = {
659
- [k: string]: UserScript;
660
- };
661
- /**
662
- * This interface was referenced by `Layout`'s JSON-Schema
663
- * via the `definition` "UserScript".
664
- */
665
- export type UserScript = {
666
- /**
667
- * The name of the user script.
668
- */
669
- name: string;
670
- /**
671
- * The source code of the user script.
672
- */
673
- sourceCode: string;
674
- };
675
- /**
676
- * The base panel schema for all panels; defines the minimum required properties for all panels.
677
- *
678
- * This interface was referenced by `Layout`'s JSON-Schema
679
- * via the `definition` "BasePanel".
680
- */
681
- export type BasePanel = {
682
- type: "panel";
683
- /**
684
- * A unique identifier for the panel type.
685
- */
686
- panelType: string;
687
- config?: unknown;
688
- title?: unknown;
689
- /**
690
- * The version of the panel config schema.
691
- */
692
- version: number;
693
- };
694
- /**
695
- * A container for quickly switching between different groups of panels using a tab bar.
696
- *
697
- * This interface was referenced by `Layout`'s JSON-Schema
698
- * via the `definition` "Tabs".
699
- */
700
- export type Tabs = {
701
- type: "tabs";
702
- /**
703
- * The 0-based index of the tab that is selected. Defaults to 0.
704
- */
705
- selectedTabIndex?: number;
706
- /**
707
- * The tabs to display in the container.
708
- */
709
- tabs: Tab[];
710
- };
711
- /**
712
- * A tab in a tabs container.
713
- *
714
- * This interface was referenced by `Layout`'s JSON-Schema
715
- * via the `definition` "Tab".
716
- */
717
- export type Tab = {
718
- /**
719
- * The title of the tab.
720
- */
721
- title: string;
722
- content: Content;
723
- };
724
- /**
725
- * A container for a vertically-scrollable stack of panels.
726
- *
727
- * This interface was referenced by `Layout`'s JSON-Schema
728
- * via the `definition` "Stack".
729
- */
730
- export type Stack = {
731
- type: "stack";
732
- /**
733
- * The panels to display in the stack.
734
- */
735
- panels: StackItem[];
736
- /**
737
- * The title of the stack.
738
- */
739
- title?: string;
740
- };
741
- /**
742
- * An item in the stack, includes the panel and the height of the item.
743
- *
744
- * This interface was referenced by `Layout`'s JSON-Schema
745
- * via the `definition` "StackItem".
746
- */
747
- export type StackItem = {
748
- panel: BasePanel;
749
- /**
750
- * Size is a number greater than 0 that represents a proportion of the height of the stack container; e.g., 0.5 is 50% of the height of the stack container, and 1 is 100% of the height of it.
751
- */
752
- size: number;
753
- };
754
- /**
755
- * A sequence of items displayed in a vertical or horizontal direction. Items are placed one next to the other (or one above the other for vertical direction), with space allocated according to their ratios.
756
- *
757
- * This interface was referenced by `Layout`'s JSON-Schema
758
- * via the `definition` "Split".
759
- */
760
- export type Split = {
761
- type: "split";
762
- /**
763
- * The direction in which items are displayed in the list. Defaults to horizontal.
764
- */
765
- direction: "vertical" | "horizontal";
766
- /**
767
- * The items to display in the split container.
768
- *
769
- * @minItems 1
770
- */
771
- items: [SplitItem, ...SplitItem[]];
772
- };
773
- /**
774
- * An item in a layout with a ratio for space allocation.
775
- *
776
- * The ratio determines the proportion of space this item takes up. The direction of the Split container determines whether the ratio applies to width (horizontal) or height (vertical).
777
- * For example, if a split has 3 items with ratios 1, 2, and 3, the first item takes 1/6 of the space,
778
- * the second item takes 2/6, and the third item takes 3/6.
779
- *
780
- * This interface was referenced by `Layout`'s JSON-Schema
781
- * via the `definition` "SplitItem".
782
- */
783
- export type SplitItem = {
784
- /**
785
- * Proportion of space this item occupies relative to other items in the split. The actual space allocated is calculated by dividing this item's ratio by the sum of all ratios in the split. The ratio must be greater than 0.
786
- */
787
- ratio: number;
788
- content: Content;
789
- };
790
- /**
791
- * This interface was referenced by `Layout`'s JSON-Schema
792
- * via the `definition` "MarkdownConfig".
793
- */
794
- export type MarkdownConfig = {
795
- /**
796
- * Sets the base font size for the Markdown renderer.
797
- */
798
- fontSize?: number;
799
- /**
800
- * The markdown content to display.
801
- */
802
- markdown?: string;
803
- };
804
- /**
805
- * A dictionary of configuration properties for the panel.
806
- *
807
- * This interface was referenced by `Layout`'s JSON-Schema
808
- * via the `definition` "PanelConfig".
809
- */
810
- export type PanelConfig = {
811
- [k: string]: unknown;
812
- };
813
- /**
814
- * Display options for a discrete or continuous custom state
815
- *
816
- * This interface was referenced by `Layout`'s JSON-Schema
817
- * via the `definition` "StateTransitionsBaseCustomState".
818
- */
819
- export type StateTransitionsBaseCustomState = {
820
- label?: string;
821
- color?: string;
822
- };
823
- /**
824
- * Range state customization strategy.
825
- *
826
- * This interface was referenced by `Layout`'s JSON-Schema
827
- * via the `definition` "StateTransitionsRangeCustomStates".
828
- */
829
- export type StateTransitionsRangeCustomStates = {
830
- type: "range";
831
- /**
832
- * The list of range states to display in the panel.
833
- */
834
- states: StateTransitionsRangeCustomState[];
835
- otherwise: StateTransitionsBaseCustomState;
836
- };
837
- /**
838
- * Discrete state customization strategy
839
- *
840
- * This interface was referenced by `Layout`'s JSON-Schema
841
- * via the `definition` "StateTransitionsDiscreteCustomStates".
842
- */
843
- export type StateTransitionsDiscreteCustomStates = {
844
- type: "discrete";
845
- /**
846
- * The list of discrete states to display in the panel.
847
- */
848
- states: StateTransitionsDiscreteCustomState[];
849
- };
850
- /**
851
- * A series to display in the panel.
852
- *
853
- * This interface was referenced by `Layout`'s JSON-Schema
854
- * via the `definition` "StateTransitionsSeries".
855
- */
856
- export type StateTransitionsSeries = {
857
- /**
858
- * Message path containing values for the series
859
- */
860
- value: string;
861
- /**
862
- * Label displayed in the legend for the series
863
- */
864
- label?: string;
865
- /**
866
- * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
867
- */
868
- enabled?: boolean;
869
- timestampMethod: StateTransitionsTimestampMethod;
870
- /**
871
- * Message path containing a timestamp field on the same topic as the y-value path
872
- */
873
- timestampPath?: string;
874
- customStates?: StateTransitionsCustomStates;
875
- };
876
- /**
877
- * Configuration for the State Transitions panel.
878
- *
879
- * This interface was referenced by `Layout`'s JSON-Schema
880
- * via the `definition` "StateTransitionsConfig".
881
- */
882
- export type StateTransitionsConfig = {
883
- /**
884
- * The list of series to display in the panel.
885
- */
886
- paths: StateTransitionsSeries[];
887
- /**
888
- * Sync zooming and panning with other plots
889
- */
890
- isSynced: boolean;
891
- /**
892
- * Minimum time value to display (in seconds)
893
- */
894
- xAxisMaxValue?: number;
895
- /**
896
- * Maximum time value to display (in seconds)
897
- */
898
- xAxisMinValue?: number;
899
- /**
900
- * Time range in seconds
901
- */
902
- xAxisRange?: number;
903
- /**
904
- * Label displayed along the time axis
905
- */
906
- xAxisLabel?: string;
907
- timeWindowMode?: StateTransitionsTimeWindowMode;
908
- playbackBarPosition?: StateTransitionsPlaybackBarPosition;
909
- /**
910
- * Show a point for each incoming message
911
- */
912
- showPoints?: boolean;
913
- };
914
- /**
915
- * This interface was referenced by `Layout`'s JSON-Schema
916
- * via the `definition` "PlotSeries".
917
- */
918
- export type PlotSeries = {
919
- /**
920
- * Message path containing y-axis values for the series
921
- */
922
- value: string;
923
- /**
924
- * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
925
- */
926
- enabled: boolean;
927
- /**
928
- * A unique identifier for the series.
929
- */
930
- id?: string;
931
- /**
932
- * Color used to plot the series
933
- */
934
- color?: string;
935
- /**
936
- * Label displayed for the series in the legend
937
- */
938
- label?: string;
939
- /**
940
- * For Timestamp plots, set which source of time information is used for message ordering:
941
- * - receiveTime is the standard timestamp used for playback message ordering across the app. For live connections, this is when the message was received; for recorded files, this is when the message was originally recorded
942
- * - customField is a message path which can point to any field within the message data containing sec and nsec integers
943
- * - headerStamp is a header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field', above). This typically represents when sensor data was captured
944
- * - publishTime is an optional MCAP-specific field representing when the event occured
945
- */
946
- timestampMethod: "receiveTime" | "publishTime" | "headerStamp" | "customField";
947
- /**
948
- * Message path containing a timestamp field on the same topic as the y-value path
949
- */
950
- timestampPath?: string;
951
- /**
952
- * Show line connecting data points. (Not applicable to reference lines.)
953
- */
954
- showLine?: boolean;
955
- /**
956
- * Width of line connecting data points
957
- */
958
- lineSize?: number;
959
- /**
960
- * For Message path plots: message path containing x-axis values for the series. Overrides default x-axis values if set.
961
- */
962
- xValuePath?: string;
963
- };
964
- /**
965
- * For path-based values: the message path containing default x-axis values for the series. You can also set these individually for each series.
966
- *
967
- * This interface was referenced by `Layout`'s JSON-Schema
968
- * via the `definition` "PlotXAxisPath".
969
- */
970
- export type PlotXAxisPath = {
971
- /**
972
- * Message path containing y-axis values for the series
973
- */
974
- value: string;
975
- /**
976
- * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
977
- */
978
- enabled: boolean;
979
- };
980
- /**
981
- * Configuration for the Plot panel.
982
- *
983
- * This interface was referenced by `Layout`'s JSON-Schema
984
- * via the `definition` "PlotConfig".
985
- */
986
- export type PlotConfig = {
987
- /**
988
- * The list of series to display in the panel.
989
- */
990
- paths: PlotSeries[];
991
- /**
992
- * For Fixed time window: min value in seconds
993
- */
994
- minXValue?: number;
995
- /**
996
- * For Fixed time window: max value in seconds
997
- */
998
- maxXValue?: number;
999
- /**
1000
- * Fixed minimum value for y-axis
1001
- */
1002
- minYValue?: string | number;
1003
- /**
1004
- * Fixed maximum value for y-axis
1005
- */
1006
- maxYValue?: string | number;
1007
- /**
1008
- * Display the legend
1009
- */
1010
- showLegend: boolean;
1011
- /**
1012
- * Position of the legend in relation to the chart
1013
- */
1014
- legendDisplay: "floating" | "top" | "left";
1015
- /**
1016
- * Show the corresponding y value next to each series in the legend (either at the current playback time or at a point on user hover)
1017
- */
1018
- showPlotValuesInLegend: boolean;
1019
- /**
1020
- * Whether or not to display numeric values for x-axis tick marks
1021
- */
1022
- showXAxisLabels: boolean;
1023
- /**
1024
- * Whether or not to display numeric values for y-axis tick marks
1025
- */
1026
- showYAxisLabels: boolean;
1027
- /**
1028
- * For Timestamp plots: Sync timeline to other Plot and State Transitions panels.
1029
- */
1030
- isSynced: boolean;
1031
- /**
1032
- * Type and source of data for values plotted on the x-axis:
1033
- * - Timestamp: x-values for time series data
1034
- * - Message path: numeric message fields for XY plots
1035
- * - Array index: integer indices of an array in the latest message
1036
- */
1037
- xAxisVal: "timestamp" | "index" | "custom" | "currentCustom";
1038
- /**
1039
- * For Message path plots:
1040
- * - All shows data from the full time range
1041
- * - Latest shows data from the most recent message.
1042
- */
1043
- timeRange?: "all" | "latest";
1044
- xAxisPath?: PlotXAxisPath;
1045
- /**
1046
- * Label displayed for the x-axis
1047
- */
1048
- xAxisLabel?: string;
1049
- /**
1050
- * For Timestamp plots:
1051
- * - Automatic Last 30 seconds for live data, or the full time range for recorded data
1052
- * - Sliding Specify a sliding time window that follows the current playback time
1053
- * - Fixed Set fixed min and max values for the time axis
1054
- */
1055
- timeWindowMode?: "automatic" | "sliding" | "fixed";
1056
- /**
1057
- * For Sliding time window: either at the center or the right edge
1058
- */
1059
- playbackBarPosition?: "center" | "right";
1060
- /**
1061
- * Label displayed for the y-axis
1062
- */
1063
- yAxisLabel?: string;
1064
- /**
1065
- * For Sliding time window: range of time in seconds
1066
- */
1067
- followingViewWidth?: number;
1068
- /**
1069
- * Size of the legend in pixels, when the legend position is Left or Top
1070
- */
1071
- sidebarDimension: number;
1072
- /**
1073
- * For Message path plots:
1074
- * - Independent (the default) lets you configure min and max values for the scales independently.
1075
- * - 1:1 is useful for when axes have the same units, and will keep the scales locked together. It hides the min/max axis settings and always zooms both axes simultaneously.
1076
- */
1077
- axisScalesMode?: "independent" | "lockedScales";
1078
- };
1079
- /**
1080
- * This interface was referenced by `Layout`'s JSON-Schema
1081
- * via the `definition` "BaseRendererBaseSettings".
1082
- */
1083
- export type BaseRendererBaseSettings = {
1084
- /**
1085
- * true means the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. false means the grid is rendered normally.
1086
- */
1087
- drawBehind?: boolean;
1088
- /**
1089
- * Whether this renderable should be displayed in the scene.
1090
- */
1091
- visible?: boolean;
1092
- /**
1093
- * true means the grid is locked to the frame specified by its frame_id, and will move as that frame's transforms change. false means the grid is relative to the fixed frame and will not move after it is first displayed.
1094
- */
1095
- frameLocked?: boolean;
1096
- };
1097
- /**
1098
- * Scene settings for the currently rendering scene
1099
- *
1100
- * This interface was referenced by `Layout`'s JSON-Schema
1101
- * via the `definition` "BaseRendererSceneSettings".
1102
- */
1103
- export type BaseRendererSceneSettings = {
1104
- /**
1105
- * Display rendering performance statistics in panel
1106
- */
1107
- enableStats?: boolean;
1108
- /**
1109
- * Background color of the scene
1110
- */
1111
- backgroundColor?: string;
1112
- /**
1113
- * Scale factor to apply to all rendered labels
1114
- */
1115
- labelScaleFactor?: number;
1116
- /**
1117
- * Match the behavior of RViz by ignoring the <up_axis> tag in COLLADA files
1118
- */
1119
- ignoreColladaUpAxis?: boolean;
1120
- meshUpAxis?: BaseRendererMeshUpAxis;
1121
- transforms?: BaseRendererTransforms;
1122
- /**
1123
- * Sync the camera with other panels that also have this setting enabled
1124
- */
1125
- syncCamera?: boolean;
1126
- };
1127
- /**
1128
- * Transform settings for the currently rendering scene
1129
- *
1130
- * This interface was referenced by `Layout`'s JSON-Schema
1131
- * via the `definition` "BaseRendererTransforms".
1132
- */
1133
- export type BaseRendererTransforms = {
1134
- /**
1135
- * Toggle visibility of all frames
1136
- */
1137
- visible?: boolean;
1138
- /**
1139
- * Toggle translation and rotation offset controls for frames
1140
- */
1141
- editable?: boolean;
1142
- /**
1143
- * Toggle visibility of frame axis labels
1144
- */
1145
- showLabel?: boolean;
1146
- /**
1147
- * Size of frame axis labels
1148
- */
1149
- labelSize?: number;
1150
- /**
1151
- * Size of coordinate frame axes
1152
- */
1153
- axisSize?: number;
1154
- /**
1155
- * Width of the connecting line between child and parent frames
1156
- */
1157
- lineWidth?: number;
1158
- /**
1159
- * Color of the connecting line between child and parent frames
1160
- */
1161
- lineColor?: string;
1162
- /**
1163
- * Enable transform preloading
1164
- */
1165
- enablePreloading?: boolean;
1166
- /**
1167
- * Whether to draw the frames behind the rest of the scene
1168
- */
1169
- drawBehind?: boolean;
1170
- };
1171
- /**
1172
- * Base configuration for the 3D and Image panels
1173
- *
1174
- * This interface was referenced by `Layout`'s JSON-Schema
1175
- * via the `definition` "BaseRendererConfig".
1176
- */
1177
- export type BaseRendererConfig = {
1178
- scene?: BaseRendererSceneSettings;
1179
- /**
1180
- * frameId -> settings
1181
- */
1182
- transforms?: {
1183
- [k: string]: BaseRendererLayerSettingsTransform;
1184
- };
1185
- /**
1186
- * Settings for layers in the scene, indexed by instanceId.
1187
- */
1188
- layers?: {
1189
- [k: string]: BaseRendererCustomLayerSettings;
1190
- };
1191
- /**
1192
- * Settings for topics, indexed by topicName
1193
- */
1194
- topics?: {
1195
- [k: string]: BaseRendererBaseSettings;
1196
- };
1197
- };
1198
- /**
1199
- * Camera settings for the currently rendering scene
1200
- *
1201
- * This interface was referenced by `Layout`'s JSON-Schema
1202
- * via the `definition` "ThreeDeeCameraState".
1203
- */
1204
- export type ThreeDeeCameraState = {
1205
- /**
1206
- * Camera distance from the origin of the display frame
1207
- */
1208
- distance?: number;
1209
- /**
1210
- * Toggles between 3D and 2D views of the scene. The 2D view looks down the z-axis of the fixed frame and flattens the scene against its x-y plane.
1211
- */
1212
- perspective?: boolean;
1213
- /**
1214
- * Polar angle offset from the origin of the display frame in degrees
1215
- */
1216
- phi?: number;
1217
- /**
1218
- * @minItems 3
1219
- * @maxItems 3
1220
- */
1221
- target?: [number, number, number];
1222
- /**
1223
- * Translational offset from the origin of the display frame
1224
- *
1225
- * @minItems 3
1226
- * @maxItems 3
1227
- */
1228
- targetOffset?: [number, number, number];
1229
- /**
1230
- * @minItems 4
1231
- * @maxItems 4
1232
- */
1233
- targetOrientation?: [number, number, number, number];
1234
- /**
1235
- * Azimuthal angle offset from the origin of the display frame in degrees
1236
- */
1237
- thetaOffset?: number;
1238
- /**
1239
- * Vertical field of view in degrees
1240
- */
1241
- fovy?: number;
1242
- /**
1243
- * Near clipping plane distance
1244
- */
1245
- near?: number;
1246
- /**
1247
- * Far clipping plane distance
1248
- */
1249
- far?: number;
1250
- /**
1251
- * Enable logarithmic depth buffer for more uniform depth precision. May result in rendering artifacts or performance degradation.
1252
- */
1253
- logDepth?: boolean;
1254
- };
1255
- /**
1256
- * Publish settings for the currently rendering scene
1257
- *
1258
- * This interface was referenced by `Layout`'s JSON-Schema
1259
- * via the `definition` "ThreeDeePublishSettings".
1260
- */
1261
- export type ThreeDeePublishSettings = {
1262
- type?: ThreeDeePublishClickType;
1263
- /**
1264
- * The topic on which to publish
1265
- */
1266
- poseTopic?: string;
1267
- /**
1268
- * The topic on which to publish
1269
- */
1270
- pointTopic?: string;
1271
- /**
1272
- * The topic on which to publish
1273
- */
1274
- poseEstimateTopic?: string;
1275
- /**
1276
- * The X standard deviation to publish with pose estimates
1277
- */
1278
- poseEstimateXDeviation?: number;
1279
- /**
1280
- * The Y standard deviation to publish with pose estimates
1281
- */
1282
- poseEstimateYDeviation?: number;
1283
- /**
1284
- * The theta standard deviation to publish with pose estimates
1285
- */
1286
- poseEstimateThetaDeviation?: number;
1287
- };
1288
- /**
1289
- * This interface was referenced by `Layout`'s JSON-Schema
1290
- * via the `definition` "ThreeDeeOverlaySettings".
1291
- */
1292
- export type ThreeDeeOverlaySettings = {
1293
- visible?: boolean;
1294
- };
1295
- /**
1296
- * This interface was referenced by `Layout`'s JSON-Schema
1297
- * via the `definition` "ImageAnnotationSettings".
1298
- */
1299
- export type ImageAnnotationSettings = {
1300
- /**
1301
- * Whether to display the annotation.
1302
- */
1303
- visible?: boolean;
1304
- };
1305
- /**
1306
- * This interface was referenced by `Layout`'s JSON-Schema
1307
- * via the `definition` "ImageModeConfig".
1308
- */
1309
- export type ImageModeConfig = {
1310
- /**
1311
- * Camera image or video topic to display.
1312
- */
1313
- imageTopic?: string;
1314
- /**
1315
- * Message schema to display
1316
- */
1317
- imageSchemaName?: string;
1318
- /**
1319
- * Calibration topic to use for distortion and 3D markers
1320
- */
1321
- calibrationTopic?: string;
1322
- /**
1323
- * Settings for the image annotations, indexed by topicName
1324
- */
1325
- annotations?: {
1326
- [k: string]: ImageAnnotationSettings;
1327
- };
1328
- /**
1329
- * Display annotations only when their messages' timestamps match
1330
- */
1331
- synchronize?: boolean;
1332
- /**
1333
- * Amount of image rotation
1334
- */
1335
- rotation?: 0 | 90 | 180 | 270;
1336
- /**
1337
- * Flip image across the vertical axis
1338
- */
1339
- flipHorizontal?: boolean;
1340
- /**
1341
- * Flip image across the horizontal axis
1342
- */
1343
- flipVertical?: boolean;
1344
- /**
1345
- * Minimum (black) value for single-channel images.
1346
- */
1347
- minValue?: number;
1348
- /**
1349
- * Maximum (white) value for single-channel images.
1350
- */
1351
- maxValue?: number;
1352
- /**
1353
- * Video decoder
1354
- */
1355
- videoDecoder?: string;
1356
- /**
1357
- * Whether to rectify (undistort) the image. If turned off, images will be displayed as is and 3D topic visualization will be disabled.
1358
- */
1359
- rectifyImage?: boolean;
1360
- };
1361
- /**
1362
- * Configuration for the Audio panel.
1363
- *
1364
- * This interface was referenced by `Layout`'s JSON-Schema
1365
- * via the `definition` "AudioConfig".
1366
- */
1367
- export type AudioConfig = {
1368
- /**
1369
- * Color of the audio waveform visualization
1370
- */
1371
- color?: string;
1372
- /**
1373
- * Mute audio playback
1374
- */
1375
- muted?: boolean;
1376
- /**
1377
- * Topic containing audio messages
1378
- */
1379
- topic?: string;
1380
- /**
1381
- * Audio playback volume
1382
- */
1383
- volume?: number;
1384
- /**
1385
- * Time range in seconds for the sliding window (live sources only)
1386
- */
1387
- slidingViewWidth?: number;
1388
- };
1389
- /**
1390
- * Configuration for the Diagnostic Summary panel.
1391
- *
1392
- * This interface was referenced by `Layout`'s JSON-Schema
1393
- * via the `definition` "DiagnosticsSummaryConfig".
1394
- */
1395
- export type DiagnosticsSummaryConfig = {
1396
- /**
1397
- * Minimum level of diagnostic messages to display
1398
- */
1399
- minLevel: number;
1400
- /**
1401
- * List of diagnostic IDs to pin to the top of the list. The format is `|hardware_id|name|` or `|hardware_id|` for a hardware ID without a name.
1402
- */
1403
- pinnedIds: string[];
1404
- /**
1405
- * ROS DiagnosticArray topic to subscribe to
1406
- */
1407
- topicToRender: string;
1408
- /**
1409
- * Fuzzy filter entries by hardware ID and node names
1410
- */
1411
- hardwareIdFilter: string;
1412
- /**
1413
- * Sort visible nodes by level
1414
- */
1415
- sortByLevel?: boolean;
1416
- /**
1417
- * Number of seconds after which entries will be marked as stale if no new messages are received
1418
- */
1419
- secondsUntilStale?: number;
1420
- };
1421
- /**
1422
- * Configuration for the Diagnostic Detail panel.
1423
- *
1424
- * This interface was referenced by `Layout`'s JSON-Schema
1425
- * via the `definition` "DiagnosticsDetailConfig".
1426
- */
1427
- export type DiagnosticsDetailConfig = {
1428
- /**
1429
- * The hardware ID of the diagnostic node to display
1430
- */
1431
- selectedHardwareId?: string;
1432
- /**
1433
- * The name of the diagnostic node to display
1434
- */
1435
- selectedName?: string;
1436
- /**
1437
- * The fraction of the panel to split between the diagnostic node and the diagnostic status
1438
- */
1439
- splitFraction?: number;
1440
- /**
1441
- * ROS DiagnosticArray topic to subscribe to
1442
- */
1443
- topicToRender: string;
1444
- /**
1445
- * Number of decimal places to display for numeric values
1446
- */
1447
- numericPrecision?: number;
1448
- /**
1449
- * Number of seconds after which entries will be marked as stale if no new messages are received
1450
- */
1451
- secondsUntilStale?: number;
1452
- };
1453
- /**
1454
- * A rule to determine what the indicator should display
1455
- *
1456
- * This interface was referenced by `Layout`'s JSON-Schema
1457
- * via the `definition` "IndicatorRule".
1458
- */
1459
- export type IndicatorRule = {
1460
- /**
1461
- * Value to compare against
1462
- */
1463
- rawValue: string;
1464
- /**
1465
- * Operator to use for the indicator rule
1466
- */
1467
- operator: "=" | "<" | "<=" | ">" | ">=";
1468
- /**
1469
- * Color to use when the rule matches
1470
- */
1471
- color: string;
1472
- /**
1473
- * Label to use when the rule matches
1474
- */
1475
- label: string;
1476
- };
1477
- /**
1478
- * Configuration for the Indicator panel.
1479
- *
1480
- * This interface was referenced by `Layout`'s JSON-Schema
1481
- * via the `definition` "IndicatorConfig".
1482
- */
1483
- export type IndicatorConfig = {
1484
- /**
1485
- * Message path to the data
1486
- */
1487
- path: string;
1488
- /**
1489
- * Style of indicator to display
1490
- */
1491
- style: "bulb" | "background";
1492
- /**
1493
- * Font size of the indicator
1494
- */
1495
- fontSize?: number;
1496
- /**
1497
- * Range rules list to determine what the indicator should display, evaluated in order of precedence
1498
- */
1499
- rules: IndicatorRule[];
1500
- /**
1501
- * Color to use when no other rules match
1502
- */
1503
- fallbackColor: string;
1504
- /**
1505
- * Label to use when no other rules match
1506
- */
1507
- fallbackLabel: string;
1508
- };
1509
- /**
1510
- * Configuration for the Gauge panel.
1511
- *
1512
- * This interface was referenced by `Layout`'s JSON-Schema
1513
- * via the `definition` "GaugeConfig".
1514
- */
1515
- export type GaugeConfig = {
1516
- /**
1517
- * Message path containing a numeric value (or string value that can be coerced to a numeric value)
1518
- */
1519
- path: string;
1520
- /**
1521
- * Minimum value for the gauge
1522
- */
1523
- minValue: number;
1524
- /**
1525
- * Maximum value for the gauge
1526
- */
1527
- maxValue: number;
1528
- /**
1529
- * Type of gradient to use for the gauge
1530
- */
1531
- colorMode: "colormap" | "gradient";
1532
- /**
1533
- * Preset gradients for the gauge
1534
- */
1535
- colorMap: "red-yellow-green" | "rainbow" | "turbo";
1536
- /**
1537
- * Starting and ending color stops for custom gradient
1538
- *
1539
- * @minItems 2
1540
- * @maxItems 2
1541
- */
1542
- gradient: [string, string];
1543
- /**
1544
- * Reverse the colors of the gauge
1545
- */
1546
- reverse: boolean;
1547
- /**
1548
- * Reverse the direction of the gauge (min on right, max on left)
1549
- */
1550
- reverseDirection: boolean;
1551
- };
1552
- /**
1553
- * A button to teleoperate a robot
1554
- *
1555
- * This interface was referenced by `Layout`'s JSON-Schema
1556
- * via the `definition` "TeleopButton".
1557
- */
1558
- export type TeleopButton = {
1559
- /**
1560
- * Field (linear or angular x, y, or z)
1561
- */
1562
- field: string;
1563
- /**
1564
- * Value to publish when the button is pressed
1565
- */
1566
- value: number;
1567
- };
1568
- /**
1569
- * Configuration for the Teleop panel.
1570
- *
1571
- * This interface was referenced by `Layout`'s JSON-Schema
1572
- * via the `definition` "TeleopConfig".
1573
- */
1574
- export type TeleopConfig = {
1575
- /**
1576
- * Topic on which to publish geometry_msgs/Twist or geometry_msgs/msg/Twist messages
1577
- */
1578
- topic?: string;
1579
- /**
1580
- * Rate at which to publish geometry_msgs/Twist or geometry_msgs/msg/Twist messages
1581
- */
1582
- publishRate?: number;
1583
- upButton: TeleopButton;
1584
- downButton: TeleopButton;
1585
- leftButton: TeleopButton;
1586
- rightButton: TeleopButton;
1587
- };
1588
- /**
1589
- * Coordinates of the center of the map
1590
- *
1591
- * This interface was referenced by `Layout`'s JSON-Schema
1592
- * via the `definition` "MapCoordinates".
1593
- */
1594
- export type MapCoordinates = {
1595
- lat: number;
1596
- lon: number;
1597
- };
1598
- /**
1599
- * This interface was referenced by `Layout`'s JSON-Schema
1600
- * via the `definition` "MapTopicSettings".
1601
- */
1602
- export type MapTopicSettings = {
1603
- /**
1604
- * Which messages to display when history (or future data via preloading) is available.
1605
- */
1606
- historyMode?: "all" | "none" | "previous";
1607
- /**
1608
- * Configure GPS location display
1609
- */
1610
- pointDisplayMode?: "dot" | "pin";
1611
- /**
1612
- * Sets the diameter of points rendered on the map for this topic, in pixels
1613
- */
1614
- pointSize?: number;
1615
- };
1616
- /**
1617
- * Configuration for the Map panel.
1618
- *
1619
- * This interface was referenced by `Layout`'s JSON-Schema
1620
- * via the `definition` "MapConfig".
1621
- */
1622
- export type MapConfig = {
1623
- center?: MapCoordinates;
1624
- /**
1625
- * URL to your custom map tiles following the Tile Map Service specs, e.g. https://my.custom.url/{x}/{y}/{z}.png
1626
- */
1627
- customTileUrl?: string;
1628
- /**
1629
- * Topics to disable from being displayed on the map
1630
- */
1631
- disabledTopics?: string[];
1632
- /**
1633
- * Topic to follow in the panel viewport
1634
- */
1635
- followTopic?: string;
1636
- /**
1637
- * The location fix to follow
1638
- */
1639
- followFrame?: string;
1640
- /**
1641
- * Type of map to display
1642
- */
1643
- layer?: "map" | "satellite" | "custom";
1644
- /**
1645
- * Colors for topics on the map
1646
- */
1647
- topicColors?: {
1648
- [k: string]: string;
1649
- };
1650
- /**
1651
- * Zoom level of the map
1652
- */
1653
- zoomLevel?: number;
1654
- /**
1655
- * Highest zoom supported by the custom map source
1656
- */
1657
- maxNativeZoom?: number;
1658
- /**
1659
- * Configuration for topics on the map
1660
- */
1661
- topicConfig?: {
1662
- [k: string]: MapTopicSettings;
1663
- };
1664
- };
1665
- /**
1666
- * Configuration for the Publish panel.
1667
- *
1668
- * This interface was referenced by `Layout`'s JSON-Schema
1669
- * via the `definition` "PublishConfig".
1670
- */
1671
- export type PublishConfig = {
1672
- /**
1673
- * Topic to publish to
1674
- */
1675
- topicName?: string;
1676
- /**
1677
- * Message schema to publish
1678
- */
1679
- datatype?: string;
1680
- /**
1681
- * Label for the button
1682
- */
1683
- buttonText?: string;
1684
- /**
1685
- * Tooltip for the button
1686
- */
1687
- buttonTooltip?: string;
1688
- /**
1689
- * Color of the button
1690
- */
1691
- buttonColor?: string;
1692
- /**
1693
- * When enabled, editing the message is allowed and the content is displayed. When disabled, only the button is visible.
1694
- */
1695
- advancedView: boolean;
1696
- /**
1697
- * JSON blob to publish
1698
- */
1699
- value?: string;
1700
- };
1701
- /**
1702
- * Configuration for the Service Call panel.
1703
- *
1704
- * This interface was referenced by `Layout`'s JSON-Schema
1705
- * via the `definition` "ServiceCallConfig".
1706
- */
1707
- export type ServiceCallConfig = {
1708
- /**
1709
- * Name of service to make a request to
1710
- */
1711
- serviceName?: string;
1712
- /**
1713
- * Request payload as JSON
1714
- */
1715
- requestPayload?: string;
1716
- /**
1717
- * Positioning of request and response inputs
1718
- */
1719
- layout?: "vertical" | "horizontal";
1720
- /**
1721
- * Label displayed on the button
1722
- */
1723
- buttonText?: string;
1724
- /**
1725
- * Text displayed when hovering over the button
1726
- */
1727
- buttonTooltip?: string;
1728
- /**
1729
- * Color of the button
1730
- */
1731
- buttonColor?: string;
1732
- /**
1733
- * When enabled, editing the request is allowed and the response content is displayed. When disabled, only the button is visible.
1734
- */
1735
- editingMode?: boolean;
1736
- /**
1737
- * Maximum time to wait for a response
1738
- */
1739
- timeoutSeconds?: number;
1740
- };
1741
- /**
1742
- * Configuration for the Raw Messages panel.
1743
- *
1744
- * This interface was referenced by `Layout`'s JSON-Schema
1745
- * via the `definition` "RawMessagesConfig".
1746
- */
1747
- export type RawMessagesConfig = {
1748
- /**
1749
- * Whether to enable diff mode
1750
- */
1751
- diffEnabled: boolean;
1752
- /**
1753
- * Method to use for diffing
1754
- */
1755
- diffMethod: "custom" | "previous message";
1756
- /**
1757
- * Topic path to use for diffing
1758
- */
1759
- diffTopicPath: string;
1760
- /**
1761
- * Node expansion state. Can be 'all' (all nodes expanded), 'none' (all nodes collapsed), or a map of node paths to expansion states. In the map, keys are reversed node paths joined by '~', and values are 'c' (collapsed) or 'e' (expanded).
1762
- */
1763
- expansion?: ("all" | "none") | {
1764
- [k: string]: "c" | "e";
1765
- };
1766
- /**
1767
- * Whether to show the full message for diffing
1768
- */
1769
- showFullMessageForDiff: boolean;
1770
- /**
1771
- * Message path to display
1772
- */
1773
- topicPath: string;
1774
- /**
1775
- * Font size for text display
1776
- */
1777
- fontSize?: number;
1778
- };
1779
- /**
1780
- * This interface was referenced by `Layout`'s JSON-Schema
1781
- * via the `definition` "LogNamespaceSettings".
1782
- */
1783
- export type LogNamespaceSettings = {
1784
- visible?: boolean;
1785
- };
1786
- /**
1787
- * Configuration for the Log panel.
1788
- *
1789
- * This interface was referenced by `Layout`'s JSON-Schema
1790
- * via the `definition` "LogConfig".
1791
- */
1792
- export type LogConfig = {
1793
- /**
1794
- * Search terms to filter log messages
1795
- */
1796
- searchTerms: string[];
1797
- /**
1798
- * Attempt to preload logs for recorded sources. If the recording contains over 100,000 messages, fallback to live mode
1799
- */
1800
- preload: boolean;
1801
- /**
1802
- * Minimum severity of messages to display – always enforced, even if the node name is selected or the message text matches the search filter
1803
- */
1804
- minLogLevel: number;
1805
- /**
1806
- * Topic to display log messages from
1807
- */
1808
- topicToRender?: string;
1809
- /**
1810
- * Settings for each namespace, indexed by name
1811
- */
1812
- nameFilter?: {
1813
- [k: string]: LogNamespaceSettings;
1814
- };
1815
- /**
1816
- * Font size for text display
1817
- */
1818
- fontSize?: number;
1819
- };
1820
- /**
1821
- * This interface was referenced by `Layout`'s JSON-Schema
1822
- * via the `definition` "TableConfig".
1823
- */
1824
- export type TableConfig = {
1825
- /**
1826
- * Message path to display
1827
- */
1828
- topicPath: string;
1829
- };
1830
- /**
1831
- * Settings for the slider
1832
- *
1833
- * This interface was referenced by `Layout`'s JSON-Schema
1834
- * via the `definition` "VariableSliderProps".
1835
- */
1836
- export type VariableSliderProps = {
1837
- /**
1838
- * Minimum value of the slider
1839
- */
1840
- min?: number;
1841
- /**
1842
- * Maximum value of the slider
1843
- */
1844
- max?: number;
1845
- /**
1846
- * Size of each incremental step in the slider
1847
- */
1848
- step?: number;
1849
- };
1850
- /**
1851
- * This interface was referenced by `Layout`'s JSON-Schema
1852
- * via the `definition` "VariableSliderConfig".
1853
- */
1854
- export type VariableSliderConfig = {
1855
- /**
1856
- * Name of variable
1857
- */
1858
- globalVariableName: string;
1859
- sliderProps: VariableSliderProps;
1860
- };
1861
- /**
1862
- * This interface was referenced by `Layout`'s JSON-Schema
1863
- * via the `definition` "UserScriptsConfig".
1864
- */
1865
- export type UserScriptsConfig = {
1866
- /**
1867
- * The ID of the selected script.
1868
- */
1869
- selectedNodeId?: string;
1870
- /**
1871
- * Whether to automatically format the code on save.
1872
- */
1873
- autoFormatOnSave?: boolean;
1874
- };
1875
- //# sourceMappingURL=layout.generated.d.ts.map