@i2analyze/notebook-sdk 1.9.0-dev.15 → 1.9.0-dev.17
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/README.md +1 -0
- package/lib/gen/notebook-sdk-public.d.ts +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ This npm package provides the JavaScript library for developing plug-ins and a t
|
|
|
8
8
|
|
|
9
9
|
| `@i2analyze/notebook-sdk` version | i2 Analyze version |
|
|
10
10
|
| --------------------------------- | ------------------ |
|
|
11
|
+
| 1.9.\* | 4.4.7.\* and later |
|
|
11
12
|
| 1.8.\* | 4.4.6.\* and later |
|
|
12
13
|
| 1.7.\* | 4.4.5.\* and later |
|
|
13
14
|
| 1.6.\* | 4.4.4.5 and later |
|
|
@@ -365,6 +365,22 @@ export declare namespace app {
|
|
|
365
365
|
* @i2since 1.1
|
|
366
366
|
*/
|
|
367
367
|
setMessage(text: string): void;
|
|
368
|
+
/**
|
|
369
|
+
* Reports numeric progress and optionally yields the UI thread to keep the application responsive.
|
|
370
|
+
*
|
|
371
|
+
* @remarks
|
|
372
|
+
* Use this method in tight loops to show a determinate progress bar and prevent the application
|
|
373
|
+
* from becoming unresponsive. The returned promise should be awaited on each iteration.
|
|
374
|
+
*
|
|
375
|
+
* To yield the UI thread without showing a progress bar (when the total is not known),
|
|
376
|
+
* pass `0` for both `done` and `total`.
|
|
377
|
+
*
|
|
378
|
+
* @param done - The amount of work completed so far.
|
|
379
|
+
* @param total - The total amount of work. When greater than `0`, a determinate progress bar is shown.
|
|
380
|
+
* @returns A promise that resolves after optionally yielding the UI thread.
|
|
381
|
+
* @i2since 1.9
|
|
382
|
+
*/
|
|
383
|
+
setProgress(done: number, total: number): Promise<void>;
|
|
368
384
|
}
|
|
369
385
|
/**
|
|
370
386
|
* A common specifier for a record, for use in mutation APIs.
|