@i2analyze/notebook-sdk 1.9.0-dev.4 → 1.9.0-dev.6

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.
@@ -744,6 +744,33 @@ export declare namespace app {
744
744
  * @i2since 1.5
745
745
  */
746
746
  setImage(href: undefined): this;
747
+ /**
748
+ * Sets or resets the border color of the node.
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.
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`.
753
+ * @i2since 1.9
754
+ */
755
+ setBorderColor(color: string | undefined | null): this;
756
+ /**
757
+ * Sets or resets the border width of the node.
758
+ *
759
+ * @param width - The width to set, or `undefined` to reset the width to the theme default.
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)`.
763
+ * @i2since 1.9
764
+ */
765
+ setBorderWidth(width: number | undefined): this;
766
+ /**
767
+ * Sets or resets the border style of the node.
768
+ *
769
+ * @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
770
+ * @returns The node, with its border style set to the specified value.
771
+ * @i2since 1.9
772
+ */
773
+ setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
747
774
  }
748
775
  /**
749
776
  * A set of methods for modifying the appearance of an edge.
@@ -758,6 +785,14 @@ export declare namespace app {
758
785
  * @i2since 1.8
759
786
  */
760
787
  setWidth(width: number | undefined): this;
788
+ /**
789
+ * Sets or resets the line style of the edge.
790
+ *
791
+ * @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
792
+ * @returns The edge, with its line style set to the specified value.
793
+ * @i2since 1.9
794
+ */
795
+ setLineStyle(lineStyle: visual.LineStyle | undefined): this;
761
796
  }
762
797
  /**
763
798
  * A set of methods for modifying the contents and position of a node group.
@@ -791,6 +826,14 @@ export declare namespace app {
791
826
  * @i2since 1.8
792
827
  */
793
828
  setBorderWidth(width: number | undefined): this;
829
+ /**
830
+ * Sets or resets the border style of the node group.
831
+ *
832
+ * @param lineStyle - The line style to set, or `undefined` to reset to the default ('solid').
833
+ * @returns The node group, with its border style set to the specified value.
834
+ * @i2since 1.9
835
+ */
836
+ setBorderStyle(lineStyle: visual.LineStyle | undefined): this;
794
837
  /**
795
838
  * Sets or resets the background color of the node group.
796
839
  *
@@ -1460,6 +1503,7 @@ export declare namespace app {
1460
1503
  }
1461
1504
  /**
1462
1505
  * The names of themes for the i2 Notebook user interface.
1506
+ * @deprecated Use {@link app.ITheme.appearance | appearance} to determine the application theme instead.
1463
1507
  * @i2since 1.0
1464
1508
  */
1465
1509
  export type ThemeName = 'carbonwhite' | 'carbongray10' | 'carbongray90' | 'carbongray100';
@@ -1470,6 +1514,7 @@ export declare namespace app {
1470
1514
  export interface ITheme {
1471
1515
  /**
1472
1516
  * Gets the name of the theme.
1517
+ * @deprecated Use {@link app.ITheme.appearance | appearance} to determine the application theme instead.
1473
1518
  * @i2since 1.0
1474
1519
  */
1475
1520
  readonly themeName: ThemeName;
@@ -1690,9 +1735,9 @@ export declare namespace chart {
1690
1735
  * console.log('Notes added:', changes.notes.added);
1691
1736
  * }
1692
1737
  *
1693
- * // Check for source reference edits
1694
- * if (changes.sourceReferences?.edited.size > 0) {
1695
- * console.log('Source references edited:', changes.sourceReferences.edited);
1738
+ * // Check for source reference changes
1739
+ * if (changes.sourceReferences?.changed.size > 0) {
1740
+ * console.log('Source references changed:', changes.sourceReferences.changed);
1696
1741
  * }
1697
1742
  *
1698
1743
  * // Check for source reference removals
@@ -1746,7 +1791,7 @@ export declare namespace chart {
1746
1791
  * @remarks
1747
1792
  * The note changes are categorized as follows:
1748
1793
  * - Added: New notes that were created
1749
- * - Edited: Existing notes whose content was modified
1794
+ * - Changed: Existing notes whose content was modified
1750
1795
  * - Removed: Notes that were deleted
1751
1796
  *
1752
1797
  * Empty sets indicate no changes in that category.
@@ -1760,10 +1805,10 @@ export declare namespace chart {
1760
1805
  */
1761
1806
  readonly added: data.IReadOnlyCollection<data.NoteId>;
1762
1807
  /**
1763
- * Gets the note IDs for notes whose content was edited.
1808
+ * Gets the note IDs for notes whose content was changed.
1764
1809
  * @i2since 1.9
1765
1810
  */
1766
- readonly edited: data.IReadOnlyCollection<data.NoteId>;
1811
+ readonly changed: data.IReadOnlyCollection<data.NoteId>;
1767
1812
  /**
1768
1813
  * Gets the note IDs for notes that were removed from the record.
1769
1814
  * @i2since 1.9
@@ -1776,7 +1821,7 @@ export declare namespace chart {
1776
1821
  * @remarks
1777
1822
  * The source reference changes are categorized as follows:
1778
1823
  * - Added: New source references that were added
1779
- * - Edited: Existing source references whose content was modified
1824
+ * - Changed: Existing source references whose content was modified
1780
1825
  * - Removed: Source references that were deleted
1781
1826
  *
1782
1827
  * Empty sets indicate no changes in that category.
@@ -1790,10 +1835,10 @@ export declare namespace chart {
1790
1835
  */
1791
1836
  readonly added: data.IReadOnlyCollection<data.SourceReferenceId>;
1792
1837
  /**
1793
- * Gets the source reference IDs for source references whose content was edited.
1838
+ * Gets the source reference IDs for source references whose content was changed.
1794
1839
  * @i2since 1.9
1795
1840
  */
1796
- readonly edited: data.IReadOnlyCollection<data.SourceReferenceId>;
1841
+ readonly changed: data.IReadOnlyCollection<data.SourceReferenceId>;
1797
1842
  /**
1798
1843
  * Gets the source reference IDs for source references that were removed from the record.
1799
1844
  * @i2since 1.9
@@ -1934,8 +1979,8 @@ export declare namespace chart {
1934
1979
  * This optional field provides property-level change tracking for records.
1935
1980
  * When populated, it contains an entry for each record that changed, with detailed information about:
1936
1981
  * - Which properties were added, removed, or changed
1937
- * - Which notes were added, edited, or removed
1938
- * - Which source references were added or removed
1982
+ * - Which notes were added, changed, or removed
1983
+ * - Which source references were added, changed, or removed
1939
1984
  * *
1940
1985
  * **Usage Pattern:**
1941
1986
  * ```typescript
@@ -4519,7 +4564,7 @@ export declare interface NotebookStatic {
4519
4564
  * @public
4520
4565
  * @i2since 1.0
4521
4566
  */
4522
- getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8'): Promise<IEntryPointApi>;
4567
+ getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8' | '1.9'): Promise<IEntryPointApi>;
4523
4568
  }
4524
4569
 
4525
4570
  /**
@@ -5975,6 +6020,11 @@ export declare namespace visual {
5975
6020
  * @i2since 1.2
5976
6021
  */
5977
6022
  export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
6023
+ /**
6024
+ * The style of a line on an i2 Notebook chart. The default value is `'solid'`.
6025
+ * @i2since 1.9
6026
+ */
6027
+ export type LineStyle = 'solid' | 'dashed' | 'dotted';
5978
6028
  /**
5979
6029
  * A label for an element.
5980
6030
  * @i2since 1.5
@@ -6177,6 +6227,21 @@ export declare namespace visual {
6177
6227
  * @i2since 1.2
6178
6228
  */
6179
6229
  readonly size: IElementSetting<NodeSize>;
6230
+ /**
6231
+ * Gets the border color of the node, or null if there is no border.
6232
+ * @i2since 1.9
6233
+ */
6234
+ readonly borderColor: IElementSetting<string | null>;
6235
+ /**
6236
+ * Gets the border width of the node.
6237
+ * @i2since 1.9
6238
+ */
6239
+ readonly borderWidth: IElementSetting<number>;
6240
+ /**
6241
+ * Gets the border style of the node.
6242
+ * @i2since 1.9
6243
+ */
6244
+ readonly borderStyle: IElementSetting<LineStyle>;
6180
6245
  }
6181
6246
  /**
6182
6247
  * A style for an edge, which affects its appearance.
@@ -6188,6 +6253,11 @@ export declare namespace visual {
6188
6253
  * @i2since 1.8
6189
6254
  */
6190
6255
  readonly width: IElementSetting<number>;
6256
+ /**
6257
+ * Gets the line style of the edge.
6258
+ * @i2since 1.9
6259
+ */
6260
+ readonly lineStyle: IElementSetting<LineStyle>;
6191
6261
  }
6192
6262
  /**
6193
6263
  * A rectangular area, such as the boundary of the chart view.
@@ -6301,6 +6371,11 @@ export declare namespace visual {
6301
6371
  * @i2since 1.8
6302
6372
  */
6303
6373
  readonly borderWidth: IElementSetting<number>;
6374
+ /**
6375
+ * Gets the border style of the node group.
6376
+ * @i2since 1.9
6377
+ */
6378
+ readonly borderStyle: IElementSetting<LineStyle>;
6304
6379
  }
6305
6380
  }
6306
6381
 
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation.
3
3
  * © N.Harris Computer Corporation (2022)
4
4
  */
5
- const apiVersion = '1.8';
5
+ const apiVersion = '1.9';
6
6
  /**
7
7
  * Retrieves the plug-in entry point API.
8
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.9.0-dev.4",
3
+ "version": "1.9.0-dev.6",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {