@i2analyze/notebook-sdk 1.8.0-dev.2 → 1.8.0-dev.4

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.
@@ -694,6 +694,41 @@ export declare namespace app {
694
694
  * @i2since 1.8
695
695
  */
696
696
  export interface INodeGroupEditor {
697
+ /**
698
+ * Sets or resets the label of the node group.
699
+ *
700
+ * @param label - The label to set, or `undefined` to reset the label to the default.
701
+ * @returns The node group, with its label set to the specified value.
702
+ * @i2since 1.8
703
+ */
704
+ setLabel(label: string | undefined): this;
705
+ /**
706
+ * Sets or resets the color of the node group.
707
+ *
708
+ * @param color - The color to set, or `undefined` to reset the color to the theme default.
709
+ * @returns The node group, with its color set to the specified value.
710
+ * @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.
711
+ * @i2since 1.8
712
+ */
713
+ setBorderColor(color: string | undefined): this;
714
+ /**
715
+ * Sets or resets the fill color of the node group.
716
+ *
717
+ * @param color - The color to set, or `undefined` to reset the fill color to the theme default.
718
+ * @returns The node group, with its fill color set to the specified value.
719
+ * @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.
720
+ * @i2since 1.8
721
+ */
722
+ setFillColor(color: string | undefined): this;
723
+ /**
724
+ * Sets or resets the image for the node group.
725
+ *
726
+ * @param href - The URL of the image to use.
727
+ * @param description - A description of the image.
728
+ * @returns The node group, with its image set to the specified URL and description.
729
+ * @i2since 1.8
730
+ */
731
+ setImage(href: string, description?: string): this;
697
732
  /**
698
733
  * Adds nodes to the group.
699
734
  * @param nodes - The nodes to add to the group.
@@ -2502,7 +2537,7 @@ export declare namespace commands {
2502
2537
  */
2503
2538
  readonly addToMap: CommandId;
2504
2539
  /**
2505
- * Gets the identifier of the system command opens the chart settings dialog.
2540
+ * Gets the identifier of the system command that opens the chart settings dialog.
2506
2541
  * @i2since 1.5
2507
2542
  */
2508
2543
  readonly chartSettings: CommandId;
@@ -2521,6 +2556,11 @@ export declare namespace commands {
2521
2556
  * @i2since 1.0
2522
2557
  */
2523
2558
  readonly deleteSelected: CommandId;
2559
+ /**
2560
+ * Gets the identifier of the system command that allows users to download records in Excel format.
2561
+ * @i2since 1.6
2562
+ */
2563
+ readonly downloadRecords: CommandId;
2524
2564
  /**
2525
2565
  * Gets the identifier of the system command that performs a one-level expand operation on the current selection.
2526
2566
  * @i2since 1.1
@@ -2536,6 +2576,11 @@ export declare namespace commands {
2536
2576
  * @i2since 1.0
2537
2577
  */
2538
2578
  readonly getPaths: CommandId;
2579
+ /**
2580
+ * Gets the identifier of the system command that adds selected nodes to a group.
2581
+ * @i2since 1.8
2582
+ */
2583
+ readonly groupNodes: CommandId;
2539
2584
  /**
2540
2585
  * Gets the identifier of the system command that performs a grouped layout.
2541
2586
  * @i2since 1.0
@@ -2657,10 +2702,10 @@ export declare namespace commands {
2657
2702
  */
2658
2703
  readonly undo: CommandId;
2659
2704
  /**
2660
- * Gets the identifier of the system command that allows users to download records in Excel format.
2661
- * @i2since 1.6
2705
+ * Gets the identifier of the system command that removes selected nodes from their group.
2706
+ * @i2since 1.8
2662
2707
  */
2663
- readonly downloadRecords: CommandId;
2708
+ readonly ungroupNodes: CommandId;
2664
2709
  }
2665
2710
  /**
2666
2711
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -5681,12 +5726,43 @@ export declare namespace visual {
5681
5726
  * @i2since 1.8
5682
5727
  */
5683
5728
  readonly id: ElementId;
5729
+ /**
5730
+ * Gets the label of the node group, or undefined if there is no explicit label.
5731
+ * @i2since 1.8
5732
+ */
5733
+ readonly label: string | undefined;
5734
+ /**
5735
+ * Gets the style of the node group.
5736
+ * @i2since 1.8
5737
+ */
5738
+ readonly style: INodeGroupStyle;
5684
5739
  /**
5685
5740
  * Gets the nodes in the node group.
5686
5741
  * @i2since 1.8
5687
5742
  */
5688
5743
  readonly nodes: data.IKeyedReadOnlyCollection<ElementId, INode>;
5689
5744
  }
5745
+ /**
5746
+ * A style for a node group, which affects its appearance.
5747
+ * @i2since 1.8
5748
+ */
5749
+ export interface INodeGroupStyle extends IElementStyleBase {
5750
+ /**
5751
+ * Gets the image to display for the node group.
5752
+ * @i2since 1.8
5753
+ */
5754
+ readonly image: IImageSetting;
5755
+ /**
5756
+ * Gets the border color of the node group, or undefined if there is no explicit border color.
5757
+ * @i2since 1.8
5758
+ */
5759
+ readonly borderColor: IElementSetting<string | undefined>;
5760
+ /**
5761
+ * Gets the fill color of the node group, or undefined if there is no explicit fill color.
5762
+ * @i2since 1.8
5763
+ */
5764
+ readonly fillColor: IElementSetting<string | undefined>;
5765
+ }
5690
5766
  }
5691
5767
 
5692
5768
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0-dev.2",
3
+ "version": "1.8.0-dev.4",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {