@foxglove/extension 2.55.0 → 2.57.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 +6 -6
- package/src/experimental.ts +14 -0
- package/src/stable.ts +3 -1
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxglove/extension",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.0",
|
|
4
|
+
"homepage": "https://foxglove.dev/",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"author": {
|
|
6
7
|
"name": "Foxglove Technologies",
|
|
7
8
|
"email": "support@foxglove.dev"
|
|
8
9
|
},
|
|
9
|
-
"
|
|
10
|
+
"files": [
|
|
11
|
+
"src"
|
|
12
|
+
],
|
|
10
13
|
"type": "module",
|
|
11
14
|
"main": "./src/index.ts",
|
|
12
15
|
"exports": {
|
|
13
16
|
".": "./src/index.ts",
|
|
14
17
|
"./experimental": "./src/experimental.ts"
|
|
15
18
|
},
|
|
16
|
-
"files": [
|
|
17
|
-
"src"
|
|
18
|
-
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"prepack": "tsc -b tsconfig.json"
|
|
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.
|
|
@@ -1287,6 +1287,7 @@ export type SettingsIcon =
|
|
|
1287
1287
|
| "Add"
|
|
1288
1288
|
| "Addchart"
|
|
1289
1289
|
| "Background"
|
|
1290
|
+
| "Cached"
|
|
1290
1291
|
| "Camera"
|
|
1291
1292
|
| "Cells"
|
|
1292
1293
|
| "Check"
|
|
@@ -1318,6 +1319,7 @@ export type SettingsIcon =
|
|
|
1318
1319
|
| "Share"
|
|
1319
1320
|
| "Star"
|
|
1320
1321
|
| "SouthEast"
|
|
1322
|
+
| "Sync"
|
|
1321
1323
|
| "Timeline"
|
|
1322
1324
|
| "Topic"
|
|
1323
1325
|
| "Tune"
|