@foxglove/extension 2.55.0 → 2.56.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 +2 -2
- package/src/experimental.ts +14 -0
- package/src/stable.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxglove/extension",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Foxglove Technologies",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@foxglove/tsconfig": "3.2.0",
|
|
24
|
-
"typescript": "
|
|
24
|
+
"typescript": "6.0.3"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/src/experimental.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
RenderState as BaseRenderState,
|
|
8
8
|
Subscription as BaseSubscription,
|
|
9
9
|
Time,
|
|
10
|
+
Topic as BaseTopic,
|
|
10
11
|
} from "./stable";
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -31,6 +32,8 @@ export namespace Experimental {
|
|
|
31
32
|
requestedTimeOffset?: Time;
|
|
32
33
|
/** Effective time offset applied to source timestamps. */
|
|
33
34
|
timeOffset: Time;
|
|
35
|
+
/** Duration of the underlying recording (end - start), unaffected by time offsets. */
|
|
36
|
+
duration: Time;
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
export type ComparisonSources = ReadonlyMap<ComparisonSlot, Immutable<ComparisonSource>>;
|
|
@@ -45,6 +48,11 @@ export namespace Experimental {
|
|
|
45
48
|
comparisonSlot?: ComparisonSlot;
|
|
46
49
|
};
|
|
47
50
|
|
|
51
|
+
export type Topic = BaseTopic & {
|
|
52
|
+
/** The comparison slots that the topic is available in. Only set in compare mode.*/
|
|
53
|
+
comparisonSlots?: readonly ComparisonSlot[];
|
|
54
|
+
};
|
|
55
|
+
|
|
48
56
|
/**
|
|
49
57
|
* This type represents the arguments you pass to {@link ExtensionContext.registerDataLoader}
|
|
50
58
|
* when you want to register a data loader.
|
|
@@ -324,6 +332,12 @@ export namespace Experimental {
|
|
|
324
332
|
};
|
|
325
333
|
|
|
326
334
|
export type RenderState = BaseRenderState & {
|
|
335
|
+
/**
|
|
336
|
+
* List of available topics. In compare mode, same-named compatible topics may be grouped into a
|
|
337
|
+
* single entry with `comparisonSlots`.
|
|
338
|
+
*/
|
|
339
|
+
topics?: Topic[];
|
|
340
|
+
|
|
327
341
|
/**
|
|
328
342
|
* Map of compare data sources. Only present when multiple data sources are loaded in compare mode.
|
|
329
343
|
*/
|
package/src/stable.ts
CHANGED
|
@@ -613,7 +613,7 @@ export type PanelExtensionContext = {
|
|
|
613
613
|
*
|
|
614
614
|
* `options` depend on the server implementation.
|
|
615
615
|
*
|
|
616
|
-
* ##### [Foxglove Bridge](https://docs.foxglove.dev/docs/
|
|
616
|
+
* ##### [Foxglove Bridge](https://docs.foxglove.dev/docs/fleet/bridge)
|
|
617
617
|
*
|
|
618
618
|
* When using the Foxglove Bridge with ROS data, use `context.dataSourceProfile` to determine the
|
|
619
619
|
* ROS version.
|