@i2analyze/notebook-sdk 1.5.0-dev.0 → 1.5.0-dev.2
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 +32 -23
- package/package.json +1 -1
|
@@ -623,19 +623,19 @@ export declare namespace app {
|
|
|
623
623
|
*/
|
|
624
624
|
setCenter(position: visual.IPosition): this;
|
|
625
625
|
/**
|
|
626
|
-
* Sets the image
|
|
626
|
+
* Sets the image for the node.
|
|
627
627
|
*
|
|
628
|
-
* @param href - The URL of the image.
|
|
629
|
-
* @param description -
|
|
628
|
+
* @param href - The URL of the image to use.
|
|
629
|
+
* @param description - A description of the image.
|
|
630
630
|
* @returns The node, with its image set to the specified URL and description.
|
|
631
631
|
* @i2since 1.5
|
|
632
632
|
*/
|
|
633
633
|
setImage(href: string, description?: string): this;
|
|
634
634
|
/**
|
|
635
|
-
* Resets the image
|
|
635
|
+
* Resets the image for the node to the default one, which might be the entity type icon or a source reference image.
|
|
636
636
|
*
|
|
637
|
-
* @param href - `undefined`
|
|
638
|
-
* @returns The node, with its image reset to the default
|
|
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
639
|
* @i2since 1.5
|
|
640
640
|
*/
|
|
641
641
|
setImage(href: undefined): this;
|
|
@@ -906,7 +906,7 @@ export declare namespace app {
|
|
|
906
906
|
* @param position - The location to move the node to.
|
|
907
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.
|
|
908
908
|
* @i2since 1.1
|
|
909
|
-
* @deprecated since version 1.2. Use {@link app.INodeEditor.setCenter} instead.
|
|
909
|
+
* @deprecated Deprecated since version 1.2. Use {@link app.INodeEditor.setCenter} instead.
|
|
910
910
|
*/
|
|
911
911
|
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
912
912
|
/**
|
|
@@ -2110,6 +2110,13 @@ export declare namespace commands {
|
|
|
2110
2110
|
* @i2since 1.0
|
|
2111
2111
|
*/
|
|
2112
2112
|
setEnabled(value: boolean): void;
|
|
2113
|
+
/**
|
|
2114
|
+
* Sets the icon of the action.
|
|
2115
|
+
*
|
|
2116
|
+
* @param value - An icon for the action.
|
|
2117
|
+
* @i2since 1.5
|
|
2118
|
+
*/
|
|
2119
|
+
setIcon(value: IIcon): void;
|
|
2113
2120
|
/**
|
|
2114
2121
|
* Sets whether the action is toggled "on" or "off" - that is, whether it appears to be active or inactive.
|
|
2115
2122
|
*
|
|
@@ -2177,7 +2184,7 @@ export declare namespace commands {
|
|
|
2177
2184
|
* @remarks
|
|
2178
2185
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2179
2186
|
* @i2since 1.0
|
|
2180
|
-
* @deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2187
|
+
* @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2181
2188
|
*/
|
|
2182
2189
|
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
|
|
2183
2190
|
/**
|
|
@@ -2408,7 +2415,7 @@ export declare namespace commands {
|
|
|
2408
2415
|
/**
|
|
2409
2416
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
2410
2417
|
* @i2since 1.0
|
|
2411
|
-
* @deprecated since version 1.4. `commands.IChartPopupMenuSystemGroups` has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2418
|
+
* @deprecated Deprecated since version 1.4. `commands.IChartPopupMenuSystemGroups` has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2412
2419
|
*/
|
|
2413
2420
|
export interface IChartPopupMenuSystemGroups {
|
|
2414
2421
|
/**
|
|
@@ -3054,31 +3061,31 @@ export declare namespace data {
|
|
|
3054
3061
|
/**
|
|
3055
3062
|
* A label for an element or a record.
|
|
3056
3063
|
* @i2since 1.0
|
|
3057
|
-
* @deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails} or {@link visual.IElementLabelDetails} instead.
|
|
3064
|
+
* @deprecated Deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails}, or {@link visual.IElementLabelDetails} instead.
|
|
3058
3065
|
*/
|
|
3059
3066
|
export type ILabelDetails = ILabelDetailsBase;
|
|
3060
3067
|
/**
|
|
3061
|
-
* A
|
|
3068
|
+
* A set of information that is common to all labels.
|
|
3062
3069
|
* @i2since 1.5
|
|
3063
3070
|
*/
|
|
3064
3071
|
export interface ILabelDetailsBase {
|
|
3065
3072
|
/**
|
|
3066
|
-
* Gets the label or, if
|
|
3073
|
+
* Gets the label or, if the label is empty, a standard fallback string such as '\<No value\>'.
|
|
3067
3074
|
*
|
|
3068
3075
|
* @remarks
|
|
3069
|
-
* To distinguish between a
|
|
3076
|
+
* To distinguish between a label that's been set and a fallback string, inspect {@link data.ILabelDetailsBase.hasLabel | hasLabel}.
|
|
3070
3077
|
* @i2since 1.0
|
|
3071
3078
|
*/
|
|
3072
3079
|
readonly labelOrFallback: string;
|
|
3073
3080
|
/**
|
|
3074
|
-
* Gets the label or, if
|
|
3081
|
+
* Gets the label or, if the label is empty, an empty string.
|
|
3075
3082
|
* @i2since 1.0
|
|
3076
3083
|
*/
|
|
3077
3084
|
readonly labelOrEmpty: string;
|
|
3078
3085
|
/**
|
|
3079
|
-
* Indicates whether
|
|
3086
|
+
* Indicates whether the label is not empty.
|
|
3080
3087
|
*
|
|
3081
|
-
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback}
|
|
3088
|
+
* @returns `true` if the label from {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} is _not_ the fallback; `false` if it is.
|
|
3082
3089
|
* @i2since 1.0
|
|
3083
3090
|
*/
|
|
3084
3091
|
readonly hasLabel: boolean;
|
|
@@ -3345,7 +3352,7 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
3345
3352
|
* For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
|
|
3346
3353
|
* @returns The new tool view.
|
|
3347
3354
|
* @i2since 1.0
|
|
3348
|
-
* @deprecated since version 1.3. Use {@link (IEntryPointApi:interface).(createToolView:2)} instead.
|
|
3355
|
+
* @deprecated Deprecated since version 1.3. Use {@link (IEntryPointApi:interface).(createToolView:2) | createToolView(IToolViewConfig)} instead.
|
|
3349
3356
|
*/
|
|
3350
3357
|
createToolView(name: string, path: string): toolview.IToolView;
|
|
3351
3358
|
/**
|
|
@@ -4607,7 +4614,7 @@ export declare namespace toolview {
|
|
|
4607
4614
|
clear(): void;
|
|
4608
4615
|
}
|
|
4609
4616
|
/**
|
|
4610
|
-
* A tool view, as returned by {@link IEntryPointApi.(createToolView:
|
|
4617
|
+
* A tool view, as returned by {@link (IEntryPointApi:interface).(createToolView:2)}.
|
|
4611
4618
|
*
|
|
4612
4619
|
* @i2since 1.0
|
|
4613
4620
|
*/
|
|
@@ -4805,9 +4812,11 @@ export declare namespace visual {
|
|
|
4805
4812
|
*/
|
|
4806
4813
|
export interface IElementLabelDetails extends data.ILabelDetailsBase {
|
|
4807
4814
|
/**
|
|
4808
|
-
* Indicates whether the label contains an
|
|
4815
|
+
* Indicates whether the label contains an explicitly set value, or was generated from the schema label definition.
|
|
4809
4816
|
*
|
|
4810
|
-
* @
|
|
4817
|
+
* @remarks
|
|
4818
|
+
* 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`.
|
|
4819
|
+
* @returns `true` if the label in {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} was generated from the schema; `false` if it was explicitly set.
|
|
4811
4820
|
* @i2since 1.5
|
|
4812
4821
|
*/
|
|
4813
4822
|
readonly isDefault: boolean;
|
|
@@ -4888,7 +4897,7 @@ export declare namespace visual {
|
|
|
4888
4897
|
/**
|
|
4889
4898
|
* Gets all the edges that are connected to the node.
|
|
4890
4899
|
* @i2since 1.0
|
|
4891
|
-
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
4900
|
+
* @deprecated `visual.INode.connectedEdges` has been renamed to {@link visual.INode.edges}.
|
|
4892
4901
|
*/
|
|
4893
4902
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
4894
4903
|
}
|
|
@@ -4969,12 +4978,12 @@ export declare namespace visual {
|
|
|
4969
4978
|
readonly color: IElementSetting<string>;
|
|
4970
4979
|
}
|
|
4971
4980
|
/**
|
|
4972
|
-
*
|
|
4981
|
+
* An image for a node element.
|
|
4973
4982
|
* @i2since 1.5
|
|
4974
4983
|
*/
|
|
4975
4984
|
export interface IImageSetting extends data.IImage {
|
|
4976
4985
|
/**
|
|
4977
|
-
* Indicates whether the image is the default
|
|
4986
|
+
* Indicates whether the image is the default one for the node.
|
|
4978
4987
|
* @i2since 1.5
|
|
4979
4988
|
*/
|
|
4980
4989
|
readonly isDefault: boolean;
|