@i2analyze/notebook-sdk 1.9.0-dev.7 → 1.9.0-dev.8

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.
@@ -747,30 +747,29 @@ export declare namespace app {
747
747
  /**
748
748
  * Sets or resets the border color of the node.
749
749
  *
750
- * @param color - The color to set, or `null` to remove the border, or `undefined` to reset the border color to the theme default.
750
+ * @param color - The color to set, or `undefined` to reset the border color to the theme default.
751
751
  * @returns The node, with its border color set to the specified value.
752
- * @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`.
752
+ * @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.
753
753
  * @i2since 1.9
754
754
  */
755
- setBorderColor(color: string | undefined | null): this;
755
+ setBorderColor(color: string | undefined): this;
756
756
  /**
757
757
  * Sets or resets the border width of the node.
758
758
  *
759
- * @param width - The width to set, or `undefined` to reset the width to the theme default.
759
+ * @param width - The width to set (valid range is 1 to 32), or `undefined` to reset the width to the theme default.
760
760
  * @returns The node, with its border width set to the specified value.
761
- * @throws `Error` if the specified value is not either a positive number or `undefined`.
762
- * @remarks A size of 0 is valid, and indicates that the node has no border - equivalent to `setBorderColor(null)`.
761
+ * @throws `Error` if the specified value is neither `undefined` nor a number in the range 1 to 32.
763
762
  * @i2since 1.9
764
763
  */
765
764
  setBorderWidth(width: number | undefined): this;
766
765
  /**
767
766
  * Sets or resets the border style of the node.
768
767
  *
769
- * @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
768
+ * @param lineStyle - The line style to set, or `null` to remove the border, or `undefined` to reset to the default ('solid').
770
769
  * @returns The node, with its border style set to the specified value.
771
770
  * @i2since 1.9
772
771
  */
773
- setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
772
+ setBorderStyle(lineStyle: visual.LineStyle | null | undefined): this;
774
773
  }
775
774
  /**
776
775
  * A set of methods for modifying the appearance of an edge.
@@ -810,30 +809,29 @@ export declare namespace app {
810
809
  /**
811
810
  * Sets or resets the color of the node group.
812
811
  *
813
- * @param color - The color to set, or `null` to remove the border, or `undefined` to reset the border color to the theme default.
812
+ * @param color - The color to set, or `undefined` to reset the border color to the theme default.
814
813
  * @returns The node group, with its border color set to the specified value.
815
- * @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`.
814
+ * @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.
816
815
  * @i2since 1.8
817
816
  */
818
- setBorderColor(color: string | undefined | null): this;
817
+ setBorderColor(color: string | undefined): this;
819
818
  /**
820
819
  * Sets or resets the border width of the node group.
821
820
  *
822
- * @param width - The width to set, or `undefined` to reset the width to the theme default.
821
+ * @param width - The width to set (valid range is 1 to 32), or `undefined` to reset the width to the theme default.
823
822
  * @returns The node group, with its border width set to the specified value.
824
- * @throws `Error` if the specified value is not either a positive number or `undefined`.
825
- * @remarks A size of 0 is valid, and indicates that the node group has no border - equivalent to `setBorderColor(null)`.
823
+ * @throws `Error` if the specified value is neither `undefined` nor a number in the range 1 to 32.
826
824
  * @i2since 1.8
827
825
  */
828
826
  setBorderWidth(width: number | undefined): this;
829
827
  /**
830
828
  * Sets or resets the border style of the node group.
831
829
  *
832
- * @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
830
+ * @param lineStyle - The line style to set, or `null` to remove the border, or `undefined` to reset to the default ('solid').
833
831
  * @returns The node group, with its border style set to the specified value.
834
832
  * @i2since 1.9
835
833
  */
836
- setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
834
+ setBorderStyle(lineStyle: visual.LineStyle | null | undefined): this;
837
835
  /**
838
836
  * Sets or resets the background color of the node group.
839
837
  *
@@ -6288,20 +6286,20 @@ export declare namespace visual {
6288
6286
  */
6289
6287
  readonly size: IElementSetting<NodeSize>;
6290
6288
  /**
6291
- * Gets the border color of the node, or null if there is no border.
6289
+ * Gets the border color of the node.
6292
6290
  * @i2since 1.9
6293
6291
  */
6294
- readonly borderColor: IElementSetting<string | null>;
6292
+ readonly borderColor: IElementSetting<string>;
6295
6293
  /**
6296
6294
  * Gets the border width of the node.
6297
6295
  * @i2since 1.9
6298
6296
  */
6299
6297
  readonly borderWidth: IElementSetting<number>;
6300
6298
  /**
6301
- * Gets the border style of the node.
6299
+ * Gets the border style of the node, or null if there is no border.
6302
6300
  * @i2since 1.9
6303
6301
  */
6304
- readonly borderStyle: IElementSetting<LineStyle>;
6302
+ readonly borderStyle: IElementSetting<LineStyle | null>;
6305
6303
  }
6306
6304
  /**
6307
6305
  * A style for an edge, which affects its appearance.
@@ -6422,20 +6420,20 @@ export declare namespace visual {
6422
6420
  */
6423
6421
  readonly color: IElementSetting<string | null>;
6424
6422
  /**
6425
- * Gets the border color of the node group, or null if there is no border.
6423
+ * Gets the border color of the node group.
6426
6424
  * @i2since 1.8
6427
6425
  */
6428
- readonly borderColor: IElementSetting<string | null>;
6426
+ readonly borderColor: IElementSetting<string>;
6429
6427
  /**
6430
6428
  * Gets the border width of the node group.
6431
6429
  * @i2since 1.8
6432
6430
  */
6433
6431
  readonly borderWidth: IElementSetting<number>;
6434
6432
  /**
6435
- * Gets the border style of the node group.
6433
+ * Gets the border style of the node group, or null if there is no border.
6436
6434
  * @i2since 1.9
6437
6435
  */
6438
- readonly borderStyle: IElementSetting<LineStyle>;
6436
+ readonly borderStyle: IElementSetting<LineStyle | null>;
6439
6437
  }
6440
6438
  }
6441
6439
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.9.0-dev.7",
3
+ "version": "1.9.0-dev.8",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {