@foxglove/extension 3.1.1 → 3.2.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.
- package/package.json +1 -1
- package/src/experimental.ts +9 -0
- package/src/stable.ts +12 -0
package/package.json
CHANGED
package/src/experimental.ts
CHANGED
|
@@ -38,6 +38,12 @@ export namespace Experimental {
|
|
|
38
38
|
|
|
39
39
|
export type ComparisonSources = ReadonlyMap<ComparisonSlot, Immutable<ComparisonSource>>;
|
|
40
40
|
|
|
41
|
+
/** How a panel should render a comparison slot. Highlighted is emphasized, dimmed is faded, normal is neutral. */
|
|
42
|
+
export type ComparisonSlotState = "highlighted" | "dimmed" | "normal";
|
|
43
|
+
|
|
44
|
+
/** Display state for each active comparison slot. */
|
|
45
|
+
export type ComparisonSlotStates = ReadonlyMap<ComparisonSlot, ComparisonSlotState>;
|
|
46
|
+
|
|
41
47
|
export type MessageEvent<T = unknown> = BaseMessageEvent<T> & {
|
|
42
48
|
/** The comparison slot that the message stems from. Only set in compare mode.*/
|
|
43
49
|
comparisonSlot?: ComparisonSlot;
|
|
@@ -360,6 +366,9 @@ export namespace Experimental {
|
|
|
360
366
|
*/
|
|
361
367
|
primaryComparisonSource?: ComparisonSource;
|
|
362
368
|
|
|
369
|
+
/** Display state per comparison slot. Only set in compare mode. This field is observe only and a panel cannot publish it back. Highlighted and dimmed reflect whole source hovers, and a hover scoped to a single series or topic leaves every slot normal. */
|
|
370
|
+
comparisonSlotStates?: ComparisonSlotStates;
|
|
371
|
+
|
|
363
372
|
/** MCAP metadata records from all active sources. */
|
|
364
373
|
metadata?: MetadataRecord[];
|
|
365
374
|
|
package/src/stable.ts
CHANGED
|
@@ -292,6 +292,17 @@ export type RenderState = {
|
|
|
292
292
|
|
|
293
293
|
/** Application settings. This will only contain keys/values that were subscribed to using {@link @PanelExtensionContext.subscribeAppSettings} */
|
|
294
294
|
appSettings?: Map<string, AppSettingValue>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Host and port of the active live WebSocket data source. Undefined for files, Remote Access,
|
|
298
|
+
* and other non-WebSocket sources.
|
|
299
|
+
*/
|
|
300
|
+
connection?: {
|
|
301
|
+
/** Hostname from the connection URL (no DNS resolution). */
|
|
302
|
+
host: string;
|
|
303
|
+
/** Port from the connection URL, or 80 for `ws` / 443 for `wss` when omitted. */
|
|
304
|
+
port: number;
|
|
305
|
+
};
|
|
295
306
|
};
|
|
296
307
|
|
|
297
308
|
/**
|
|
@@ -1286,6 +1297,7 @@ export interface ExtensionModule {
|
|
|
1286
1297
|
export type SettingsIcon =
|
|
1287
1298
|
| "Add"
|
|
1288
1299
|
| "Addchart"
|
|
1300
|
+
| "Altitude"
|
|
1289
1301
|
| "Background"
|
|
1290
1302
|
| "Cached"
|
|
1291
1303
|
| "Camera"
|