@i2analyze/notebook-sdk 1.8.0-dev.8 → 1.8.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.
@@ -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
  *
@@ -5657,7 +5666,12 @@ export declare namespace visual {
5657
5666
  * A style for a node, which affects its appearance.
5658
5667
  * @i2since 1.0
5659
5668
  */
5660
- export interface INodeStyle extends IElementStyleBase {
5669
+ export interface INodeStyle extends Omit<IElementStyleBase, 'color'> {
5670
+ /**
5671
+ * Gets the color of the node, or null if there is no color and the node background is transparent.
5672
+ * @i2since 1.2
5673
+ */
5674
+ readonly color: IElementSetting<string | null>;
5661
5675
  /**
5662
5676
  * Gets the image to display for the node.
5663
5677
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0-dev.8",
3
+ "version": "1.8.0-dev.9",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {