@i2analyze/notebook-sdk 1.9.0-dev.7 → 1.9.0-dev.9
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 +46 -24
- package/package.json +1 -1
|
@@ -747,30 +747,29 @@ export declare namespace app {
|
|
|
747
747
|
/**
|
|
748
748
|
* Sets or resets the border color of the node.
|
|
749
749
|
*
|
|
750
|
-
* @param color - The color to set, or `
|
|
750
|
+
* @param color - The color to set, or `undefined` to reset the border color to the theme default.
|
|
751
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
|
|
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.
|
|
753
753
|
* @i2since 1.9
|
|
754
754
|
*/
|
|
755
|
-
setBorderColor(color: string | undefined
|
|
755
|
+
setBorderColor(color: string | undefined): this;
|
|
756
756
|
/**
|
|
757
757
|
* Sets or resets the border width of the node.
|
|
758
758
|
*
|
|
759
|
-
* @param width - The width to set, or `undefined` to reset the width to the theme default.
|
|
759
|
+
* @param width - The width to set (valid range is 1 to 32), or `undefined` to reset the width to the theme default.
|
|
760
760
|
* @returns The node, with its border width set to the specified value.
|
|
761
|
-
* @throws `Error` if the specified value is
|
|
762
|
-
* @remarks A size of 0 is valid, and indicates that the node has no border - equivalent to `setBorderColor(null)`.
|
|
761
|
+
* @throws `Error` if the specified value is neither `undefined` nor a number in the range 1 to 32.
|
|
763
762
|
* @i2since 1.9
|
|
764
763
|
*/
|
|
765
764
|
setBorderWidth(width: number | undefined): this;
|
|
766
765
|
/**
|
|
767
766
|
* Sets or resets the border style of the node.
|
|
768
767
|
*
|
|
769
|
-
* @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
|
|
768
|
+
* @param lineStyle - The line style to set, or `null` to remove the border, or `undefined` to reset to the default ('solid').
|
|
770
769
|
* @returns The node, with its border style set to the specified value.
|
|
771
770
|
* @i2since 1.9
|
|
772
771
|
*/
|
|
773
|
-
setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
772
|
+
setBorderStyle(lineStyle: visual.LineStyle | null | undefined): this;
|
|
774
773
|
}
|
|
775
774
|
/**
|
|
776
775
|
* A set of methods for modifying the appearance of an edge.
|
|
@@ -810,30 +809,29 @@ export declare namespace app {
|
|
|
810
809
|
/**
|
|
811
810
|
* Sets or resets the color of the node group.
|
|
812
811
|
*
|
|
813
|
-
* @param color - The color to set, or `
|
|
812
|
+
* @param color - The color to set, or `undefined` to reset the border color to the theme default.
|
|
814
813
|
* @returns The node group, with its border color set to the specified value.
|
|
815
|
-
* @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
|
|
814
|
+
* @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.
|
|
816
815
|
* @i2since 1.8
|
|
817
816
|
*/
|
|
818
|
-
setBorderColor(color: string | undefined
|
|
817
|
+
setBorderColor(color: string | undefined): this;
|
|
819
818
|
/**
|
|
820
819
|
* Sets or resets the border width of the node group.
|
|
821
820
|
*
|
|
822
|
-
* @param width - The width to set, or `undefined` to reset the width to the theme default.
|
|
821
|
+
* @param width - The width to set (valid range is 1 to 32), or `undefined` to reset the width to the theme default.
|
|
823
822
|
* @returns The node group, with its border width set to the specified value.
|
|
824
|
-
* @throws `Error` if the specified value is
|
|
825
|
-
* @remarks A size of 0 is valid, and indicates that the node group has no border - equivalent to `setBorderColor(null)`.
|
|
823
|
+
* @throws `Error` if the specified value is neither `undefined` nor a number in the range 1 to 32.
|
|
826
824
|
* @i2since 1.8
|
|
827
825
|
*/
|
|
828
826
|
setBorderWidth(width: number | undefined): this;
|
|
829
827
|
/**
|
|
830
828
|
* Sets or resets the border style of the node group.
|
|
831
829
|
*
|
|
832
|
-
* @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
|
|
830
|
+
* @param lineStyle - The line style to set, or `null` to remove the border, or `undefined` to reset to the default ('solid').
|
|
833
831
|
* @returns The node group, with its border style set to the specified value.
|
|
834
832
|
* @i2since 1.9
|
|
835
833
|
*/
|
|
836
|
-
setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
|
|
834
|
+
setBorderStyle(lineStyle: visual.LineStyle | null | undefined): this;
|
|
837
835
|
/**
|
|
838
836
|
* Sets or resets the background color of the node group.
|
|
839
837
|
*
|
|
@@ -2195,6 +2193,11 @@ export declare namespace commands {
|
|
|
2195
2193
|
* @i2since 1.0
|
|
2196
2194
|
*/
|
|
2197
2195
|
export type CommandType = 'application' | 'records' | 'unscoped';
|
|
2196
|
+
/**
|
|
2197
|
+
* A type for a group of actions, which determines how the group is rendered in the user interface.
|
|
2198
|
+
* @i2since 1.9
|
|
2199
|
+
*/
|
|
2200
|
+
export type GroupType = 'expanded' | 'collapsed' | 'command';
|
|
2198
2201
|
/**
|
|
2199
2202
|
* A mapping of command types to their payload types.
|
|
2200
2203
|
* @i2since 1.0
|
|
@@ -2615,6 +2618,12 @@ export declare namespace commands {
|
|
|
2615
2618
|
readonly id: GroupId;
|
|
2616
2619
|
/**
|
|
2617
2620
|
* Indicates whether the group is initially expanded (`false`) or collapsed (`true`) in the user interface.
|
|
2621
|
+
*
|
|
2622
|
+
* @remarks
|
|
2623
|
+
* This is deprecated in favour of the more explicit {@link commands.IGroup."type"} property.
|
|
2624
|
+
* When migrating, use `type: 'collapsed'` instead of `isCollapsed: true`, and `type: 'expanded'` instead of
|
|
2625
|
+
* `isCollapsed: false` or omitting the property.
|
|
2626
|
+
* @deprecated Deprecated since version 1.9. Use {@link commands.IGroup."type"} instead.
|
|
2618
2627
|
* @i2since 1.5
|
|
2619
2628
|
*/
|
|
2620
2629
|
readonly isCollapsed?: boolean;
|
|
@@ -2634,6 +2643,19 @@ export declare namespace commands {
|
|
|
2634
2643
|
* @i2since 1.0
|
|
2635
2644
|
*/
|
|
2636
2645
|
readonly label?: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* Gets the render type of the group.
|
|
2648
|
+
*
|
|
2649
|
+
* @remarks
|
|
2650
|
+
* Use this property to explicitly control how the group is presented in the user interface. The options are:
|
|
2651
|
+
* - `'expanded'` - shows all commands inline (default)
|
|
2652
|
+
* - `'collapsed'` - shows the group as a single icon/label button that opens a dropdown
|
|
2653
|
+
* - `'command'` - indicates the group exposes a primary action (the first surfaced command) while also presenting a menu of related actions; user may render this as a split button in a ribbon, or as an actionable menu entry with a submenu in popup menus.
|
|
2654
|
+
*
|
|
2655
|
+
* If `type` is specified it takes precedence over the deprecated {@link commands.IGroupBase.isCollapsed} boolean.
|
|
2656
|
+
* @i2since 1.9
|
|
2657
|
+
*/
|
|
2658
|
+
readonly type?: GroupType;
|
|
2637
2659
|
}
|
|
2638
2660
|
/**
|
|
2639
2661
|
* A group of actions in a popup menu that do not have a label or an icon.
|
|
@@ -6288,20 +6310,20 @@ export declare namespace visual {
|
|
|
6288
6310
|
*/
|
|
6289
6311
|
readonly size: IElementSetting<NodeSize>;
|
|
6290
6312
|
/**
|
|
6291
|
-
* Gets the border color of the node
|
|
6313
|
+
* Gets the border color of the node.
|
|
6292
6314
|
* @i2since 1.9
|
|
6293
6315
|
*/
|
|
6294
|
-
readonly borderColor: IElementSetting<string
|
|
6316
|
+
readonly borderColor: IElementSetting<string>;
|
|
6295
6317
|
/**
|
|
6296
6318
|
* Gets the border width of the node.
|
|
6297
6319
|
* @i2since 1.9
|
|
6298
6320
|
*/
|
|
6299
6321
|
readonly borderWidth: IElementSetting<number>;
|
|
6300
6322
|
/**
|
|
6301
|
-
* Gets the border style of the node.
|
|
6323
|
+
* Gets the border style of the node, or null if there is no border.
|
|
6302
6324
|
* @i2since 1.9
|
|
6303
6325
|
*/
|
|
6304
|
-
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6326
|
+
readonly borderStyle: IElementSetting<LineStyle | null>;
|
|
6305
6327
|
}
|
|
6306
6328
|
/**
|
|
6307
6329
|
* A style for an edge, which affects its appearance.
|
|
@@ -6422,20 +6444,20 @@ export declare namespace visual {
|
|
|
6422
6444
|
*/
|
|
6423
6445
|
readonly color: IElementSetting<string | null>;
|
|
6424
6446
|
/**
|
|
6425
|
-
* Gets the border color of the node group
|
|
6447
|
+
* Gets the border color of the node group.
|
|
6426
6448
|
* @i2since 1.8
|
|
6427
6449
|
*/
|
|
6428
|
-
readonly borderColor: IElementSetting<string
|
|
6450
|
+
readonly borderColor: IElementSetting<string>;
|
|
6429
6451
|
/**
|
|
6430
6452
|
* Gets the border width of the node group.
|
|
6431
6453
|
* @i2since 1.8
|
|
6432
6454
|
*/
|
|
6433
6455
|
readonly borderWidth: IElementSetting<number>;
|
|
6434
6456
|
/**
|
|
6435
|
-
* Gets the border style of the node group.
|
|
6457
|
+
* Gets the border style of the node group, or null if there is no border.
|
|
6436
6458
|
* @i2since 1.9
|
|
6437
6459
|
*/
|
|
6438
|
-
readonly borderStyle: IElementSetting<LineStyle>;
|
|
6460
|
+
readonly borderStyle: IElementSetting<LineStyle | null>;
|
|
6439
6461
|
}
|
|
6440
6462
|
}
|
|
6441
6463
|
|