@i2analyze/notebook-sdk 1.9.0-dev.5 → 1.9.0-dev.7
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/lib/gen/notebook-sdk-public.d.ts +142 -7
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -744,6 +744,33 @@ export declare namespace app {
|
|
|
744
744
|
* @i2since 1.5
|
|
745
745
|
*/
|
|
746
746
|
setImage(href: undefined): this;
|
|
747
|
+
/**
|
|
748
|
+
* Sets or resets the border color of the node.
|
|
749
|
+
*
|
|
750
|
+
* @param color - The color to set, or `null` to remove the border, or `undefined` to reset the border color to the theme default.
|
|
751
|
+
* @returns The node, with its border color set to the specified value.
|
|
752
|
+
* @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, or `null` or `undefined`.
|
|
753
|
+
* @i2since 1.9
|
|
754
|
+
*/
|
|
755
|
+
setBorderColor(color: string | undefined | null): this;
|
|
756
|
+
/**
|
|
757
|
+
* Sets or resets the border width of the node.
|
|
758
|
+
*
|
|
759
|
+
* @param width - The width to set, or `undefined` to reset the width to the theme default.
|
|
760
|
+
* @returns The node, with its border width set to the specified value.
|
|
761
|
+
* @throws `Error` if the specified value is not either a positive number or `undefined`.
|
|
762
|
+
* @remarks A size of 0 is valid, and indicates that the node has no border - equivalent to `setBorderColor(null)`.
|
|
763
|
+
* @i2since 1.9
|
|
764
|
+
*/
|
|
765
|
+
setBorderWidth(width: number | undefined): this;
|
|
766
|
+
/**
|
|
767
|
+
* Sets or resets the border style of the node.
|
|
768
|
+
*
|
|
769
|
+
* @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
|
|
770
|
+
* @returns The node, with its border style set to the specified value.
|
|
771
|
+
* @i2since 1.9
|
|
772
|
+
*/
|
|
773
|
+
setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
747
774
|
}
|
|
748
775
|
/**
|
|
749
776
|
* A set of methods for modifying the appearance of an edge.
|
|
@@ -758,6 +785,14 @@ export declare namespace app {
|
|
|
758
785
|
* @i2since 1.8
|
|
759
786
|
*/
|
|
760
787
|
setWidth(width: number | undefined): this;
|
|
788
|
+
/**
|
|
789
|
+
* Sets or resets the line style of the edge.
|
|
790
|
+
*
|
|
791
|
+
* @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
|
|
792
|
+
* @returns The edge, with its line style set to the specified value.
|
|
793
|
+
* @i2since 1.9
|
|
794
|
+
*/
|
|
795
|
+
setLineStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
761
796
|
}
|
|
762
797
|
/**
|
|
763
798
|
* A set of methods for modifying the contents and position of a node group.
|
|
@@ -791,6 +826,14 @@ export declare namespace app {
|
|
|
791
826
|
* @i2since 1.8
|
|
792
827
|
*/
|
|
793
828
|
setBorderWidth(width: number | undefined): this;
|
|
829
|
+
/**
|
|
830
|
+
* Sets or resets the border style of the node group.
|
|
831
|
+
*
|
|
832
|
+
* @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
|
|
833
|
+
* @returns The node group, with its border style set to the specified value.
|
|
834
|
+
* @i2since 1.9
|
|
835
|
+
*/
|
|
836
|
+
setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
794
837
|
/**
|
|
795
838
|
* Sets or resets the background color of the node group.
|
|
796
839
|
*
|
|
@@ -1460,6 +1503,7 @@ export declare namespace app {
|
|
|
1460
1503
|
}
|
|
1461
1504
|
/**
|
|
1462
1505
|
* The names of themes for the i2 Notebook user interface.
|
|
1506
|
+
* @deprecated Use {@link app.ITheme.appearance | appearance} to determine the application theme instead.
|
|
1463
1507
|
* @i2since 1.0
|
|
1464
1508
|
*/
|
|
1465
1509
|
export type ThemeName = 'carbonwhite' | 'carbongray10' | 'carbongray90' | 'carbongray100';
|
|
@@ -1470,6 +1514,7 @@ export declare namespace app {
|
|
|
1470
1514
|
export interface ITheme {
|
|
1471
1515
|
/**
|
|
1472
1516
|
* Gets the name of the theme.
|
|
1517
|
+
* @deprecated Use {@link app.ITheme.appearance | appearance} to determine the application theme instead.
|
|
1473
1518
|
* @i2since 1.0
|
|
1474
1519
|
*/
|
|
1475
1520
|
readonly themeName: ThemeName;
|
|
@@ -2892,35 +2937,95 @@ export declare namespace commands {
|
|
|
2892
2937
|
*/
|
|
2893
2938
|
readonly groupNodes: CommandId;
|
|
2894
2939
|
/**
|
|
2895
|
-
* Gets the identifier of the system command that performs a grouped layout.
|
|
2940
|
+
* Gets the identifier of the system command that performs a grouped layout on the whole chart.
|
|
2896
2941
|
* @i2since 1.0
|
|
2897
2942
|
*/
|
|
2898
2943
|
readonly layoutGrouped: CommandId;
|
|
2899
2944
|
/**
|
|
2900
|
-
* Gets the identifier of the system command that performs a
|
|
2945
|
+
* Gets the identifier of the system command that performs a grouped layout on the current selection.
|
|
2946
|
+
* @i2since 1.9
|
|
2947
|
+
*/
|
|
2948
|
+
readonly layoutGroupedOnSelection: CommandId;
|
|
2949
|
+
/**
|
|
2950
|
+
* Gets the identifier of the system command that performs a grouped layout within a group.
|
|
2951
|
+
* @i2since 1.9
|
|
2952
|
+
*/
|
|
2953
|
+
readonly layoutGroupedWithinGroup: CommandId;
|
|
2954
|
+
/**
|
|
2955
|
+
* Gets the identifier of the system command that performs a packed layout on the whole chart.
|
|
2901
2956
|
* @i2since 1.0
|
|
2902
2957
|
*/
|
|
2903
2958
|
readonly layoutPacked: CommandId;
|
|
2904
2959
|
/**
|
|
2905
|
-
* Gets the identifier of the system command that performs a
|
|
2960
|
+
* Gets the identifier of the system command that performs a packed layout on the current selection.
|
|
2961
|
+
* @i2since 1.9
|
|
2962
|
+
*/
|
|
2963
|
+
readonly layoutPackedOnSelection: CommandId;
|
|
2964
|
+
/**
|
|
2965
|
+
* Gets the identifier of the system command that performs a packed layout within a group.
|
|
2966
|
+
* @i2since 1.9
|
|
2967
|
+
*/
|
|
2968
|
+
readonly layoutPackedWithinGroup: CommandId;
|
|
2969
|
+
/**
|
|
2970
|
+
* Gets the identifier of the system command that performs a peacock layout on the whole chart.
|
|
2906
2971
|
* @i2since 1.0
|
|
2907
2972
|
*/
|
|
2908
2973
|
readonly layoutPeacock: CommandId;
|
|
2909
2974
|
/**
|
|
2910
|
-
* Gets the identifier of the system command that performs a
|
|
2975
|
+
* Gets the identifier of the system command that performs a peacock layout on the current selection.
|
|
2976
|
+
* @i2since 1.9
|
|
2977
|
+
*/
|
|
2978
|
+
readonly layoutPeacockOnSelection: CommandId;
|
|
2979
|
+
/**
|
|
2980
|
+
* Gets the identifier of the system command that performs a peacock layout within a group.
|
|
2981
|
+
* @i2since 1.9
|
|
2982
|
+
*/
|
|
2983
|
+
readonly layoutPeacockWithinGroup: CommandId;
|
|
2984
|
+
/**
|
|
2985
|
+
* Gets the identifier of the system command that performs a circular layout on the whole chart.
|
|
2911
2986
|
* @i2since 1.8
|
|
2912
2987
|
*/
|
|
2913
2988
|
readonly layoutCircular: CommandId;
|
|
2914
2989
|
/**
|
|
2915
|
-
* Gets the identifier of the system command that performs
|
|
2990
|
+
* Gets the identifier of the system command that performs a circular layout on the current selection.
|
|
2991
|
+
* @i2since 1.9
|
|
2992
|
+
*/
|
|
2993
|
+
readonly layoutCircularOnSelection: CommandId;
|
|
2994
|
+
/**
|
|
2995
|
+
* Gets the identifier of the system command that performs a circular layout within a group.
|
|
2996
|
+
* @i2since 1.9
|
|
2997
|
+
*/
|
|
2998
|
+
readonly layoutCircularWithinGroup: CommandId;
|
|
2999
|
+
/**
|
|
3000
|
+
* Gets the identifier of the system command that performs an organization layout on the whole chart.
|
|
2916
3001
|
* @i2since 1.8
|
|
2917
3002
|
*/
|
|
2918
3003
|
readonly layoutOrganization: CommandId;
|
|
2919
3004
|
/**
|
|
2920
|
-
* Gets the identifier of the system command that performs
|
|
3005
|
+
* Gets the identifier of the system command that performs an organization layout on the current selection.
|
|
3006
|
+
* @i2since 1.9
|
|
3007
|
+
*/
|
|
3008
|
+
readonly layoutOrganizationOnSelection: CommandId;
|
|
3009
|
+
/**
|
|
3010
|
+
* Gets the identifier of the system command that performs an organization layout within a group.
|
|
3011
|
+
* @i2since 1.9
|
|
3012
|
+
*/
|
|
3013
|
+
readonly layoutOrganizationWithinGroup: CommandId;
|
|
3014
|
+
/**
|
|
3015
|
+
* Gets the identifier of the system command that performs a minimize crossed links layout on the whole chart.
|
|
2921
3016
|
* @i2since 1.8
|
|
2922
3017
|
*/
|
|
2923
3018
|
readonly layoutMinimizeCrossedLinks: CommandId;
|
|
3019
|
+
/**
|
|
3020
|
+
* Gets the identifier of the system command that performs a minimize crossed links layout on the current selection.
|
|
3021
|
+
* @i2since 1.9
|
|
3022
|
+
*/
|
|
3023
|
+
readonly layoutMinimizeCrossedLinksOnSelection: CommandId;
|
|
3024
|
+
/**
|
|
3025
|
+
* Gets the identifier of the system command that performs a minimize crossed links layout within a group.
|
|
3026
|
+
* @i2since 1.9
|
|
3027
|
+
*/
|
|
3028
|
+
readonly layoutMinimizeCrossedLinksWithinGroup: CommandId;
|
|
2924
3029
|
/**
|
|
2925
3030
|
* Gets the identifier of the system command that maximizes selected groups in the chart.
|
|
2926
3031
|
*
|
|
@@ -4519,7 +4624,7 @@ export declare interface NotebookStatic {
|
|
|
4519
4624
|
* @public
|
|
4520
4625
|
* @i2since 1.0
|
|
4521
4626
|
*/
|
|
4522
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8'): Promise<IEntryPointApi>;
|
|
4627
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8' | '1.9'): Promise<IEntryPointApi>;
|
|
4523
4628
|
}
|
|
4524
4629
|
|
|
4525
4630
|
/**
|
|
@@ -5975,6 +6080,11 @@ export declare namespace visual {
|
|
|
5975
6080
|
* @i2since 1.2
|
|
5976
6081
|
*/
|
|
5977
6082
|
export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
|
|
6083
|
+
/**
|
|
6084
|
+
* The style of a line on an i2 Notebook chart. The default value is `'solid'`.
|
|
6085
|
+
* @i2since 1.9
|
|
6086
|
+
*/
|
|
6087
|
+
export type LineStyle = 'solid' | 'dashed' | 'dotted';
|
|
5978
6088
|
/**
|
|
5979
6089
|
* A label for an element.
|
|
5980
6090
|
* @i2since 1.5
|
|
@@ -6177,6 +6287,21 @@ export declare namespace visual {
|
|
|
6177
6287
|
* @i2since 1.2
|
|
6178
6288
|
*/
|
|
6179
6289
|
readonly size: IElementSetting<NodeSize>;
|
|
6290
|
+
/**
|
|
6291
|
+
* Gets the border color of the node, or null if there is no border.
|
|
6292
|
+
* @i2since 1.9
|
|
6293
|
+
*/
|
|
6294
|
+
readonly borderColor: IElementSetting<string | null>;
|
|
6295
|
+
/**
|
|
6296
|
+
* Gets the border width of the node.
|
|
6297
|
+
* @i2since 1.9
|
|
6298
|
+
*/
|
|
6299
|
+
readonly borderWidth: IElementSetting<number>;
|
|
6300
|
+
/**
|
|
6301
|
+
* Gets the border style of the node.
|
|
6302
|
+
* @i2since 1.9
|
|
6303
|
+
*/
|
|
6304
|
+
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6180
6305
|
}
|
|
6181
6306
|
/**
|
|
6182
6307
|
* A style for an edge, which affects its appearance.
|
|
@@ -6188,6 +6313,11 @@ export declare namespace visual {
|
|
|
6188
6313
|
* @i2since 1.8
|
|
6189
6314
|
*/
|
|
6190
6315
|
readonly width: IElementSetting<number>;
|
|
6316
|
+
/**
|
|
6317
|
+
* Gets the line style of the edge.
|
|
6318
|
+
* @i2since 1.9
|
|
6319
|
+
*/
|
|
6320
|
+
readonly lineStyle: IElementSetting<LineStyle>;
|
|
6191
6321
|
}
|
|
6192
6322
|
/**
|
|
6193
6323
|
* A rectangular area, such as the boundary of the chart view.
|
|
@@ -6301,6 +6431,11 @@ export declare namespace visual {
|
|
|
6301
6431
|
* @i2since 1.8
|
|
6302
6432
|
*/
|
|
6303
6433
|
readonly borderWidth: IElementSetting<number>;
|
|
6434
|
+
/**
|
|
6435
|
+
* Gets the border style of the node group.
|
|
6436
|
+
* @i2since 1.9
|
|
6437
|
+
*/
|
|
6438
|
+
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6304
6439
|
}
|
|
6305
6440
|
}
|
|
6306
6441
|
|
package/lib/index.js
CHANGED