@i2analyze/notebook-sdk 1.10.0-dev.6 → 1.10.0-dev.8
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.
|
@@ -2231,6 +2231,11 @@ export declare namespace chart {
|
|
|
2231
2231
|
* @i2since 1.9
|
|
2232
2232
|
*/
|
|
2233
2233
|
readonly brushsetchange: BrushSetChangeListener;
|
|
2234
|
+
/**
|
|
2235
|
+
* Gets the type of the callback method that listens for "charthoverchange" events.
|
|
2236
|
+
* @i2since 1.10
|
|
2237
|
+
*/
|
|
2238
|
+
readonly charthoverchange: HoverChangeListener;
|
|
2234
2239
|
}
|
|
2235
2240
|
/**
|
|
2236
2241
|
* A mapping of chart event types to their listener options types.
|
|
@@ -2262,6 +2267,11 @@ export declare namespace chart {
|
|
|
2262
2267
|
* @i2since 1.9
|
|
2263
2268
|
*/
|
|
2264
2269
|
readonly brushsetchange: app.ISubscriptionOptions;
|
|
2270
|
+
/**
|
|
2271
|
+
* Gets the type of the object that provides control over "charthoverchange" event listeners.
|
|
2272
|
+
* @i2since 1.10
|
|
2273
|
+
*/
|
|
2274
|
+
readonly charthoverchange: app.ISubscriptionOptions;
|
|
2265
2275
|
}
|
|
2266
2276
|
/**
|
|
2267
2277
|
* A callback function that handles chart selection events.
|
|
@@ -2303,6 +2313,18 @@ export declare namespace chart {
|
|
|
2303
2313
|
* @i2since 1.9
|
|
2304
2314
|
*/
|
|
2305
2315
|
export type BrushSetChangeListener = (brushSet: visual.IBrushSet, applicationContents: app.IApplicationContents) => void;
|
|
2316
|
+
/**
|
|
2317
|
+
* A callback function that handles chart hover change events.
|
|
2318
|
+
*
|
|
2319
|
+
* @remarks
|
|
2320
|
+
* This callback fires when the pointer moves over a different chart element, or when it enters or leaves
|
|
2321
|
+
* all chart elements. It does not fire on every `pointermove` — only when the hovered element changes.
|
|
2322
|
+
*
|
|
2323
|
+
* @param element - The chart element now under the pointer, or `null` if the pointer has left all chart elements.
|
|
2324
|
+
* @param applicationContents - The contents of the application, including the current chart.
|
|
2325
|
+
* @i2since 1.10
|
|
2326
|
+
*/
|
|
2327
|
+
export type HoverChangeListener = (element: visual.INode | visual.IEdge | visual.IEdgeSummary | visual.INodeGroup | null, applicationContents: app.IApplicationContents) => void;
|
|
2306
2328
|
/**
|
|
2307
2329
|
* Constraints that control a view-fitting operation.
|
|
2308
2330
|
*
|
|
@@ -2471,7 +2493,10 @@ export declare namespace commands {
|
|
|
2471
2493
|
*/
|
|
2472
2494
|
readonly icon: IIcon;
|
|
2473
2495
|
/**
|
|
2474
|
-
* Gets the identifier of the command
|
|
2496
|
+
* Gets the identifier of the command. This must be a non-empty string.
|
|
2497
|
+
*
|
|
2498
|
+
* @remarks
|
|
2499
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2475
2500
|
* @i2since 1.0
|
|
2476
2501
|
*/
|
|
2477
2502
|
readonly id: CommandId;
|
|
@@ -2787,7 +2812,10 @@ export declare namespace commands {
|
|
|
2787
2812
|
*/
|
|
2788
2813
|
export interface IGroupBase {
|
|
2789
2814
|
/**
|
|
2790
|
-
* Gets the identifier of the group
|
|
2815
|
+
* Gets the identifier of the group. This must be a non-empty string.
|
|
2816
|
+
*
|
|
2817
|
+
* @remarks
|
|
2818
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2791
2819
|
* @i2since 1.0
|
|
2792
2820
|
*/
|
|
2793
2821
|
readonly id: GroupId;
|
|
@@ -2889,7 +2917,10 @@ export declare namespace commands {
|
|
|
2889
2917
|
*/
|
|
2890
2918
|
export interface IDynamicGroupConfig<TCommandType extends CommandType = CommandType> {
|
|
2891
2919
|
/**
|
|
2892
|
-
* Gets the identifier of the group
|
|
2920
|
+
* Gets the identifier of the group. This must be a non-empty string.
|
|
2921
|
+
*
|
|
2922
|
+
* @remarks
|
|
2923
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
2893
2924
|
* @i2since 1.10
|
|
2894
2925
|
*/
|
|
2895
2926
|
readonly id: GroupId;
|
|
@@ -2915,13 +2946,21 @@ export declare namespace commands {
|
|
|
2915
2946
|
/**
|
|
2916
2947
|
* Populates the group's commands each time the group is opened.
|
|
2917
2948
|
*
|
|
2949
|
+
* @remarks
|
|
2950
|
+
* May be synchronous or asynchronous. A synchronous callback creates and surfaces every
|
|
2951
|
+
* command before it returns; the host then renders the populated group. An asynchronous
|
|
2952
|
+
* callback returns a `Promise` that resolves once the contents are ready: the host opens the
|
|
2953
|
+
* group immediately with skeleton placeholder rows in place of the real items, and swaps them
|
|
2954
|
+
* in atomically when the promise resolves. If the group closes before the promise resolves
|
|
2955
|
+
* the `signal` is aborted and any surfaced commands are discarded.
|
|
2956
|
+
*
|
|
2918
2957
|
* @param commandArea - A scoped area for creating and surfacing commands. Only commands created here are visible in this group.
|
|
2919
2958
|
* @param context - The context based on the group's `context` field: `undefined` for `'unscoped'`, {@link commands.IRecordsContext} for `'records'`, the application object for `'application'`.
|
|
2920
2959
|
* @param signal - An AbortSignal that is aborted when the group closes. Use it to cancel any async work started in this callback.
|
|
2921
|
-
* @returns An optional cleanup function that is called when the group closes, before the signal is aborted.
|
|
2960
|
+
* @returns An optional cleanup function that is called when the group closes, before the signal is aborted. Async callbacks may resolve with the cleanup function or with `undefined`.
|
|
2922
2961
|
* @i2since 1.10
|
|
2923
2962
|
*/
|
|
2924
|
-
onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void)
|
|
2963
|
+
onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void) | Promise<void | (() => void)>;
|
|
2925
2964
|
/**
|
|
2926
2965
|
* Runs when the dynamic group's popup button is surfaced, enabling its state to be driven from events.
|
|
2927
2966
|
*
|
|
@@ -3265,7 +3304,10 @@ export declare namespace commands {
|
|
|
3265
3304
|
*/
|
|
3266
3305
|
export interface IRibbonTabConfig {
|
|
3267
3306
|
/**
|
|
3268
|
-
* Gets the identifier of the tab
|
|
3307
|
+
* Gets the identifier of the tab. This must be a non-empty string.
|
|
3308
|
+
*
|
|
3309
|
+
* @remarks
|
|
3310
|
+
* Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
|
|
3269
3311
|
* @i2since 1.6
|
|
3270
3312
|
*/
|
|
3271
3313
|
readonly id: RibbonTabId;
|