@i2analyze/notebook-sdk 1.9.0-dev.5 → 1.9.0-dev.6
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 +76 -1
- 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;
|
|
@@ -4519,7 +4564,7 @@ export declare interface NotebookStatic {
|
|
|
4519
4564
|
* @public
|
|
4520
4565
|
* @i2since 1.0
|
|
4521
4566
|
*/
|
|
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>;
|
|
4567
|
+
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
4568
|
}
|
|
4524
4569
|
|
|
4525
4570
|
/**
|
|
@@ -5975,6 +6020,11 @@ export declare namespace visual {
|
|
|
5975
6020
|
* @i2since 1.2
|
|
5976
6021
|
*/
|
|
5977
6022
|
export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
|
|
6023
|
+
/**
|
|
6024
|
+
* The style of a line on an i2 Notebook chart. The default value is `'solid'`.
|
|
6025
|
+
* @i2since 1.9
|
|
6026
|
+
*/
|
|
6027
|
+
export type LineStyle = 'solid' | 'dashed' | 'dotted';
|
|
5978
6028
|
/**
|
|
5979
6029
|
* A label for an element.
|
|
5980
6030
|
* @i2since 1.5
|
|
@@ -6177,6 +6227,21 @@ export declare namespace visual {
|
|
|
6177
6227
|
* @i2since 1.2
|
|
6178
6228
|
*/
|
|
6179
6229
|
readonly size: IElementSetting<NodeSize>;
|
|
6230
|
+
/**
|
|
6231
|
+
* Gets the border color of the node, or null if there is no border.
|
|
6232
|
+
* @i2since 1.9
|
|
6233
|
+
*/
|
|
6234
|
+
readonly borderColor: IElementSetting<string | null>;
|
|
6235
|
+
/**
|
|
6236
|
+
* Gets the border width of the node.
|
|
6237
|
+
* @i2since 1.9
|
|
6238
|
+
*/
|
|
6239
|
+
readonly borderWidth: IElementSetting<number>;
|
|
6240
|
+
/**
|
|
6241
|
+
* Gets the border style of the node.
|
|
6242
|
+
* @i2since 1.9
|
|
6243
|
+
*/
|
|
6244
|
+
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6180
6245
|
}
|
|
6181
6246
|
/**
|
|
6182
6247
|
* A style for an edge, which affects its appearance.
|
|
@@ -6188,6 +6253,11 @@ export declare namespace visual {
|
|
|
6188
6253
|
* @i2since 1.8
|
|
6189
6254
|
*/
|
|
6190
6255
|
readonly width: IElementSetting<number>;
|
|
6256
|
+
/**
|
|
6257
|
+
* Gets the line style of the edge.
|
|
6258
|
+
* @i2since 1.9
|
|
6259
|
+
*/
|
|
6260
|
+
readonly lineStyle: IElementSetting<LineStyle>;
|
|
6191
6261
|
}
|
|
6192
6262
|
/**
|
|
6193
6263
|
* A rectangular area, such as the boundary of the chart view.
|
|
@@ -6301,6 +6371,11 @@ export declare namespace visual {
|
|
|
6301
6371
|
* @i2since 1.8
|
|
6302
6372
|
*/
|
|
6303
6373
|
readonly borderWidth: IElementSetting<number>;
|
|
6374
|
+
/**
|
|
6375
|
+
* Gets the border style of the node group.
|
|
6376
|
+
* @i2since 1.9
|
|
6377
|
+
*/
|
|
6378
|
+
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6304
6379
|
}
|
|
6305
6380
|
}
|
|
6306
6381
|
|
package/lib/index.js
CHANGED