@i2analyze/notebook-sdk 1.4.0 → 1.5.0-dev.1
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.
- package/lib/gen/notebook-sdk-public.d.ts +84 -16
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -592,6 +592,14 @@ export declare namespace app {
|
|
|
592
592
|
* @i2since 1.2
|
|
593
593
|
*/
|
|
594
594
|
setColor(color: string | undefined): this;
|
|
595
|
+
/**
|
|
596
|
+
* Sets or resets the label of the element.
|
|
597
|
+
*
|
|
598
|
+
* @param label - The label to set, or `undefined` to reset the label to the default.
|
|
599
|
+
* @returns The element, with its label set to the specified value.
|
|
600
|
+
* @i2since 1.5
|
|
601
|
+
*/
|
|
602
|
+
setLabel(label: string | undefined): this;
|
|
595
603
|
}
|
|
596
604
|
/**
|
|
597
605
|
* A set of methods for modifying the appearance of a node.
|
|
@@ -614,6 +622,23 @@ export declare namespace app {
|
|
|
614
622
|
* @i2since 1.2
|
|
615
623
|
*/
|
|
616
624
|
setCenter(position: visual.IPosition): this;
|
|
625
|
+
/**
|
|
626
|
+
* Sets the image for the node.
|
|
627
|
+
*
|
|
628
|
+
* @param href - The URL of the image to use.
|
|
629
|
+
* @param description - A description of the image.
|
|
630
|
+
* @returns The node, with its image set to the specified URL and description.
|
|
631
|
+
* @i2since 1.5
|
|
632
|
+
*/
|
|
633
|
+
setImage(href: string, description?: string): this;
|
|
634
|
+
/**
|
|
635
|
+
* Resets the image for the node to the default one, which might be the entity type icon or a source reference image.
|
|
636
|
+
*
|
|
637
|
+
* @param href - `undefined` is the only valid argument for resetting the image.
|
|
638
|
+
* @returns The node, with its image reset to the default one.
|
|
639
|
+
* @i2since 1.5
|
|
640
|
+
*/
|
|
641
|
+
setImage(href: undefined): this;
|
|
617
642
|
}
|
|
618
643
|
/**
|
|
619
644
|
* A set of methods for modifying the appearance of an edge.
|
|
@@ -881,7 +906,7 @@ export declare namespace app {
|
|
|
881
906
|
* @param position - The location to move the node to.
|
|
882
907
|
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
883
908
|
* @i2since 1.1
|
|
884
|
-
* @deprecated since version 1.2. Use {@link app.INodeEditor.setCenter} instead.
|
|
909
|
+
* @deprecated Deprecated since version 1.2. Use {@link app.INodeEditor.setCenter} instead.
|
|
885
910
|
*/
|
|
886
911
|
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
887
912
|
/**
|
|
@@ -2152,7 +2177,7 @@ export declare namespace commands {
|
|
|
2152
2177
|
* @remarks
|
|
2153
2178
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2154
2179
|
* @i2since 1.0
|
|
2155
|
-
* @deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2180
|
+
* @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2156
2181
|
*/
|
|
2157
2182
|
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
|
|
2158
2183
|
/**
|
|
@@ -2317,6 +2342,11 @@ export declare namespace commands {
|
|
|
2317
2342
|
* @i2since 1.4
|
|
2318
2343
|
*/
|
|
2319
2344
|
readonly paste: CommandId;
|
|
2345
|
+
/**
|
|
2346
|
+
* Gets the identifier of the system command opens the chart settings dialog.
|
|
2347
|
+
* @i2since 1.5
|
|
2348
|
+
*/
|
|
2349
|
+
readonly chartSettings: CommandId;
|
|
2320
2350
|
}
|
|
2321
2351
|
/**
|
|
2322
2352
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -2378,7 +2408,7 @@ export declare namespace commands {
|
|
|
2378
2408
|
/**
|
|
2379
2409
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
2380
2410
|
* @i2since 1.0
|
|
2381
|
-
* @deprecated since version 1.4. `commands.IChartPopupMenuSystemGroups` has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2411
|
+
* @deprecated Deprecated since version 1.4. `commands.IChartPopupMenuSystemGroups` has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2382
2412
|
*/
|
|
2383
2413
|
export interface IChartPopupMenuSystemGroups {
|
|
2384
2414
|
/**
|
|
@@ -3024,25 +3054,31 @@ export declare namespace data {
|
|
|
3024
3054
|
/**
|
|
3025
3055
|
* A label for an element or a record.
|
|
3026
3056
|
* @i2since 1.0
|
|
3057
|
+
* @deprecated Deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails}, or {@link visual.IElementLabelDetails} instead.
|
|
3058
|
+
*/
|
|
3059
|
+
export type ILabelDetails = ILabelDetailsBase;
|
|
3060
|
+
/**
|
|
3061
|
+
* A set of information that is common to all labels.
|
|
3062
|
+
* @i2since 1.5
|
|
3027
3063
|
*/
|
|
3028
|
-
export interface
|
|
3064
|
+
export interface ILabelDetailsBase {
|
|
3029
3065
|
/**
|
|
3030
|
-
* Gets the label or, if
|
|
3066
|
+
* Gets the label or, if the label is empty, a standard fallback string such as '\<No value\>'.
|
|
3031
3067
|
*
|
|
3032
3068
|
* @remarks
|
|
3033
|
-
* To distinguish between a
|
|
3069
|
+
* To distinguish between a label that's been set and a fallback string, inspect {@link data.ILabelDetailsBase.hasLabel | hasLabel}.
|
|
3034
3070
|
* @i2since 1.0
|
|
3035
3071
|
*/
|
|
3036
3072
|
readonly labelOrFallback: string;
|
|
3037
3073
|
/**
|
|
3038
|
-
* Gets the label or, if
|
|
3074
|
+
* Gets the label or, if the label is empty, an empty string.
|
|
3039
3075
|
* @i2since 1.0
|
|
3040
3076
|
*/
|
|
3041
3077
|
readonly labelOrEmpty: string;
|
|
3042
3078
|
/**
|
|
3043
|
-
* Indicates whether
|
|
3079
|
+
* Indicates whether the label is not empty.
|
|
3044
3080
|
*
|
|
3045
|
-
* @returns `true` if {@link data.
|
|
3081
|
+
* @returns `true` if the label from {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} is _not_ the fallback; `false` if it is.
|
|
3046
3082
|
* @i2since 1.0
|
|
3047
3083
|
*/
|
|
3048
3084
|
readonly hasLabel: boolean;
|
|
@@ -3309,7 +3345,7 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
3309
3345
|
* For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
|
|
3310
3346
|
* @returns The new tool view.
|
|
3311
3347
|
* @i2since 1.0
|
|
3312
|
-
* @deprecated since version 1.3. Use {@link (IEntryPointApi:interface).(createToolView:2)} instead.
|
|
3348
|
+
* @deprecated Deprecated since version 1.3. Use {@link (IEntryPointApi:interface).(createToolView:2) | createToolView(IToolViewConfig)} instead.
|
|
3313
3349
|
*/
|
|
3314
3350
|
createToolView(name: string, path: string): toolview.IToolView;
|
|
3315
3351
|
/**
|
|
@@ -3457,7 +3493,7 @@ export declare interface NotebookStatic {
|
|
|
3457
3493
|
* @public
|
|
3458
3494
|
* @i2since 1.0
|
|
3459
3495
|
*/
|
|
3460
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4'): Promise<IEntryPointApi>;
|
|
3496
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5'): Promise<IEntryPointApi>;
|
|
3461
3497
|
}
|
|
3462
3498
|
|
|
3463
3499
|
/**
|
|
@@ -3477,6 +3513,12 @@ export declare namespace records {
|
|
|
3477
3513
|
* @i2since 1.0
|
|
3478
3514
|
*/
|
|
3479
3515
|
export type AnalyzeRecordId = string;
|
|
3516
|
+
/**
|
|
3517
|
+
* A label for a record.
|
|
3518
|
+
* @i2since 1.5
|
|
3519
|
+
*/
|
|
3520
|
+
export interface IRecordLabelDetails extends data.ILabelDetailsBase {
|
|
3521
|
+
}
|
|
3480
3522
|
/**
|
|
3481
3523
|
* A set of information and functionality that is common to all records in i2 Notebook.
|
|
3482
3524
|
* @i2since 1.0
|
|
@@ -3506,7 +3548,7 @@ export declare namespace records {
|
|
|
3506
3548
|
* @returns The label (or a fallback string) and an indication of whether the label is real.
|
|
3507
3549
|
* @i2since 1.0
|
|
3508
3550
|
*/
|
|
3509
|
-
getLabelDetails():
|
|
3551
|
+
getLabelDetails(): IRecordLabelDetails;
|
|
3510
3552
|
/**
|
|
3511
3553
|
* Indicates whether there are properties on the record whose values have not been fetched from the server.
|
|
3512
3554
|
* @i2since 1.0
|
|
@@ -4565,7 +4607,7 @@ export declare namespace toolview {
|
|
|
4565
4607
|
clear(): void;
|
|
4566
4608
|
}
|
|
4567
4609
|
/**
|
|
4568
|
-
* A tool view, as returned by {@link IEntryPointApi.(createToolView:
|
|
4610
|
+
* A tool view, as returned by {@link (IEntryPointApi:interface).(createToolView:2)}.
|
|
4569
4611
|
*
|
|
4570
4612
|
* @i2since 1.0
|
|
4571
4613
|
*/
|
|
@@ -4757,6 +4799,21 @@ export declare namespace visual {
|
|
|
4757
4799
|
* @i2since 1.2
|
|
4758
4800
|
*/
|
|
4759
4801
|
export type NodeSize = 0.5 | 1 | 2 | 3 | 4;
|
|
4802
|
+
/**
|
|
4803
|
+
* A label for an element.
|
|
4804
|
+
* @i2since 1.5
|
|
4805
|
+
*/
|
|
4806
|
+
export interface IElementLabelDetails extends data.ILabelDetailsBase {
|
|
4807
|
+
/**
|
|
4808
|
+
* Indicates whether the label contains an explicitly set value, or was generated from the schema label definition.
|
|
4809
|
+
*
|
|
4810
|
+
* @remarks
|
|
4811
|
+
* A label generated from the schema might still be empty, in which case this property is `true` but {@link data.ILabelDetailsBase.hasLabel | hasLabel} is `false`.
|
|
4812
|
+
* @returns `true` if the label in {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} was generated from the schema; `false` if it was explicitly set.
|
|
4813
|
+
* @i2since 1.5
|
|
4814
|
+
*/
|
|
4815
|
+
readonly isDefault: boolean;
|
|
4816
|
+
}
|
|
4760
4817
|
/**
|
|
4761
4818
|
* A set of information and functionality that is common to all elements on an i2 Notebook chart.
|
|
4762
4819
|
* @i2since 1.0
|
|
@@ -4786,7 +4843,7 @@ export declare namespace visual {
|
|
|
4786
4843
|
* @returns The label (or a fallback string) and an indication of whether the label is real.
|
|
4787
4844
|
* @i2since 1.0
|
|
4788
4845
|
*/
|
|
4789
|
-
getLabelDetails():
|
|
4846
|
+
getLabelDetails(): IElementLabelDetails;
|
|
4790
4847
|
/**
|
|
4791
4848
|
* Gets the records that the element represents, indexed by their identifiers.
|
|
4792
4849
|
* @i2since 1.0
|
|
@@ -4833,7 +4890,7 @@ export declare namespace visual {
|
|
|
4833
4890
|
/**
|
|
4834
4891
|
* Gets all the edges that are connected to the node.
|
|
4835
4892
|
* @i2since 1.0
|
|
4836
|
-
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
4893
|
+
* @deprecated `visual.INode.connectedEdges` has been renamed to {@link visual.INode.edges}.
|
|
4837
4894
|
*/
|
|
4838
4895
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
4839
4896
|
}
|
|
@@ -4913,6 +4970,17 @@ export declare namespace visual {
|
|
|
4913
4970
|
*/
|
|
4914
4971
|
readonly color: IElementSetting<string>;
|
|
4915
4972
|
}
|
|
4973
|
+
/**
|
|
4974
|
+
* An image for a node element.
|
|
4975
|
+
* @i2since 1.5
|
|
4976
|
+
*/
|
|
4977
|
+
export interface IImageSetting extends data.IImage {
|
|
4978
|
+
/**
|
|
4979
|
+
* Indicates whether the image is the default one for the node.
|
|
4980
|
+
* @i2since 1.5
|
|
4981
|
+
*/
|
|
4982
|
+
readonly isDefault: boolean;
|
|
4983
|
+
}
|
|
4916
4984
|
/**
|
|
4917
4985
|
* A style for a node, which affects its appearance.
|
|
4918
4986
|
* @i2since 1.0
|
|
@@ -4922,7 +4990,7 @@ export declare namespace visual {
|
|
|
4922
4990
|
* Gets the image to display for the node.
|
|
4923
4991
|
* @i2since 1.0
|
|
4924
4992
|
*/
|
|
4925
|
-
readonly image:
|
|
4993
|
+
readonly image: IImageSetting;
|
|
4926
4994
|
/**
|
|
4927
4995
|
* Gets the size of the node.
|
|
4928
4996
|
* @i2since 1.2
|
package/lib/index.js
CHANGED