@foxglove/extension 2.38.1 → 2.39.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 +2 -0
- package/src/stable.ts +10 -2
package/package.json
CHANGED
package/src/experimental.ts
CHANGED
|
@@ -141,6 +141,8 @@ export namespace Experimental {
|
|
|
141
141
|
* // ... call `add` in your script function or wherever needed
|
|
142
142
|
* ```
|
|
143
143
|
*
|
|
144
|
+
* Note: The filename must contain only alphanumeric characters, dashes, underscores, and end with .ts (e.g., "my_utility.ts")
|
|
145
|
+
*
|
|
144
146
|
* @param name
|
|
145
147
|
* @param source
|
|
146
148
|
*/
|
package/src/stable.ts
CHANGED
|
@@ -443,7 +443,14 @@ export type PanelExtensionContext = {
|
|
|
443
443
|
* Set the transient state shared by panels of the same type as the caller of this function.
|
|
444
444
|
* This will not be persisted in the layout.
|
|
445
445
|
*/
|
|
446
|
-
setSharedPanelState(
|
|
446
|
+
setSharedPanelState(
|
|
447
|
+
state:
|
|
448
|
+
| Record<string, unknown>
|
|
449
|
+
| undefined
|
|
450
|
+
| ((
|
|
451
|
+
prevState: Immutable<Record<string, unknown>> | undefined,
|
|
452
|
+
) => Immutable<Record<string, unknown>> | undefined),
|
|
453
|
+
): void;
|
|
447
454
|
|
|
448
455
|
/**
|
|
449
456
|
* Use `context.setVariable` to set a
|
|
@@ -1155,7 +1162,8 @@ export interface ExtensionContext {
|
|
|
1155
1162
|
* decisions to implement. They can transform existing data into new topics for plotting,
|
|
1156
1163
|
* inspecting, and visualizing. Topic converters can combine data from several input topics,
|
|
1157
1164
|
* maintain state, and create messages from these multiple topics. They can also do the opposite
|
|
1158
|
-
*
|
|
1165
|
+
* and take a single topic and turn it into multiple output topics by registering multiple topic
|
|
1166
|
+
* converters for the same input topic but different output topics.
|
|
1159
1167
|
*
|
|
1160
1168
|
* See: {@link RegisterMessageConverterArgsTopic}.
|
|
1161
1169
|
*/
|