@i2analyze/notebook-sdk 1.8.0-dev.1 → 1.8.0-dev.11
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 +150 -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,74 @@ 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;
|
|
760
|
+
/**
|
|
761
|
+
* Sets whether the node group is collapsed or expanded.
|
|
762
|
+
*
|
|
763
|
+
* @param isCollapsed - `true` to collapse the group, `false` to expand it.
|
|
764
|
+
* @returns The node group, with its collapsed state set to the specified value.
|
|
765
|
+
* @i2since 1.8
|
|
766
|
+
*/
|
|
767
|
+
setIsCollapsed(isCollapsed: boolean): this;
|
|
697
768
|
/**
|
|
698
769
|
* Adds nodes to the group.
|
|
699
770
|
* @param nodes - The nodes to add to the group.
|
|
@@ -1035,6 +1106,14 @@ export declare namespace app {
|
|
|
1035
1106
|
* @i2since 1.8
|
|
1036
1107
|
*/
|
|
1037
1108
|
removeNodeGroups(nodeGroups: NodeGroupSpecifier | Iterable<NodeGroupSpecifier>): boolean;
|
|
1109
|
+
/**
|
|
1110
|
+
* Removes nodes from their node group. If the group is empty after the mutation is committed, the group itself is removed.
|
|
1111
|
+
*
|
|
1112
|
+
* @param nodes - The node or nodes to be removed.
|
|
1113
|
+
* @returns `true` if one or more nodes were successfully removed from the group; `false` if none of the nodes existed.
|
|
1114
|
+
* @i2since 1.8
|
|
1115
|
+
*/
|
|
1116
|
+
removeFromNodeGroup(nodes: NodeSpecifier | Iterable<NodeSpecifier>): boolean;
|
|
1038
1117
|
/**
|
|
1039
1118
|
* Removes the currently selected records from the chart.
|
|
1040
1119
|
* @i2since 1.1
|
|
@@ -2494,7 +2573,7 @@ export declare namespace commands {
|
|
|
2494
2573
|
*/
|
|
2495
2574
|
readonly addToMap: CommandId;
|
|
2496
2575
|
/**
|
|
2497
|
-
* Gets the identifier of the system command opens the chart settings dialog.
|
|
2576
|
+
* Gets the identifier of the system command that opens the chart settings dialog.
|
|
2498
2577
|
* @i2since 1.5
|
|
2499
2578
|
*/
|
|
2500
2579
|
readonly chartSettings: CommandId;
|
|
@@ -2513,6 +2592,11 @@ export declare namespace commands {
|
|
|
2513
2592
|
* @i2since 1.0
|
|
2514
2593
|
*/
|
|
2515
2594
|
readonly deleteSelected: CommandId;
|
|
2595
|
+
/**
|
|
2596
|
+
* Gets the identifier of the system command that allows users to download records in Excel format.
|
|
2597
|
+
* @i2since 1.6
|
|
2598
|
+
*/
|
|
2599
|
+
readonly downloadRecords: CommandId;
|
|
2516
2600
|
/**
|
|
2517
2601
|
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2518
2602
|
* @i2since 1.1
|
|
@@ -2528,6 +2612,11 @@ export declare namespace commands {
|
|
|
2528
2612
|
* @i2since 1.0
|
|
2529
2613
|
*/
|
|
2530
2614
|
readonly getPaths: CommandId;
|
|
2615
|
+
/**
|
|
2616
|
+
* Gets the identifier of the system command that adds selected nodes to a group.
|
|
2617
|
+
* @i2since 1.8
|
|
2618
|
+
*/
|
|
2619
|
+
readonly groupNodes: CommandId;
|
|
2531
2620
|
/**
|
|
2532
2621
|
* Gets the identifier of the system command that performs a grouped layout.
|
|
2533
2622
|
* @i2since 1.0
|
|
@@ -2649,10 +2738,10 @@ export declare namespace commands {
|
|
|
2649
2738
|
*/
|
|
2650
2739
|
readonly undo: CommandId;
|
|
2651
2740
|
/**
|
|
2652
|
-
* Gets the identifier of the system command that
|
|
2653
|
-
* @i2since 1.
|
|
2741
|
+
* Gets the identifier of the system command that removes selected nodes from their group.
|
|
2742
|
+
* @i2since 1.8
|
|
2654
2743
|
*/
|
|
2655
|
-
readonly
|
|
2744
|
+
readonly ungroupNodes: CommandId;
|
|
2656
2745
|
}
|
|
2657
2746
|
/**
|
|
2658
2747
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -5593,7 +5682,12 @@ export declare namespace visual {
|
|
|
5593
5682
|
* A style for a node, which affects its appearance.
|
|
5594
5683
|
* @i2since 1.0
|
|
5595
5684
|
*/
|
|
5596
|
-
export interface INodeStyle extends IElementStyleBase {
|
|
5685
|
+
export interface INodeStyle extends Omit<IElementStyleBase, 'color'> {
|
|
5686
|
+
/**
|
|
5687
|
+
* Gets the color of the node, or null if there is no color and the node background is transparent.
|
|
5688
|
+
* @i2since 1.2
|
|
5689
|
+
*/
|
|
5690
|
+
readonly color: IElementSetting<string | null>;
|
|
5597
5691
|
/**
|
|
5598
5692
|
* Gets the image to display for the node.
|
|
5599
5693
|
* @i2since 1.0
|
|
@@ -5610,6 +5704,11 @@ export declare namespace visual {
|
|
|
5610
5704
|
* @i2since 1.2
|
|
5611
5705
|
*/
|
|
5612
5706
|
export interface IEdgeStyle extends IElementStyleBase {
|
|
5707
|
+
/**
|
|
5708
|
+
* Gets the width of the edge.
|
|
5709
|
+
* @i2since 1.8
|
|
5710
|
+
*/
|
|
5711
|
+
readonly width: IElementSetting<number>;
|
|
5613
5712
|
}
|
|
5614
5713
|
/**
|
|
5615
5714
|
* A rectangular area, such as the boundary of the chart view.
|
|
@@ -5673,12 +5772,57 @@ export declare namespace visual {
|
|
|
5673
5772
|
* @i2since 1.8
|
|
5674
5773
|
*/
|
|
5675
5774
|
readonly id: ElementId;
|
|
5775
|
+
/**
|
|
5776
|
+
* Gets the label of the node group, or undefined if there is no explicit label.
|
|
5777
|
+
* @i2since 1.8
|
|
5778
|
+
*/
|
|
5779
|
+
readonly label: string | undefined;
|
|
5780
|
+
/**
|
|
5781
|
+
* Gets the style of the node group.
|
|
5782
|
+
* @i2since 1.8
|
|
5783
|
+
*/
|
|
5784
|
+
readonly style: INodeGroupStyle;
|
|
5785
|
+
/**
|
|
5786
|
+
* Indicates the collapsed state of the node group.
|
|
5787
|
+
* @remarks
|
|
5788
|
+
* A collapsed node group is represented by a single node that contains the label and
|
|
5789
|
+
* image of the group, and can be expanded to show the individual nodes in the group.
|
|
5790
|
+
* @returns `true` if the node group is collapsed; `false` if it is expanded.
|
|
5791
|
+
* @i2since 1.8
|
|
5792
|
+
*/
|
|
5793
|
+
readonly isCollapsed: boolean;
|
|
5676
5794
|
/**
|
|
5677
5795
|
* Gets the nodes in the node group.
|
|
5678
5796
|
* @i2since 1.8
|
|
5679
5797
|
*/
|
|
5680
5798
|
readonly nodes: data.IKeyedReadOnlyCollection<ElementId, INode>;
|
|
5681
5799
|
}
|
|
5800
|
+
/**
|
|
5801
|
+
* A style for a node group, which affects its appearance.
|
|
5802
|
+
* @i2since 1.8
|
|
5803
|
+
*/
|
|
5804
|
+
export interface INodeGroupStyle {
|
|
5805
|
+
/**
|
|
5806
|
+
* Gets the image to display for the node group.
|
|
5807
|
+
* @i2since 1.8
|
|
5808
|
+
*/
|
|
5809
|
+
readonly image: IImageSetting;
|
|
5810
|
+
/**
|
|
5811
|
+
* Gets the color of the node group, or null if there is no background.
|
|
5812
|
+
* @i2since 1.8
|
|
5813
|
+
*/
|
|
5814
|
+
readonly color: IElementSetting<string | null>;
|
|
5815
|
+
/**
|
|
5816
|
+
* Gets the border color of the node group, or null if there is no border.
|
|
5817
|
+
* @i2since 1.8
|
|
5818
|
+
*/
|
|
5819
|
+
readonly borderColor: IElementSetting<string | null>;
|
|
5820
|
+
/**
|
|
5821
|
+
* Gets the border width of the node group.
|
|
5822
|
+
* @i2since 1.8
|
|
5823
|
+
*/
|
|
5824
|
+
readonly borderWidth: IElementSetting<number>;
|
|
5825
|
+
}
|
|
5682
5826
|
}
|
|
5683
5827
|
|
|
5684
5828
|
export { }
|