@i2analyze/notebook-sdk 1.4.0-dev.9 → 1.5.0-dev.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/README.md +1 -0
- package/lib/gen/notebook-sdk-public.d.ts +82 -16
- package/lib/index.js +1 -1
- 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.4.\* | 4.4.3.0 |
|
|
11
12
|
| 1.3.\* | 4.4.2.0 |
|
|
12
13
|
| 1.2.\* | 4.4.1.0 |
|
|
13
14
|
| 1.1.\* | 4.4.0.0 |
|
|
@@ -592,6 +592,14 @@ export declare namespace app {
|
|
|
592
592
|
* @i2since 1.2
|
|
593
593
|
*/
|
|
594
594
|
setColor(color: string | undefined): this;
|
|
595
|
+
/**
|
|
596
|
+
* Sets or resets the label of the element.
|
|
597
|
+
*
|
|
598
|
+
* @param label - The label to set, or `undefined` to reset the label to the default.
|
|
599
|
+
* @returns The element, with its label set to the specified value.
|
|
600
|
+
* @i2since 1.5
|
|
601
|
+
*/
|
|
602
|
+
setLabel(label: string | undefined): this;
|
|
595
603
|
}
|
|
596
604
|
/**
|
|
597
605
|
* A set of methods for modifying the appearance of a node.
|
|
@@ -614,6 +622,23 @@ export declare namespace app {
|
|
|
614
622
|
* @i2since 1.2
|
|
615
623
|
*/
|
|
616
624
|
setCenter(position: visual.IPosition): this;
|
|
625
|
+
/**
|
|
626
|
+
* Sets the image of the node.
|
|
627
|
+
*
|
|
628
|
+
* @param href - The URL of the image.
|
|
629
|
+
* @param description - The description of the image.
|
|
630
|
+
* @returns The node, with its image set to the specified URL and description.
|
|
631
|
+
* @i2since 1.5
|
|
632
|
+
*/
|
|
633
|
+
setImage(href: string, description?: string): this;
|
|
634
|
+
/**
|
|
635
|
+
* Resets the image of the node to the default.
|
|
636
|
+
*
|
|
637
|
+
* @param href - `undefined`
|
|
638
|
+
* @returns The node, with its image reset to the default value.
|
|
639
|
+
* @i2since 1.5
|
|
640
|
+
*/
|
|
641
|
+
setImage(href: undefined): this;
|
|
617
642
|
}
|
|
618
643
|
/**
|
|
619
644
|
* A set of methods for modifying the appearance of an edge.
|
|
@@ -1613,7 +1638,7 @@ export declare namespace commands {
|
|
|
1613
1638
|
*
|
|
1614
1639
|
* @remarks
|
|
1615
1640
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
1616
|
-
* @i2since 1.
|
|
1641
|
+
* @i2since 1.1
|
|
1617
1642
|
*/
|
|
1618
1643
|
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
1619
1644
|
/**
|
|
@@ -2152,7 +2177,7 @@ export declare namespace commands {
|
|
|
2152
2177
|
* @remarks
|
|
2153
2178
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2154
2179
|
* @i2since 1.0
|
|
2155
|
-
* @deprecated commands.ICommandApi.chartPopupMenu has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2180
|
+
* @deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2156
2181
|
*/
|
|
2157
2182
|
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
|
|
2158
2183
|
/**
|
|
@@ -2317,6 +2342,11 @@ export declare namespace commands {
|
|
|
2317
2342
|
* @i2since 1.4
|
|
2318
2343
|
*/
|
|
2319
2344
|
readonly paste: CommandId;
|
|
2345
|
+
/**
|
|
2346
|
+
* Gets the identifier of the system command opens the chart settings dialog.
|
|
2347
|
+
* @i2since 1.5
|
|
2348
|
+
*/
|
|
2349
|
+
readonly chartSettings: CommandId;
|
|
2320
2350
|
}
|
|
2321
2351
|
/**
|
|
2322
2352
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -2355,7 +2385,7 @@ export declare namespace commands {
|
|
|
2355
2385
|
readonly clipboard: GroupId;
|
|
2356
2386
|
}
|
|
2357
2387
|
/**
|
|
2358
|
-
* A lookup table for the identifiers of the system action groups in the chart item
|
|
2388
|
+
* A lookup table for the identifiers of the system action groups in the chart item pop-up menu.
|
|
2359
2389
|
* @i2since 1.4
|
|
2360
2390
|
*/
|
|
2361
2391
|
export interface IChartItemPopupMenuSystemGroups {
|
|
@@ -2376,9 +2406,9 @@ export declare namespace commands {
|
|
|
2376
2406
|
readonly clipboard: GroupId;
|
|
2377
2407
|
}
|
|
2378
2408
|
/**
|
|
2379
|
-
* A lookup table for the identifiers of the system action groups in the chart
|
|
2409
|
+
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
2380
2410
|
* @i2since 1.0
|
|
2381
|
-
* @deprecated commands.IChartPopupMenuSystemGroups has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2411
|
+
* @deprecated since version 1.4. `commands.IChartPopupMenuSystemGroups` has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2382
2412
|
*/
|
|
2383
2413
|
export interface IChartPopupMenuSystemGroups {
|
|
2384
2414
|
/**
|
|
@@ -2393,7 +2423,7 @@ export declare namespace commands {
|
|
|
2393
2423
|
readonly discover: GroupId;
|
|
2394
2424
|
}
|
|
2395
2425
|
/**
|
|
2396
|
-
* A lookup table for the identifiers of the system action groups in the chart surface
|
|
2426
|
+
* A lookup table for the identifiers of the system action groups in the chart surface pop-up menu.
|
|
2397
2427
|
* @i2since 1.4
|
|
2398
2428
|
*/
|
|
2399
2429
|
export interface IChartSurfacePopupMenuSystemGroups {
|
|
@@ -3024,13 +3054,19 @@ export declare namespace data {
|
|
|
3024
3054
|
/**
|
|
3025
3055
|
* A label for an element or a record.
|
|
3026
3056
|
* @i2since 1.0
|
|
3057
|
+
* @deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails} or {@link visual.IElementLabelDetails} instead.
|
|
3027
3058
|
*/
|
|
3028
|
-
export
|
|
3059
|
+
export type ILabelDetails = ILabelDetailsBase;
|
|
3060
|
+
/**
|
|
3061
|
+
* A label for an element or a record.
|
|
3062
|
+
* @i2since 1.5
|
|
3063
|
+
*/
|
|
3064
|
+
export interface ILabelDetailsBase {
|
|
3029
3065
|
/**
|
|
3030
3066
|
* Gets the label or, if not present, a standard fallback string such as '\<No value\>'.
|
|
3031
3067
|
*
|
|
3032
3068
|
* @remarks
|
|
3033
|
-
* To distinguish between a real label and a fallback string, inspect {@link data.
|
|
3069
|
+
* To distinguish between a real label and a fallback string, inspect {@link data.ILabelDetailsBase.hasLabel | hasLabel}.
|
|
3034
3070
|
* @i2since 1.0
|
|
3035
3071
|
*/
|
|
3036
3072
|
readonly labelOrFallback: string;
|
|
@@ -3042,7 +3078,7 @@ export declare namespace data {
|
|
|
3042
3078
|
/**
|
|
3043
3079
|
* Indicates whether a real label is present.
|
|
3044
3080
|
*
|
|
3045
|
-
* @returns `true` if {@link data.
|
|
3081
|
+
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} contains a real label; `false` if it contains a fallback.
|
|
3046
3082
|
* @i2since 1.0
|
|
3047
3083
|
*/
|
|
3048
3084
|
readonly hasLabel: boolean;
|
|
@@ -3058,7 +3094,7 @@ export declare namespace data {
|
|
|
3058
3094
|
*/
|
|
3059
3095
|
export declare namespace dialog {
|
|
3060
3096
|
/**
|
|
3061
|
-
*
|
|
3097
|
+
* A size for a dialog window.
|
|
3062
3098
|
* @i2since 1.4
|
|
3063
3099
|
*/
|
|
3064
3100
|
export type DialogSize = 'small' | 'medium' | 'large';
|
|
@@ -3457,7 +3493,7 @@ export declare interface NotebookStatic {
|
|
|
3457
3493
|
* @public
|
|
3458
3494
|
* @i2since 1.0
|
|
3459
3495
|
*/
|
|
3460
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3'): Promise<IEntryPointApi>;
|
|
3496
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5'): Promise<IEntryPointApi>;
|
|
3461
3497
|
}
|
|
3462
3498
|
|
|
3463
3499
|
/**
|
|
@@ -3477,6 +3513,12 @@ export declare namespace records {
|
|
|
3477
3513
|
* @i2since 1.0
|
|
3478
3514
|
*/
|
|
3479
3515
|
export type AnalyzeRecordId = string;
|
|
3516
|
+
/**
|
|
3517
|
+
* A label for a record.
|
|
3518
|
+
* @i2since 1.5
|
|
3519
|
+
*/
|
|
3520
|
+
export interface IRecordLabelDetails extends data.ILabelDetailsBase {
|
|
3521
|
+
}
|
|
3480
3522
|
/**
|
|
3481
3523
|
* A set of information and functionality that is common to all records in i2 Notebook.
|
|
3482
3524
|
* @i2since 1.0
|
|
@@ -3506,7 +3548,7 @@ export declare namespace records {
|
|
|
3506
3548
|
* @returns The label (or a fallback string) and an indication of whether the label is real.
|
|
3507
3549
|
* @i2since 1.0
|
|
3508
3550
|
*/
|
|
3509
|
-
getLabelDetails():
|
|
3551
|
+
getLabelDetails(): IRecordLabelDetails;
|
|
3510
3552
|
/**
|
|
3511
3553
|
* Indicates whether there are properties on the record whose values have not been fetched from the server.
|
|
3512
3554
|
* @i2since 1.0
|
|
@@ -4704,7 +4746,7 @@ export declare namespace toolview {
|
|
|
4704
4746
|
* Gets the type of the object that provides control over "state" event listeners.
|
|
4705
4747
|
* @i2since 1.0
|
|
4706
4748
|
*/
|
|
4707
|
-
readonly state: app.
|
|
4749
|
+
readonly state: app.ISubscriptionOptions;
|
|
4708
4750
|
/**
|
|
4709
4751
|
* Gets the type of the object that provides control over "unload" event listeners.
|
|
4710
4752
|
* @i2since 1.0
|
|
@@ -4719,7 +4761,7 @@ export declare namespace toolview {
|
|
|
4719
4761
|
* Gets the type of the object that provides control over "minimized" event listeners.
|
|
4720
4762
|
* @i2since 1.2
|
|
4721
4763
|
*/
|
|
4722
|
-
readonly minimized: app.
|
|
4764
|
+
readonly minimized: app.ISubscriptionOptions;
|
|
4723
4765
|
}
|
|
4724
4766
|
/**
|
|
4725
4767
|
* A combined mapping of tool view and other event types to their listener types.
|
|
@@ -4757,6 +4799,19 @@ export declare namespace visual {
|
|
|
4757
4799
|
* @i2since 1.2
|
|
4758
4800
|
*/
|
|
4759
4801
|
export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
|
|
4802
|
+
/**
|
|
4803
|
+
* A label for an element.
|
|
4804
|
+
* @i2since 1.5
|
|
4805
|
+
*/
|
|
4806
|
+
export interface IElementLabelDetails extends data.ILabelDetailsBase {
|
|
4807
|
+
/**
|
|
4808
|
+
* Indicates whether the label contains an explicity set value for the element, or is generated from the schema label definition.
|
|
4809
|
+
*
|
|
4810
|
+
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} is generated from the schema; `false` if has been explicity set.
|
|
4811
|
+
* @i2since 1.5
|
|
4812
|
+
*/
|
|
4813
|
+
readonly isDefault: boolean;
|
|
4814
|
+
}
|
|
4760
4815
|
/**
|
|
4761
4816
|
* A set of information and functionality that is common to all elements on an i2 Notebook chart.
|
|
4762
4817
|
* @i2since 1.0
|
|
@@ -4786,7 +4841,7 @@ export declare namespace visual {
|
|
|
4786
4841
|
* @returns The label (or a fallback string) and an indication of whether the label is real.
|
|
4787
4842
|
* @i2since 1.0
|
|
4788
4843
|
*/
|
|
4789
|
-
getLabelDetails():
|
|
4844
|
+
getLabelDetails(): IElementLabelDetails;
|
|
4790
4845
|
/**
|
|
4791
4846
|
* Gets the records that the element represents, indexed by their identifiers.
|
|
4792
4847
|
* @i2since 1.0
|
|
@@ -4913,6 +4968,17 @@ export declare namespace visual {
|
|
|
4913
4968
|
*/
|
|
4914
4969
|
readonly color: IElementSetting<string>;
|
|
4915
4970
|
}
|
|
4971
|
+
/**
|
|
4972
|
+
* A value for the node image setting.
|
|
4973
|
+
* @i2since 1.5
|
|
4974
|
+
*/
|
|
4975
|
+
export interface IImageSetting extends data.IImage {
|
|
4976
|
+
/**
|
|
4977
|
+
* Indicates whether the image is the default image for this element.
|
|
4978
|
+
* @i2since 1.5
|
|
4979
|
+
*/
|
|
4980
|
+
readonly isDefault: boolean;
|
|
4981
|
+
}
|
|
4916
4982
|
/**
|
|
4917
4983
|
* A style for a node, which affects its appearance.
|
|
4918
4984
|
* @i2since 1.0
|
|
@@ -4922,7 +4988,7 @@ export declare namespace visual {
|
|
|
4922
4988
|
* Gets the image to display for the node.
|
|
4923
4989
|
* @i2since 1.0
|
|
4924
4990
|
*/
|
|
4925
|
-
readonly image:
|
|
4991
|
+
readonly image: IImageSetting;
|
|
4926
4992
|
/**
|
|
4927
4993
|
* Gets the size of the node.
|
|
4928
4994
|
* @i2since 1.2
|
package/lib/index.js
CHANGED