@i2analyze/notebook-sdk 1.8.0-dev.3 → 1.8.0-dev.5

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 indicate there is no label.
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, or 'undefined' to indicate there is no image.
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 | undefined, description?: string): this;
697
732
  /**
698
733
  * Adds nodes to the group.
699
734
  * @param nodes - The nodes to add to the group.
@@ -5691,12 +5726,43 @@ export declare namespace visual {
5691
5726
  * @i2since 1.8
5692
5727
  */
5693
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;
5694
5739
  /**
5695
5740
  * Gets the nodes in the node group.
5696
5741
  * @i2since 1.8
5697
5742
  */
5698
5743
  readonly nodes: data.IKeyedReadOnlyCollection<ElementId, INode>;
5699
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, or undefined if there is no image.
5752
+ * @i2since 1.8
5753
+ */
5754
+ readonly image?: IImageSetting;
5755
+ /**
5756
+ * Gets the border color of the node group.
5757
+ * @i2since 1.8
5758
+ */
5759
+ readonly borderColor: IElementSetting<string | undefined>;
5760
+ /**
5761
+ * Gets the border width of the node group.
5762
+ * @i2since 1.8
5763
+ */
5764
+ readonly borderWidth: IElementSetting<number | undefined>;
5765
+ }
5700
5766
  }
5701
5767
 
5702
5768
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0-dev.3",
3
+ "version": "1.8.0-dev.5",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {