@i2analyze/notebook-sdk 1.10.0-dev.11 → 1.10.0-dev.12

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.
@@ -823,11 +823,11 @@ export declare namespace app {
823
823
  * A set of methods for modifying the appearance of a node.
824
824
  * @i2since 1.2
825
825
  */
826
- export interface INodeEditor extends Omit<IElementEditorBase, 'setColor'> {
826
+ export interface INodeEditor extends IElementEditorBase {
827
827
  /**
828
828
  * Sets or resets the color of the element.
829
829
  *
830
- * @param color - The color to set, or `undefined` to reset the color to the theme default, or 'null' to remove the color.
830
+ * @param color - The color to set, or `undefined` to reset the color to the theme default, or `null` to remove the color.
831
831
  * @returns The element, with its color set to the specified value.
832
832
  * @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.
833
833
  * @i2since 1.2
@@ -1263,6 +1263,36 @@ export declare namespace app {
1263
1263
  * @i2since 1.8
1264
1264
  */
1265
1265
  addNodeGroup(nodes: Iterable<NodeSpecifier>): IPendingNodeGroup;
1266
+ /**
1267
+ * Gets an object with methods for hinting the appearance of a new entity record's node.
1268
+ *
1269
+ * @remarks
1270
+ * The record must be a pending record that was created earlier in the same mutation by a call to
1271
+ * {@link app.ITrackedMutations.addEntityRecord}. The hints are applied to the node as the server
1272
+ * creates it, so that the node does not first appear with its default appearance and then change.
1273
+ * If you do not call this method for a record, the server creates a node with the default
1274
+ * appearance.
1275
+ *
1276
+ * @param record - The pending entity record whose node is to be hinted.
1277
+ * @returns An object with methods for hinting the appearance of the node.
1278
+ * @i2since 1.10
1279
+ */
1280
+ createNode(record: IPendingRecord): INodeEditor;
1281
+ /**
1282
+ * Gets an object with methods for hinting the appearance of a new link record's edge.
1283
+ *
1284
+ * @remarks
1285
+ * The record must be a pending record that was created earlier in the same mutation by a call to
1286
+ * {@link app.ITrackedMutations.addLinkRecord}. The hints are applied to the edge as the server
1287
+ * creates it, so that the edge does not first appear with its default appearance and then change.
1288
+ * If you do not call this method for a record, the server creates an edge with the default
1289
+ * appearance.
1290
+ *
1291
+ * @param record - The pending link record whose edge is to be hinted.
1292
+ * @returns An object with methods for hinting the appearance of the edge.
1293
+ * @i2since 1.10
1294
+ */
1295
+ createEdge(record: IPendingRecord): IEdgeEditor;
1266
1296
  /**
1267
1297
  * Gets an object with methods for editing a record.
1268
1298
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.10.0-dev.11",
3
+ "version": "1.10.0-dev.12",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {