@i2analyze/notebook-sdk 1.2.0-dev.1 → 1.2.0-dev.10

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.
@@ -164,6 +164,18 @@ export declare namespace app {
164
164
  */
165
165
  details: string;
166
166
  }
167
+ /**
168
+ * The source of a change that takes place in the i2 Notebook application.
169
+ * @i2since 1.2
170
+ */
171
+ export interface IChangeSource {
172
+ /**
173
+ * Gets the identifier of the plug-in that is responsible for the change, or <code>null</code>
174
+ * if the change is the result of a user action outside a plug-in.
175
+ * @i2since 1.2
176
+ */
177
+ readonly pluginId?: string;
178
+ }
167
179
  /**
168
180
  * A set of information that is common to requests to commit mutations of all types.
169
181
  * @i2since 1.1
@@ -341,6 +353,16 @@ export declare namespace app {
341
353
  * @i2since 1.1
342
354
  */
343
355
  export type SourceReferenceSpecifier = records.SourceReferenceId | records.ISourceReference;
356
+ /**
357
+ * A common specifier for a node, for use in mutation APIs.
358
+ * @i2since 1.2
359
+ */
360
+ export type NodeSpecifier = visual.ElementId | visual.INode;
361
+ /**
362
+ * A common specifier for an edge, for use in mutation APIs.
363
+ * @i2since 1.2
364
+ */
365
+ export type EdgeSpecifier = visual.ElementId | visual.IEdge;
344
366
  /**
345
367
  * The identifier of a record group.
346
368
  * @i2since 1.1
@@ -551,6 +573,49 @@ export declare namespace app {
551
573
  */
552
574
  setLinkDirection(linkDirection: data.LinkDirection): this;
553
575
  }
576
+ /**
577
+ * A set of methods for modifying the appearance of an element.
578
+ * @i2since 1.2
579
+ */
580
+ export interface IElementEditorBase {
581
+ /**
582
+ * Sets or resets the color of the element.
583
+ *
584
+ * @param color - The color to set, or `undefined` to reset the color to the theme default.
585
+ * @returns The element, with its color set to the specified value.
586
+ * @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.
587
+ * @i2since 1.2
588
+ */
589
+ setColor(color: string | undefined): this;
590
+ }
591
+ /**
592
+ * A set of methods for modifying the appearance of a node.
593
+ * @i2since 1.2
594
+ */
595
+ export interface INodeEditor extends IElementEditorBase {
596
+ /**
597
+ * Sets or resets the size of the node.
598
+ *
599
+ * @param size - The size to set, or `undefined` to reset the size to `1`.
600
+ * @returns The node, with its size set to the specified value.
601
+ * @i2since 1.2
602
+ */
603
+ setSize(size: visual.NodeSize | undefined): this;
604
+ /**
605
+ * Moves the node to be centered at a particular position on the chart.
606
+ *
607
+ * @param position - The position to move the node to.
608
+ * @returns The node, with its position set to the specified value.
609
+ * @i2since 1.2
610
+ */
611
+ setCenter(position: visual.IPosition): this;
612
+ }
613
+ /**
614
+ * A set of methods for modifying the appearance of an edge.
615
+ * @i2since 1.2
616
+ */
617
+ export interface IEdgeEditor extends IElementEditorBase {
618
+ }
554
619
  /**
555
620
  * A record that has been created in a transaction handler, but has not yet been added to a chart.
556
621
  * @i2since 1.1
@@ -788,6 +853,22 @@ export declare namespace app {
788
853
  * @i2since 1.1
789
854
  */
790
855
  editRecord(record: RecordSpecifier): IRecordEditor;
856
+ /**
857
+ * Gets an object with methods for editing the appearance of a node.
858
+ *
859
+ * @param node - The node to be edited.
860
+ * @returns The node-editing object.
861
+ * @i2since 1.2
862
+ */
863
+ editNode(node: NodeSpecifier): INodeEditor;
864
+ /**
865
+ * Gets an object with methods for editing the appearance of an edge.
866
+ *
867
+ * @param edge - The edge to be edited.
868
+ * @returns The edge-editing object.
869
+ * @i2since 1.2
870
+ */
871
+ editEdge(edge: EdgeSpecifier): IEdgeEditor;
791
872
  /**
792
873
  * Moves a node to a particular location on the chart.
793
874
  *
@@ -795,6 +876,7 @@ export declare namespace app {
795
876
  * @param position - The location to move the node to.
796
877
  * @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
797
878
  * @i2since 1.1
879
+ * @deprecated since version 1.2. Use {@link app.INodeEditor.setCenter} instead.
798
880
  */
799
881
  setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
800
882
  /**
@@ -1118,7 +1200,6 @@ export declare namespace app {
1118
1200
  */
1119
1201
  export interface ApplicationEventOptionsMap extends chart.ChartEventOptionsMap {
1120
1202
  }
1121
- {};
1122
1203
  }
1123
1204
 
1124
1205
  /**
@@ -1439,27 +1520,27 @@ export declare namespace chart {
1439
1520
  /**
1440
1521
  * A callback function that handles chart selection events.
1441
1522
  *
1442
- * @param selection -The selection on the chart at the moment the callback was invoked.
1523
+ * @param selection - The selection on the chart at the moment the callback was invoked, and the source of the selection change.
1443
1524
  * @param applicationContents - The contents of the application, including the current chart.
1444
1525
  * @i2since 1.0
1445
1526
  */
1446
- export type SelectionListener = (selection: ISelection, applicationContents: app.IApplicationContents) => void;
1527
+ export type SelectionListener = (selection: ISelection & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
1447
1528
  /**
1448
- * A callback function that handles chart events.
1529
+ * A callback function that handles chart data change events.
1449
1530
  *
1450
- * @param change - The change that took place on the chart and caused the callback to be invoked.
1531
+ * @param change - The change that took place on the chart and caused the callback to be invoked, and the source of the data change.
1451
1532
  * @param applicationContents - The contents of the application, including the current chart.
1452
1533
  * @i2since 1.0
1453
1534
  */
1454
- export type ChangeListener = (change: IChartChange, applicationContents: app.IApplicationContents) => void;
1535
+ export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
1455
1536
  /**
1456
1537
  * A callback function that handles chart view events.
1457
1538
  *
1458
- * @param view -The appearance of the chart following the change that caused the callback to be invoked.
1539
+ * @param view - The appearance of the chart following the change that caused the callback to be invoked, and the source of the view change.
1459
1540
  * @param applicationContents - The contents of the application, including the current chart.
1460
1541
  * @i2since 1.0
1461
1542
  */
1462
- export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
1543
+ export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
1463
1544
  /**
1464
1545
  * Constraints that control a view-fitting operation.
1465
1546
  *
@@ -1602,10 +1683,11 @@ export declare namespace commands {
1602
1683
  /**
1603
1684
  * A callback function that handles records context change events.
1604
1685
  *
1605
- * @param recordsContext - The records that are pertinent in the context of the surfaced command.
1686
+ * @param recordsContext - The records that were pertinent in the context of the surfaced command
1687
+ * at the moment the callback was invoked, and the source of the change to those records.
1606
1688
  * @i2since 1.0
1607
1689
  */
1608
- export type RecordsContextChangeListener = (recordsContext: IRecordsContext) => void;
1690
+ export type RecordsContextChangeListener = (recordsContext: IRecordsContext & app.IChangeSource) => void;
1609
1691
  /**
1610
1692
  * An identifier of a command.
1611
1693
  * @i2since 1.0
@@ -1736,10 +1818,11 @@ export declare namespace commands {
1736
1818
  * @remarks
1737
1819
  * To retrieve areas that represent the entire application ribbon or pop-up menu, use the properties of {@link commands.ICommandApi}.
1738
1820
  *
1739
- * @typeParam TSystemGroups - The type of the system groups in the area.
1821
+ * @typeParam TSystemGroups - The type of the list of system action groups in the area.
1822
+ * @typeParam TGroupInfo - The type of action group that the area supports.
1740
1823
  * @i2since 1.0
1741
1824
  */
1742
- export interface IActionArea<TSystemGroups> {
1825
+ export interface IActionArea<TSystemGroups, TGroupInfo> {
1743
1826
  /**
1744
1827
  * Locates the area of the user interface that appears immediately before a particular action or group of actions.
1745
1828
  *
@@ -1748,7 +1831,7 @@ export declare namespace commands {
1748
1831
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1749
1832
  * @i2since 1.0
1750
1833
  */
1751
- before(id: CommandId | GroupId): IActionArea<undefined>;
1834
+ before(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo>;
1752
1835
  /**
1753
1836
  * Locates the area of the user interface that appears immediately before the action that represents the specified command.
1754
1837
  *
@@ -1757,7 +1840,7 @@ export declare namespace commands {
1757
1840
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1758
1841
  * @i2since 1.1
1759
1842
  */
1760
- before(command: ICommand): IActionArea<undefined>;
1843
+ before(command: ICommand): IActionArea<undefined, TGroupInfo>;
1761
1844
  /**
1762
1845
  * Locates the area of the user interface that appears immediately after a particular action or group of actions.
1763
1846
  *
@@ -1766,7 +1849,7 @@ export declare namespace commands {
1766
1849
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1767
1850
  * @i2since 1.0
1768
1851
  */
1769
- after(id: CommandId | GroupId): IActionArea<undefined>;
1852
+ after(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo>;
1770
1853
  /**
1771
1854
  * Locates the area of the user interface that appears immediately after the action that represents the specified command.
1772
1855
  *
@@ -1775,7 +1858,7 @@ export declare namespace commands {
1775
1858
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1776
1859
  * @i2since 1.1
1777
1860
  */
1778
- after(command: ICommand): IActionArea<undefined>;
1861
+ after(command: ICommand): IActionArea<undefined, TGroupInfo>;
1779
1862
  /**
1780
1863
  * Locates the area of the user interface that is occupied by a particular group of actions.
1781
1864
  *
@@ -1784,7 +1867,7 @@ export declare namespace commands {
1784
1867
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1785
1868
  * @i2since 1.0
1786
1869
  */
1787
- getGroup(id: GroupId): IActionArea<undefined>;
1870
+ getGroup(id: GroupId): IActionArea<undefined, TGroupInfo>;
1788
1871
  /**
1789
1872
  * Removes an action or group of actions from the user interface.
1790
1873
  *
@@ -1814,7 +1897,7 @@ export declare namespace commands {
1814
1897
  * @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
1815
1898
  * @i2since 1.0
1816
1899
  */
1817
- addGroup(group: IGroup): IActionArea<undefined>;
1900
+ addGroup(group: TGroupInfo): IActionArea<undefined, TGroupInfo>;
1818
1901
  /**
1819
1902
  * Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
1820
1903
  *
@@ -1828,7 +1911,7 @@ export declare namespace commands {
1828
1911
  * @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
1829
1912
  * @i2since 1.0
1830
1913
  */
1831
- addOrGetGroup(group: IGroup): IActionArea<undefined>;
1914
+ addOrGetGroup(group: TGroupInfo): IActionArea<undefined, TGroupInfo>;
1832
1915
  /**
1833
1916
  * Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
1834
1917
  * @i2since 1.0
@@ -1916,16 +1999,22 @@ export declare namespace commands {
1916
1999
  export type GroupId = string;
1917
2000
  /**
1918
2001
  * A group of actions in i2 Notebook.
1919
- * @i2since 1.0
2002
+ * @i2since 1.2
1920
2003
  */
1921
- export interface IGroup {
2004
+ export interface IGroupBase {
1922
2005
  /**
1923
2006
  * Gets the identifier of the group, which should be a GUID.
1924
2007
  * @i2since 1.0
1925
2008
  */
1926
2009
  readonly id: GroupId;
2010
+ }
2011
+ /**
2012
+ * A group of actions in a tab, in the i2 Notebook application ribbon.
2013
+ * @i2since 1.0
2014
+ */
2015
+ export interface IGroup extends IGroupBase {
1927
2016
  /**
1928
- * Gets the name of the group.
2017
+ * Gets the label of the group, which is displayed to users.
1929
2018
  * @i2since 1.0
1930
2019
  */
1931
2020
  readonly label: string;
@@ -1935,6 +2024,12 @@ export declare namespace commands {
1935
2024
  */
1936
2025
  readonly icon: IIcon;
1937
2026
  }
2027
+ /**
2028
+ * A group of actions in a popup menu, which do not have a label or an icon.
2029
+ * @i2since 1.2
2030
+ */
2031
+ export interface IChartPopupMenuGroup extends IGroupBase {
2032
+ }
1938
2033
  /**
1939
2034
  * A representation of a command in the user interface. An action is created when a command is surfaced.
1940
2035
  * @i2since 1.0
@@ -2001,24 +2096,15 @@ export declare namespace commands {
2001
2096
  * Gets the area that represents the whole of the i2 Notebook application ribbon.
2002
2097
  * @i2since 1.0
2003
2098
  */
2004
- readonly applicationRibbon: {
2005
- /**
2006
- * Gets the area that represents the "Home" tab in the application ribbon.
2007
- *
2008
- * @remarks
2009
- * The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
2010
- * @i2since 1.0
2011
- */
2012
- readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2013
- };
2099
+ readonly applicationRibbon: IApplicationRibbon;
2014
2100
  /**
2015
2101
  * Gets the area that represents the chart's pop-up menu.
2016
2102
  *
2017
2103
  * @remarks
2018
- * The `chartPopupMenu` area supports only top-level groups, which correspond to one level of pop-up menu flyout.
2104
+ * The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2019
2105
  * @i2since 1.0
2020
2106
  */
2021
- readonly chartPopupMenu: IActionArea<undefined>;
2107
+ readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IChartPopupMenuGroup>;
2022
2108
  /**
2023
2109
  * Unregisters and removes a command and all its actions from the application.
2024
2110
  *
@@ -2034,9 +2120,12 @@ export declare namespace commands {
2034
2120
  export interface IApplicationRibbon {
2035
2121
  /**
2036
2122
  * Gets the area that represents the "Home" tab in the application ribbon.
2123
+ *
2124
+ * @remarks
2125
+ * The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
2037
2126
  * @i2since 1.0
2038
2127
  */
2039
- readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2128
+ readonly homeTab: IActionArea<IHomeTabSystemGroups, IGroup>;
2040
2129
  }
2041
2130
  /**
2042
2131
  * A lookup table for the command identifiers of the default system commands.
@@ -2133,9 +2222,14 @@ export declare namespace commands {
2133
2222
  * @i2since 1.1
2134
2223
  */
2135
2224
  readonly addToMap: CommandId;
2225
+ /**
2226
+ * Gets the identifier of the system command that opens a 360 view of the selected Information Store entity record.
2227
+ * @i2since 1.2
2228
+ */
2229
+ readonly openThreeSixtyView: CommandId;
2136
2230
  }
2137
2231
  /**
2138
- * A lookup table for the group identifiers of the default system action groups.
2232
+ * A lookup table for the identifiers of the system action groups in the Home tab.
2139
2233
  * @i2since 1.0
2140
2234
  */
2141
2235
  export interface IHomeTabSystemGroups {
@@ -2165,6 +2259,22 @@ export declare namespace commands {
2165
2259
  */
2166
2260
  readonly select: GroupId;
2167
2261
  }
2262
+ /**
2263
+ * A lookup table for the identifiers of the system action groups in the chart popup menu.
2264
+ * @i2since 1.2
2265
+ */
2266
+ export interface IChartPopupMenuSystemGroups {
2267
+ /**
2268
+ * Gets the identifier of the system action group related to selection.
2269
+ * @i2since 1.2
2270
+ */
2271
+ readonly select: GroupId;
2272
+ /**
2273
+ * Gets the identifier of the system action group related to discovery.
2274
+ * @i2since 1.0
2275
+ */
2276
+ readonly discover: GroupId;
2277
+ }
2168
2278
  }
2169
2279
 
2170
2280
  /**
@@ -2985,7 +3095,7 @@ export declare interface NotebookStatic {
2985
3095
  * @public
2986
3096
  * @i2since 1.0
2987
3097
  */
2988
- getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1'): Promise<IEntryPointApi>;
3098
+ getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2'): Promise<IEntryPointApi>;
2989
3099
  }
2990
3100
 
2991
3101
  /**
@@ -3140,7 +3250,7 @@ export declare namespace records {
3140
3250
  */
3141
3251
  get360ViewUrl(): string | undefined;
3142
3252
  /**
3143
- * Gets the element to which the record belongs.
3253
+ * Gets the chart element to which the record belongs.
3144
3254
  * @i2since 1.2
3145
3255
  */
3146
3256
  readonly element: visual.IElement;
@@ -3430,10 +3540,10 @@ export declare namespace schema {
3430
3540
  */
3431
3541
  readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeId, IChartItemType>;
3432
3542
  /**
3433
- * Gets the item type with the specified analyze type id.
3434
- * @param analyzeItemTypeId - An analyze item type id.
3435
- * @returns The requested item type.
3436
- * @throws `VerbatimError` if an item type with the specified analyze type id could not be found.
3543
+ * Gets the item type in the chart schema that has the specified i2 Analyze type identifier.
3544
+ * @param analyzeItemTypeId - An i2 Analyze item type identifier.
3545
+ * @returns The requested chart item type.
3546
+ * @throws `VerbatimError` if no chart item type has the specified i2 Analyze type identifier.
3437
3547
  * @i2since 1.2
3438
3548
  */
3439
3549
  getItemType(analyzeItemTypeId: AnalyzeItemTypeId): IChartItemType;
@@ -3658,10 +3768,10 @@ export declare namespace schema {
3658
3768
  */
3659
3769
  readonly propertyTypes: data.IKeyedReadOnlyCollection<ChartPropertyTypeId, IChartPropertyType>;
3660
3770
  /**
3661
- * Gets the property type with the specified analyze property type id.
3662
- * @param analyzePropertyTypeId - An analyze property type id.
3663
- * @returns The requested property type, or undefined if the property type could not be found.
3664
- * @throws `VerbatimError` if a property type with the specified analyze property id could not be found.
3771
+ * Gets the property type that has the specified i2 Analyze type identifier.
3772
+ * @param analyzePropertyTypeId - An i2 Analyze property type identifier.
3773
+ * @returns The requested property type.
3774
+ * @throws `VerbatimError` if the item type does not contain a property type that has the specified i2 Analyze type identifier.
3665
3775
  * @i2since 1.2
3666
3776
  */
3667
3777
  getPropertyType(analyzePropertyTypeId: AnalyzePropertyTypeId): IChartPropertyType;
@@ -3967,13 +4077,14 @@ export declare namespace toolview {
3967
4077
  */
3968
4078
  export type ToolViewUnloadListener = (isClosing: boolean) => void;
3969
4079
  /**
3970
- * A callback function that handles tool view minimized state events.
4080
+ * A callback function that handles tool view minimized events.
3971
4081
  *
3972
4082
  * @remarks
3973
- * This listener receives an event when the docked tool view is changing its minimized state to reflect its visibility in the i2 Notebook user interface.
4083
+ * This listener receives an event after the docked tool view changes visibility in the i2 Notebook user interface,
4084
+ * as a result of a chart or another docked tool being maximized or restored.
3974
4085
  *
3975
- * @param isMinimized - `true` if the tool view is docked but invisible in the user interface due to a chart or another docked tool view is maximized;
3976
- * `false` if the tool view is closed, undocked or nothing is maximized.
4086
+ * @param isMinimized - `true` if the tool view is now invisible for one of the reasons given;
4087
+ * `false` if it is now visible in the opposite circumstances.
3977
4088
  * @i2since 1.2
3978
4089
  */
3979
4090
  export type ToolViewMinimizedListener = (isMinimized: boolean) => void;
@@ -4055,10 +4166,10 @@ export declare namespace toolview {
4055
4166
  */
4056
4167
  readonly isOpen: boolean;
4057
4168
  /**
4058
- * Indicates whether the docked tool view is invisible in the user interface.
4169
+ * Indicates whether the tool view is open and docked but not visible in the user interface.
4059
4170
  *
4060
- * @returns `true` if the tool view is invisible because a chart or another tool view is being maximized;
4061
- * `false` if it is closed, undocked or nothing is maximized.
4171
+ * @returns `true` if the tool view is not visible because a chart or another tool view is maximized;
4172
+ * `false` if nothing is maximized, or if the tool view is closed or undocked.
4062
4173
  * @i2since 1.2
4063
4174
  */
4064
4175
  readonly isMinimized: boolean;
@@ -4200,7 +4311,6 @@ export declare namespace toolview {
4200
4311
  */
4201
4312
  export interface ToolViewApiEventOptionsMap extends ToolViewEventOptionsMap, app.ApplicationEventOptionsMap {
4202
4313
  }
4203
- {};
4204
4314
  }
4205
4315
 
4206
4316
  /**
@@ -4220,6 +4330,11 @@ export declare namespace visual {
4220
4330
  * @i2since 1.0
4221
4331
  */
4222
4332
  export type ElementId = string;
4333
+ /**
4334
+ * The size of a node on an i2 Notebook chart. The default value is `1`.
4335
+ * @i2since 1.2
4336
+ */
4337
+ export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
4223
4338
  /**
4224
4339
  * A set of information and functionality that is common to all elements on an i2 Notebook chart.
4225
4340
  * @i2since 1.0
@@ -4323,6 +4438,11 @@ export declare namespace visual {
4323
4438
  * @i2since 1.0
4324
4439
  */
4325
4440
  readonly direction: data.LinkDirection;
4441
+ /**
4442
+ * Gets the style of the edge, which affects its appearance.
4443
+ * @i2since 1.2
4444
+ */
4445
+ readonly style: IEdgeStyle;
4326
4446
  }
4327
4447
  /**
4328
4448
  * A position on a chart surface.
@@ -4344,15 +4464,54 @@ export declare namespace visual {
4344
4464
  readonly y: number;
4345
4465
  }
4346
4466
  /**
4347
- * A style for a node, which controls its appearance.
4467
+ * A value for a setting that affects the appearance of an element.
4468
+ * @typeParam T - The logical type of the value.
4469
+ * @i2since 1.2
4470
+ */
4471
+ export interface IElementSetting<T> {
4472
+ /**
4473
+ * Indicates whether `value` contains the default value for the setting.
4474
+ * @i2since 1.2
4475
+ */
4476
+ readonly isDefault: boolean;
4477
+ /**
4478
+ * Gets the setting value.
4479
+ * @i2since 1.2
4480
+ */
4481
+ readonly value: T;
4482
+ }
4483
+ /**
4484
+ * A style for an element, which affects its appearance.
4485
+ * @i2since 1.2
4486
+ */
4487
+ export interface IElementStyleBase {
4488
+ /**
4489
+ * Gets the color of the element.
4490
+ * @i2since 1.2
4491
+ */
4492
+ readonly color: IElementSetting<string>;
4493
+ }
4494
+ /**
4495
+ * A style for a node, which affects its appearance.
4348
4496
  * @i2since 1.0
4349
4497
  */
4350
- export interface INodeStyle {
4498
+ export interface INodeStyle extends IElementStyleBase {
4351
4499
  /**
4352
- * Gets the image to display for a node.
4500
+ * Gets the image to display for the node.
4353
4501
  * @i2since 1.0
4354
4502
  */
4355
4503
  readonly image: data.IImage;
4504
+ /**
4505
+ * Gets the size of the node.
4506
+ * @i2since 1.2
4507
+ */
4508
+ readonly size: IElementSetting<NodeSize>;
4509
+ }
4510
+ /**
4511
+ * A style for an edge, which affects its appearance.
4512
+ * @i2since 1.2
4513
+ */
4514
+ export interface IEdgeStyle extends IElementStyleBase {
4356
4515
  }
4357
4516
  /**
4358
4517
  * A rectangular area, such as the boundary of the chart view.
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.1';
5
+ const apiVersion = '1.2';
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.2.0-dev.1",
3
+ "version": "1.2.0-dev.10",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {