@i2analyze/notebook-sdk 1.8.0-dev.8 → 1.8.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 +219 -5
- 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.8.\* | 4.4.6.\* and later |
|
|
11
12
|
| 1.7.\* | 4.4.5.\* and later |
|
|
12
13
|
| 1.6.\* | 4.4.4.5 and later |
|
|
13
14
|
| 1.5.\* | 4.4.4.0 to 4.4.4.4 |
|
|
@@ -648,7 +648,16 @@ export declare namespace app {
|
|
|
648
648
|
* A set of methods for modifying the appearance of a node.
|
|
649
649
|
* @i2since 1.2
|
|
650
650
|
*/
|
|
651
|
-
export interface INodeEditor extends IElementEditorBase {
|
|
651
|
+
export interface INodeEditor extends Omit<IElementEditorBase, 'setColor'> {
|
|
652
|
+
/**
|
|
653
|
+
* Sets or resets the color of the element.
|
|
654
|
+
*
|
|
655
|
+
* @param color - The color to set, or `undefined` to reset the color to the theme default, or 'null' to remove the color.
|
|
656
|
+
* @returns The element, with its color set to the specified value.
|
|
657
|
+
* @throws `Error` if the specified value is not in a form that CSS supports, such as a hexadecimal number, an `rgb()` value, or a color name.
|
|
658
|
+
* @i2since 1.2
|
|
659
|
+
*/
|
|
660
|
+
setColor(color: string | undefined | null): this;
|
|
652
661
|
/**
|
|
653
662
|
* Sets or resets the size of the node.
|
|
654
663
|
*
|
|
@@ -688,6 +697,14 @@ export declare namespace app {
|
|
|
688
697
|
* @i2since 1.2
|
|
689
698
|
*/
|
|
690
699
|
export interface IEdgeEditor extends IElementEditorBase {
|
|
700
|
+
/**
|
|
701
|
+
* Sets or resets the width of the edge.
|
|
702
|
+
*
|
|
703
|
+
* @param width - The width to set, or undefined to reset the width to 1.
|
|
704
|
+
* @returns The edge, with its width set to the specified value.
|
|
705
|
+
* @i2since 1.8
|
|
706
|
+
*/
|
|
707
|
+
setWidth(width: number | undefined): this;
|
|
691
708
|
}
|
|
692
709
|
/**
|
|
693
710
|
* A set of methods for modifying the contents and position of a node group.
|
|
@@ -740,6 +757,14 @@ export declare namespace app {
|
|
|
740
757
|
* @i2since 1.8
|
|
741
758
|
*/
|
|
742
759
|
setImage(href: string | undefined, description?: string): this;
|
|
760
|
+
/**
|
|
761
|
+
* Sets whether the node group is minimized, so nodes within the group are hidden, or maximized where they are shown.
|
|
762
|
+
*
|
|
763
|
+
* @param isMinimized - `true` to minimize the group, `false` to maximize it.
|
|
764
|
+
* @returns The node group, with its minimized state set to the specified value.
|
|
765
|
+
* @i2since 1.8
|
|
766
|
+
*/
|
|
767
|
+
setIsMinimized(isMinimized: boolean): this;
|
|
743
768
|
/**
|
|
744
769
|
* Adds nodes to the group.
|
|
745
770
|
* @param nodes - The nodes to add to the group.
|
|
@@ -2459,13 +2484,31 @@ export declare namespace commands {
|
|
|
2459
2484
|
* A common specifier for a tab in the application ribbon.
|
|
2460
2485
|
* @i2since 1.7
|
|
2461
2486
|
*/
|
|
2462
|
-
export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea;
|
|
2487
|
+
export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea | ICollectTabActionArea | IAnalyzeTabActionArea | IDisseminateTabActionArea;
|
|
2463
2488
|
/**
|
|
2464
2489
|
* An area that represents the **Home** tab in the application ribbon, which contains system groups.
|
|
2465
2490
|
* @i2since 1.6
|
|
2466
2491
|
*/
|
|
2467
2492
|
export interface IHomeTabActionArea extends IActionArea<IHomeTabSystemGroups> {
|
|
2468
2493
|
}
|
|
2494
|
+
/**
|
|
2495
|
+
* An area that represents the **Collect** tab in the application ribbon, which contains system groups.
|
|
2496
|
+
* @i2since 1.8
|
|
2497
|
+
*/
|
|
2498
|
+
export interface ICollectTabActionArea extends IActionArea<ICollectTabSystemGroups> {
|
|
2499
|
+
}
|
|
2500
|
+
/**
|
|
2501
|
+
* An area that represents the **Analyze** tab in the application ribbon, which contains system groups.
|
|
2502
|
+
* @i2since 1.8
|
|
2503
|
+
*/
|
|
2504
|
+
export interface IAnalyzeTabActionArea extends IActionArea<IAnalyzeTabSystemGroups> {
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* An area that represents the **Disseminate** tab in the application ribbon, which contains system groups.
|
|
2508
|
+
* @i2since 1.8
|
|
2509
|
+
*/
|
|
2510
|
+
export interface IDisseminateTabActionArea extends IActionArea<IDisseminateTabSystemGroups> {
|
|
2511
|
+
}
|
|
2469
2512
|
/**
|
|
2470
2513
|
* An area that represents a custom tab in the application ribbon.
|
|
2471
2514
|
* @i2since 1.6
|
|
@@ -2482,6 +2525,21 @@ export declare namespace commands {
|
|
|
2482
2525
|
* @i2since 1.0
|
|
2483
2526
|
*/
|
|
2484
2527
|
readonly homeTab: IHomeTabActionArea;
|
|
2528
|
+
/**
|
|
2529
|
+
* Gets the area that represents the **Collect** tab in the application ribbon.
|
|
2530
|
+
* @i2since 1.8
|
|
2531
|
+
*/
|
|
2532
|
+
readonly collectTab: ICollectTabActionArea;
|
|
2533
|
+
/**
|
|
2534
|
+
* Gets the area that represents the **Analyze** tab in the application ribbon.
|
|
2535
|
+
* @i2since 1.8
|
|
2536
|
+
*/
|
|
2537
|
+
readonly analyzeTab: IAnalyzeTabActionArea;
|
|
2538
|
+
/**
|
|
2539
|
+
* Gets the area that represents the **Disseminate** tab in the application ribbon.
|
|
2540
|
+
* @i2since 1.8
|
|
2541
|
+
*/
|
|
2542
|
+
readonly disseminateTab: IDisseminateTabActionArea;
|
|
2485
2543
|
/**
|
|
2486
2544
|
* Adds a new tab to the application ribbon.
|
|
2487
2545
|
* @param config - The information necessary for creating the tab.
|
|
@@ -2572,6 +2630,16 @@ export declare namespace commands {
|
|
|
2572
2630
|
* @i2since 1.6
|
|
2573
2631
|
*/
|
|
2574
2632
|
readonly downloadRecords: CommandId;
|
|
2633
|
+
/**
|
|
2634
|
+
* Gets the identifier of the system command that enables inline editing for the selected element's label.
|
|
2635
|
+
* @i2since 1.8
|
|
2636
|
+
*/
|
|
2637
|
+
readonly editElementLabel: CommandId;
|
|
2638
|
+
/**
|
|
2639
|
+
* Gets the identifier of the system command that enables inline editing for the selected group's label.
|
|
2640
|
+
* @i2since 1.8
|
|
2641
|
+
*/
|
|
2642
|
+
readonly editGroupLabel: CommandId;
|
|
2575
2643
|
/**
|
|
2576
2644
|
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2577
2645
|
* @i2since 1.1
|
|
@@ -2607,6 +2675,33 @@ export declare namespace commands {
|
|
|
2607
2675
|
* @i2since 1.0
|
|
2608
2676
|
*/
|
|
2609
2677
|
readonly layoutPeacock: CommandId;
|
|
2678
|
+
/**
|
|
2679
|
+
* Gets the identifier of the system command that performs a circular layout.
|
|
2680
|
+
* @i2since 1.8
|
|
2681
|
+
*/
|
|
2682
|
+
readonly layoutCircular: CommandId;
|
|
2683
|
+
/**
|
|
2684
|
+
* Gets the identifier of the system command that performs an organization layout.
|
|
2685
|
+
* @i2since 1.8
|
|
2686
|
+
*/
|
|
2687
|
+
readonly layoutOrganization: CommandId;
|
|
2688
|
+
/**
|
|
2689
|
+
* Gets the identifier of the system command that performs a minimize crossed links layout.
|
|
2690
|
+
* @i2since 1.8
|
|
2691
|
+
*/
|
|
2692
|
+
readonly layoutMinimizeCrossedLinks: CommandId;
|
|
2693
|
+
/**
|
|
2694
|
+
* Gets the identifier of the system command that maximizes selected groups in the chart.
|
|
2695
|
+
*
|
|
2696
|
+
* @i2since 1.8
|
|
2697
|
+
*/
|
|
2698
|
+
readonly maximizeGroups: CommandId;
|
|
2699
|
+
/**
|
|
2700
|
+
* Gets the identifier of the system command that minimizes selected groups in the chart.
|
|
2701
|
+
*
|
|
2702
|
+
* @i2since 1.8
|
|
2703
|
+
*/
|
|
2704
|
+
readonly minimizeGroups: CommandId;
|
|
2610
2705
|
/**
|
|
2611
2706
|
* Gets the identifier of the system command that opens the i2 Notebook importer.
|
|
2612
2707
|
* @i2since 1.5
|
|
@@ -2627,6 +2722,16 @@ export declare namespace commands {
|
|
|
2627
2722
|
* @i2since 1.0
|
|
2628
2723
|
*/
|
|
2629
2724
|
readonly redo: CommandId;
|
|
2725
|
+
/**
|
|
2726
|
+
* Gets the identifier of the system command that resets the selected elements' labels to their default values.
|
|
2727
|
+
* @i2since 1.8
|
|
2728
|
+
*/
|
|
2729
|
+
readonly resetElementLabel: CommandId;
|
|
2730
|
+
/**
|
|
2731
|
+
* Gets the identifier of the system command that resets the selected groups' labels to their default values.
|
|
2732
|
+
* @i2since 1.8
|
|
2733
|
+
*/
|
|
2734
|
+
readonly resetGroupLabel: CommandId;
|
|
2630
2735
|
/**
|
|
2631
2736
|
* Gets the identifier of the system command that saves the current chart.
|
|
2632
2737
|
* @i2since 1.1
|
|
@@ -2647,6 +2752,13 @@ export declare namespace commands {
|
|
|
2647
2752
|
* @i2since 1.2
|
|
2648
2753
|
*/
|
|
2649
2754
|
readonly selectInvert: CommandId;
|
|
2755
|
+
/**
|
|
2756
|
+
* Gets the identifier of the system command that selects united items.
|
|
2757
|
+
*
|
|
2758
|
+
* @remarks A united item is a entity or link that contains multiple records.
|
|
2759
|
+
* @i2since 1.8
|
|
2760
|
+
*/
|
|
2761
|
+
readonly selectUnitedItems: CommandId;
|
|
2650
2762
|
/**
|
|
2651
2763
|
* Gets the identifier of the system command that allows users to share records with each other.
|
|
2652
2764
|
* @i2since 1.3
|
|
@@ -2726,8 +2838,14 @@ export declare namespace commands {
|
|
|
2726
2838
|
/**
|
|
2727
2839
|
* Gets the identifier of the system action group named "Arrange".
|
|
2728
2840
|
* @i2since 1.0
|
|
2841
|
+
* @deprecated The "arrange" property has been renamed to "layouts". Use {@link commands.IHomeTabSystemGroups.layouts} instead.
|
|
2729
2842
|
*/
|
|
2730
2843
|
readonly arrange: GroupId;
|
|
2844
|
+
/**
|
|
2845
|
+
* Gets the identifier of the system action group named "Layouts".
|
|
2846
|
+
* @i2since 1.8
|
|
2847
|
+
*/
|
|
2848
|
+
readonly layouts: GroupId;
|
|
2731
2849
|
/**
|
|
2732
2850
|
* Gets the identifier of the system action group named "Manage".
|
|
2733
2851
|
* @i2since 1.1
|
|
@@ -2743,9 +2861,15 @@ export declare namespace commands {
|
|
|
2743
2861
|
* @i2since 1.0
|
|
2744
2862
|
*/
|
|
2745
2863
|
readonly history: GroupId;
|
|
2864
|
+
/**
|
|
2865
|
+
* Gets the identifier of the system action group named "Groups".
|
|
2866
|
+
* @i2since 1.8
|
|
2867
|
+
*/
|
|
2868
|
+
readonly groups: GroupId;
|
|
2746
2869
|
/**
|
|
2747
2870
|
* Gets the identifier of the system action group named "Search Information Store".
|
|
2748
2871
|
* @i2since 1.0
|
|
2872
|
+
* @deprecated The Search Information Store group has moved to the Collect tab {@link commands.ICollectTabSystemGroups.searchInfoStore}.
|
|
2749
2873
|
*/
|
|
2750
2874
|
readonly searchInfoStore: GroupId;
|
|
2751
2875
|
/**
|
|
@@ -2754,6 +2878,64 @@ export declare namespace commands {
|
|
|
2754
2878
|
*/
|
|
2755
2879
|
readonly select: GroupId;
|
|
2756
2880
|
}
|
|
2881
|
+
/**
|
|
2882
|
+
* A lookup table for the identifiers of the system action groups in the Collect tab.
|
|
2883
|
+
* @i2since 1.8
|
|
2884
|
+
*/
|
|
2885
|
+
export interface ICollectTabSystemGroups {
|
|
2886
|
+
/**
|
|
2887
|
+
* Gets the identifier of the system action group named "Search Information Store".
|
|
2888
|
+
* @i2since 1.8
|
|
2889
|
+
*/
|
|
2890
|
+
readonly searchInfoStore: GroupId;
|
|
2891
|
+
/**
|
|
2892
|
+
* Gets the identifier of the system action group named "Groups".
|
|
2893
|
+
* @i2since 1.8
|
|
2894
|
+
*/
|
|
2895
|
+
readonly groups: GroupId;
|
|
2896
|
+
/**
|
|
2897
|
+
* Gets the identifier of the system action group named "Select".
|
|
2898
|
+
* @i2since 1.8
|
|
2899
|
+
*/
|
|
2900
|
+
readonly select: GroupId;
|
|
2901
|
+
}
|
|
2902
|
+
/**
|
|
2903
|
+
* A lookup table for the identifiers of the system action groups in the Analyze tab.
|
|
2904
|
+
* @i2since 1.8
|
|
2905
|
+
*/
|
|
2906
|
+
export interface IAnalyzeTabSystemGroups {
|
|
2907
|
+
/**
|
|
2908
|
+
* Gets the identifier of the system action group named "Discover".
|
|
2909
|
+
* @i2since 1.8
|
|
2910
|
+
*/
|
|
2911
|
+
readonly discover: GroupId;
|
|
2912
|
+
/**
|
|
2913
|
+
* Gets the identifier of the system action group named "Layouts".
|
|
2914
|
+
* @i2since 1.8
|
|
2915
|
+
*/
|
|
2916
|
+
readonly layouts: GroupId;
|
|
2917
|
+
/**
|
|
2918
|
+
* Gets the identifier of the system action group named "Groups".
|
|
2919
|
+
* @i2since 1.8
|
|
2920
|
+
*/
|
|
2921
|
+
readonly groups: GroupId;
|
|
2922
|
+
/**
|
|
2923
|
+
* Gets the identifier of the system action group named "Select".
|
|
2924
|
+
* @i2since 1.8
|
|
2925
|
+
*/
|
|
2926
|
+
readonly select: GroupId;
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
* A lookup table for the identifiers of the system action groups in the Disseminate tab.
|
|
2930
|
+
* @i2since 1.8
|
|
2931
|
+
*/
|
|
2932
|
+
export interface IDisseminateTabSystemGroups {
|
|
2933
|
+
/**
|
|
2934
|
+
* Gets the identifier of the system action group named "Export".
|
|
2935
|
+
* @i2since 1.8
|
|
2936
|
+
*/
|
|
2937
|
+
readonly export: GroupId;
|
|
2938
|
+
}
|
|
2757
2939
|
/**
|
|
2758
2940
|
* A lookup table for the identifiers of the system action groups in the chart item pop-up menu.
|
|
2759
2941
|
* @i2since 1.4
|
|
@@ -2769,6 +2951,11 @@ export declare namespace commands {
|
|
|
2769
2951
|
* @i2since 1.0
|
|
2770
2952
|
*/
|
|
2771
2953
|
readonly discover: GroupId;
|
|
2954
|
+
/**
|
|
2955
|
+
* Gets the identifier of the system action group related to element label operations.
|
|
2956
|
+
* @i2since 1.8
|
|
2957
|
+
*/
|
|
2958
|
+
readonly label: GroupId;
|
|
2772
2959
|
/**
|
|
2773
2960
|
* Gets the identifier of the system action group related to link direction.
|
|
2774
2961
|
* @i2since 1.5
|
|
@@ -3286,6 +3473,14 @@ export declare namespace data {
|
|
|
3286
3473
|
* @i2since 1.0
|
|
3287
3474
|
*/
|
|
3288
3475
|
readonly size: number;
|
|
3476
|
+
/**
|
|
3477
|
+
* Executes firstOrDefault to see if the collection has any elements. If the collection has elements, returns false.
|
|
3478
|
+
* Otherwise, returns true.
|
|
3479
|
+
*
|
|
3480
|
+
* @returns A boolean indicating whether the collection is empty.
|
|
3481
|
+
* @i2since 1.8
|
|
3482
|
+
*/
|
|
3483
|
+
isEmpty(): boolean;
|
|
3289
3484
|
}
|
|
3290
3485
|
/**
|
|
3291
3486
|
* A non-modifiable collection of objects, with efficient lookup by key.
|
|
@@ -3879,7 +4074,7 @@ export declare interface NotebookStatic {
|
|
|
3879
4074
|
* @public
|
|
3880
4075
|
* @i2since 1.0
|
|
3881
4076
|
*/
|
|
3882
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7'): Promise<IEntryPointApi>;
|
|
4077
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8'): Promise<IEntryPointApi>;
|
|
3883
4078
|
}
|
|
3884
4079
|
|
|
3885
4080
|
/**
|
|
@@ -5156,7 +5351,7 @@ export declare namespace toolview {
|
|
|
5156
5351
|
* The size of the tool view.
|
|
5157
5352
|
* @i2since 1.3
|
|
5158
5353
|
*/
|
|
5159
|
-
export type ToolViewSize = 'small' | 'medium' | 'large';
|
|
5354
|
+
export type ToolViewSize = 'small' | 'medium' | 'large' | 'x-large';
|
|
5160
5355
|
/**
|
|
5161
5356
|
* A set of information for creating a tool view.
|
|
5162
5357
|
* @i2since 1.3
|
|
@@ -5657,7 +5852,12 @@ export declare namespace visual {
|
|
|
5657
5852
|
* A style for a node, which affects its appearance.
|
|
5658
5853
|
* @i2since 1.0
|
|
5659
5854
|
*/
|
|
5660
|
-
export interface INodeStyle extends IElementStyleBase {
|
|
5855
|
+
export interface INodeStyle extends Omit<IElementStyleBase, 'color'> {
|
|
5856
|
+
/**
|
|
5857
|
+
* Gets the color of the node, or null if there is no color and the node background is transparent.
|
|
5858
|
+
* @i2since 1.2
|
|
5859
|
+
*/
|
|
5860
|
+
readonly color: IElementSetting<string | null>;
|
|
5661
5861
|
/**
|
|
5662
5862
|
* Gets the image to display for the node.
|
|
5663
5863
|
* @i2since 1.0
|
|
@@ -5674,6 +5874,11 @@ export declare namespace visual {
|
|
|
5674
5874
|
* @i2since 1.2
|
|
5675
5875
|
*/
|
|
5676
5876
|
export interface IEdgeStyle extends IElementStyleBase {
|
|
5877
|
+
/**
|
|
5878
|
+
* Gets the width of the edge.
|
|
5879
|
+
* @i2since 1.8
|
|
5880
|
+
*/
|
|
5881
|
+
readonly width: IElementSetting<number>;
|
|
5677
5882
|
}
|
|
5678
5883
|
/**
|
|
5679
5884
|
* A rectangular area, such as the boundary of the chart view.
|
|
@@ -5747,6 +5952,15 @@ export declare namespace visual {
|
|
|
5747
5952
|
* @i2since 1.8
|
|
5748
5953
|
*/
|
|
5749
5954
|
readonly style: INodeGroupStyle;
|
|
5955
|
+
/**
|
|
5956
|
+
* Indicates the minimized state of the node group.
|
|
5957
|
+
* @remarks
|
|
5958
|
+
* A minimized node group is represented by a single node that contains the label and
|
|
5959
|
+
* image of the group, and can be maximized to show the individual nodes in the group.
|
|
5960
|
+
* @returns `true` if the node group is minimized; `false` if it is maximized.
|
|
5961
|
+
* @i2since 1.8
|
|
5962
|
+
*/
|
|
5963
|
+
readonly isMinimized: boolean;
|
|
5750
5964
|
/**
|
|
5751
5965
|
* Gets the nodes in the node group.
|
|
5752
5966
|
* @i2since 1.8
|
package/lib/index.js
CHANGED