@i2analyze/notebook-sdk 1.8.0-dev.1 → 1.8.0-dev.10
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 +133 -6
- package/package.json +1 -1
|
@@ -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,12 +697,66 @@ 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.
|
|
694
711
|
* @i2since 1.8
|
|
695
712
|
*/
|
|
696
713
|
export interface INodeGroupEditor {
|
|
714
|
+
/**
|
|
715
|
+
* Sets or resets the label of the node group.
|
|
716
|
+
*
|
|
717
|
+
* @param label - The label to set, or `undefined` to indicate there is no label.
|
|
718
|
+
* @returns The node group, with its label set to the specified value.
|
|
719
|
+
* @i2since 1.8
|
|
720
|
+
*/
|
|
721
|
+
setLabel(label: string | undefined): this;
|
|
722
|
+
/**
|
|
723
|
+
* Sets or resets the color of the node group.
|
|
724
|
+
*
|
|
725
|
+
* @param color - The color to set, or `null` to remove the border, or `undefined` to reset the border color to the theme default.
|
|
726
|
+
* @returns The node group, with its border color set to the specified value.
|
|
727
|
+
* @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`.
|
|
728
|
+
* @i2since 1.8
|
|
729
|
+
*/
|
|
730
|
+
setBorderColor(color: string | undefined | null): this;
|
|
731
|
+
/**
|
|
732
|
+
* Sets or resets the border width of the node group.
|
|
733
|
+
*
|
|
734
|
+
* @param width - The width to set, or `undefined` to reset the width to the theme default.
|
|
735
|
+
* @returns The node group, with its border width set to the specified value.
|
|
736
|
+
* @throws `Error` if the specified value is not either a positive number or `undefined`.
|
|
737
|
+
* @remarks A size of 0 is valid, and indicates that the node group has no border - equivalent to `setBorderColor(null)`.
|
|
738
|
+
* @i2since 1.8
|
|
739
|
+
*/
|
|
740
|
+
setBorderWidth(width: number | undefined): this;
|
|
741
|
+
/**
|
|
742
|
+
* Sets or resets the background color of the node group.
|
|
743
|
+
*
|
|
744
|
+
* @param color - The color to set, or `null` to remove the background, or `undefined` to reset the background color to the theme default.
|
|
745
|
+
* @returns The node group, with its background color set to the specified value.
|
|
746
|
+
* @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`.
|
|
747
|
+
* @i2since 1.8
|
|
748
|
+
*/
|
|
749
|
+
setColor(color: string | undefined | null): this;
|
|
750
|
+
/**
|
|
751
|
+
* Sets or resets the image for the node group.
|
|
752
|
+
*
|
|
753
|
+
* @param href - The URL of the image to use, or 'undefined' to indicate there is no image.
|
|
754
|
+
* @param description - A description of the image.
|
|
755
|
+
* @returns The node group, with its image set to the specified URL and description.
|
|
756
|
+
* @remarks If an image is not set, then a default image will be used when a label is also set.
|
|
757
|
+
* @i2since 1.8
|
|
758
|
+
*/
|
|
759
|
+
setImage(href: string | undefined, description?: string): this;
|
|
697
760
|
/**
|
|
698
761
|
* Adds nodes to the group.
|
|
699
762
|
* @param nodes - The nodes to add to the group.
|
|
@@ -1035,6 +1098,14 @@ export declare namespace app {
|
|
|
1035
1098
|
* @i2since 1.8
|
|
1036
1099
|
*/
|
|
1037
1100
|
removeNodeGroups(nodeGroups: NodeGroupSpecifier | Iterable<NodeGroupSpecifier>): boolean;
|
|
1101
|
+
/**
|
|
1102
|
+
* Removes nodes from their node group. If the group is empty after the mutation is committed, the group itself is removed.
|
|
1103
|
+
*
|
|
1104
|
+
* @param nodes - The node or nodes to be removed.
|
|
1105
|
+
* @returns `true` if one or more nodes were successfully removed from the group; `false` if none of the nodes existed.
|
|
1106
|
+
* @i2since 1.8
|
|
1107
|
+
*/
|
|
1108
|
+
removeFromNodeGroup(nodes: NodeSpecifier | Iterable<NodeSpecifier>): boolean;
|
|
1038
1109
|
/**
|
|
1039
1110
|
* Removes the currently selected records from the chart.
|
|
1040
1111
|
* @i2since 1.1
|
|
@@ -2494,7 +2565,7 @@ export declare namespace commands {
|
|
|
2494
2565
|
*/
|
|
2495
2566
|
readonly addToMap: CommandId;
|
|
2496
2567
|
/**
|
|
2497
|
-
* Gets the identifier of the system command opens the chart settings dialog.
|
|
2568
|
+
* Gets the identifier of the system command that opens the chart settings dialog.
|
|
2498
2569
|
* @i2since 1.5
|
|
2499
2570
|
*/
|
|
2500
2571
|
readonly chartSettings: CommandId;
|
|
@@ -2513,6 +2584,11 @@ export declare namespace commands {
|
|
|
2513
2584
|
* @i2since 1.0
|
|
2514
2585
|
*/
|
|
2515
2586
|
readonly deleteSelected: CommandId;
|
|
2587
|
+
/**
|
|
2588
|
+
* Gets the identifier of the system command that allows users to download records in Excel format.
|
|
2589
|
+
* @i2since 1.6
|
|
2590
|
+
*/
|
|
2591
|
+
readonly downloadRecords: CommandId;
|
|
2516
2592
|
/**
|
|
2517
2593
|
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2518
2594
|
* @i2since 1.1
|
|
@@ -2528,6 +2604,11 @@ export declare namespace commands {
|
|
|
2528
2604
|
* @i2since 1.0
|
|
2529
2605
|
*/
|
|
2530
2606
|
readonly getPaths: CommandId;
|
|
2607
|
+
/**
|
|
2608
|
+
* Gets the identifier of the system command that adds selected nodes to a group.
|
|
2609
|
+
* @i2since 1.8
|
|
2610
|
+
*/
|
|
2611
|
+
readonly groupNodes: CommandId;
|
|
2531
2612
|
/**
|
|
2532
2613
|
* Gets the identifier of the system command that performs a grouped layout.
|
|
2533
2614
|
* @i2since 1.0
|
|
@@ -2649,10 +2730,10 @@ export declare namespace commands {
|
|
|
2649
2730
|
*/
|
|
2650
2731
|
readonly undo: CommandId;
|
|
2651
2732
|
/**
|
|
2652
|
-
* Gets the identifier of the system command that
|
|
2653
|
-
* @i2since 1.
|
|
2733
|
+
* Gets the identifier of the system command that removes selected nodes from their group.
|
|
2734
|
+
* @i2since 1.8
|
|
2654
2735
|
*/
|
|
2655
|
-
readonly
|
|
2736
|
+
readonly ungroupNodes: CommandId;
|
|
2656
2737
|
}
|
|
2657
2738
|
/**
|
|
2658
2739
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -5593,7 +5674,12 @@ export declare namespace visual {
|
|
|
5593
5674
|
* A style for a node, which affects its appearance.
|
|
5594
5675
|
* @i2since 1.0
|
|
5595
5676
|
*/
|
|
5596
|
-
export interface INodeStyle extends IElementStyleBase {
|
|
5677
|
+
export interface INodeStyle extends Omit<IElementStyleBase, 'color'> {
|
|
5678
|
+
/**
|
|
5679
|
+
* Gets the color of the node, or null if there is no color and the node background is transparent.
|
|
5680
|
+
* @i2since 1.2
|
|
5681
|
+
*/
|
|
5682
|
+
readonly color: IElementSetting<string | null>;
|
|
5597
5683
|
/**
|
|
5598
5684
|
* Gets the image to display for the node.
|
|
5599
5685
|
* @i2since 1.0
|
|
@@ -5610,6 +5696,11 @@ export declare namespace visual {
|
|
|
5610
5696
|
* @i2since 1.2
|
|
5611
5697
|
*/
|
|
5612
5698
|
export interface IEdgeStyle extends IElementStyleBase {
|
|
5699
|
+
/**
|
|
5700
|
+
* Gets the width of the edge.
|
|
5701
|
+
* @i2since 1.8
|
|
5702
|
+
*/
|
|
5703
|
+
readonly width: IElementSetting<number>;
|
|
5613
5704
|
}
|
|
5614
5705
|
/**
|
|
5615
5706
|
* A rectangular area, such as the boundary of the chart view.
|
|
@@ -5673,12 +5764,48 @@ export declare namespace visual {
|
|
|
5673
5764
|
* @i2since 1.8
|
|
5674
5765
|
*/
|
|
5675
5766
|
readonly id: ElementId;
|
|
5767
|
+
/**
|
|
5768
|
+
* Gets the label of the node group, or undefined if there is no explicit label.
|
|
5769
|
+
* @i2since 1.8
|
|
5770
|
+
*/
|
|
5771
|
+
readonly label: string | undefined;
|
|
5772
|
+
/**
|
|
5773
|
+
* Gets the style of the node group.
|
|
5774
|
+
* @i2since 1.8
|
|
5775
|
+
*/
|
|
5776
|
+
readonly style: INodeGroupStyle;
|
|
5676
5777
|
/**
|
|
5677
5778
|
* Gets the nodes in the node group.
|
|
5678
5779
|
* @i2since 1.8
|
|
5679
5780
|
*/
|
|
5680
5781
|
readonly nodes: data.IKeyedReadOnlyCollection<ElementId, INode>;
|
|
5681
5782
|
}
|
|
5783
|
+
/**
|
|
5784
|
+
* A style for a node group, which affects its appearance.
|
|
5785
|
+
* @i2since 1.8
|
|
5786
|
+
*/
|
|
5787
|
+
export interface INodeGroupStyle {
|
|
5788
|
+
/**
|
|
5789
|
+
* Gets the image to display for the node group.
|
|
5790
|
+
* @i2since 1.8
|
|
5791
|
+
*/
|
|
5792
|
+
readonly image: IImageSetting;
|
|
5793
|
+
/**
|
|
5794
|
+
* Gets the color of the node group, or null if there is no background.
|
|
5795
|
+
* @i2since 1.8
|
|
5796
|
+
*/
|
|
5797
|
+
readonly color: IElementSetting<string | null>;
|
|
5798
|
+
/**
|
|
5799
|
+
* Gets the border color of the node group, or null if there is no border.
|
|
5800
|
+
* @i2since 1.8
|
|
5801
|
+
*/
|
|
5802
|
+
readonly borderColor: IElementSetting<string | null>;
|
|
5803
|
+
/**
|
|
5804
|
+
* Gets the border width of the node group.
|
|
5805
|
+
* @i2since 1.8
|
|
5806
|
+
*/
|
|
5807
|
+
readonly borderWidth: IElementSetting<number>;
|
|
5808
|
+
}
|
|
5682
5809
|
}
|
|
5683
5810
|
|
|
5684
5811
|
export { }
|