@i2analyze/notebook-sdk 1.5.0-dev.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 +25 -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
|
/**
|
|
@@ -2177,7 +2177,7 @@ export declare namespace commands {
|
|
|
2177
2177
|
* @remarks
|
|
2178
2178
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2179
2179
|
* @i2since 1.0
|
|
2180
|
-
* @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}.
|
|
2181
2181
|
*/
|
|
2182
2182
|
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
|
|
2183
2183
|
/**
|
|
@@ -2408,7 +2408,7 @@ export declare namespace commands {
|
|
|
2408
2408
|
/**
|
|
2409
2409
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
2410
2410
|
* @i2since 1.0
|
|
2411
|
-
* @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}.
|
|
2412
2412
|
*/
|
|
2413
2413
|
export interface IChartPopupMenuSystemGroups {
|
|
2414
2414
|
/**
|
|
@@ -3054,31 +3054,31 @@ export declare namespace data {
|
|
|
3054
3054
|
/**
|
|
3055
3055
|
* A label for an element or a record.
|
|
3056
3056
|
* @i2since 1.0
|
|
3057
|
-
* @deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails} or {@link visual.IElementLabelDetails} instead.
|
|
3057
|
+
* @deprecated Deprecated since version 1.5. Use {@link data.ILabelDetailsBase}, {@link records.IRecordLabelDetails}, or {@link visual.IElementLabelDetails} instead.
|
|
3058
3058
|
*/
|
|
3059
3059
|
export type ILabelDetails = ILabelDetailsBase;
|
|
3060
3060
|
/**
|
|
3061
|
-
* A
|
|
3061
|
+
* A set of information that is common to all labels.
|
|
3062
3062
|
* @i2since 1.5
|
|
3063
3063
|
*/
|
|
3064
3064
|
export interface ILabelDetailsBase {
|
|
3065
3065
|
/**
|
|
3066
|
-
* Gets the label or, if
|
|
3066
|
+
* Gets the label or, if the label is empty, a standard fallback string such as '\<No value\>'.
|
|
3067
3067
|
*
|
|
3068
3068
|
* @remarks
|
|
3069
|
-
* To distinguish between a
|
|
3069
|
+
* To distinguish between a label that's been set and a fallback string, inspect {@link data.ILabelDetailsBase.hasLabel | hasLabel}.
|
|
3070
3070
|
* @i2since 1.0
|
|
3071
3071
|
*/
|
|
3072
3072
|
readonly labelOrFallback: string;
|
|
3073
3073
|
/**
|
|
3074
|
-
* Gets the label or, if
|
|
3074
|
+
* Gets the label or, if the label is empty, an empty string.
|
|
3075
3075
|
* @i2since 1.0
|
|
3076
3076
|
*/
|
|
3077
3077
|
readonly labelOrEmpty: string;
|
|
3078
3078
|
/**
|
|
3079
|
-
* Indicates whether
|
|
3079
|
+
* Indicates whether the label is not empty.
|
|
3080
3080
|
*
|
|
3081
|
-
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback}
|
|
3081
|
+
* @returns `true` if the label from {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} is _not_ the fallback; `false` if it is.
|
|
3082
3082
|
* @i2since 1.0
|
|
3083
3083
|
*/
|
|
3084
3084
|
readonly hasLabel: boolean;
|
|
@@ -3345,7 +3345,7 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
3345
3345
|
* For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
|
|
3346
3346
|
* @returns The new tool view.
|
|
3347
3347
|
* @i2since 1.0
|
|
3348
|
-
* @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.
|
|
3349
3349
|
*/
|
|
3350
3350
|
createToolView(name: string, path: string): toolview.IToolView;
|
|
3351
3351
|
/**
|
|
@@ -4607,7 +4607,7 @@ export declare namespace toolview {
|
|
|
4607
4607
|
clear(): void;
|
|
4608
4608
|
}
|
|
4609
4609
|
/**
|
|
4610
|
-
* A tool view, as returned by {@link IEntryPointApi.(createToolView:
|
|
4610
|
+
* A tool view, as returned by {@link (IEntryPointApi:interface).(createToolView:2)}.
|
|
4611
4611
|
*
|
|
4612
4612
|
* @i2since 1.0
|
|
4613
4613
|
*/
|
|
@@ -4805,9 +4805,11 @@ export declare namespace visual {
|
|
|
4805
4805
|
*/
|
|
4806
4806
|
export interface IElementLabelDetails extends data.ILabelDetailsBase {
|
|
4807
4807
|
/**
|
|
4808
|
-
* Indicates whether the label contains an
|
|
4808
|
+
* Indicates whether the label contains an explicitly set value, or was generated from the schema label definition.
|
|
4809
4809
|
*
|
|
4810
|
-
* @
|
|
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.
|
|
4811
4813
|
* @i2since 1.5
|
|
4812
4814
|
*/
|
|
4813
4815
|
readonly isDefault: boolean;
|
|
@@ -4888,7 +4890,7 @@ export declare namespace visual {
|
|
|
4888
4890
|
/**
|
|
4889
4891
|
* Gets all the edges that are connected to the node.
|
|
4890
4892
|
* @i2since 1.0
|
|
4891
|
-
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
4893
|
+
* @deprecated `visual.INode.connectedEdges` has been renamed to {@link visual.INode.edges}.
|
|
4892
4894
|
*/
|
|
4893
4895
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
4894
4896
|
}
|
|
@@ -4969,12 +4971,12 @@ export declare namespace visual {
|
|
|
4969
4971
|
readonly color: IElementSetting<string>;
|
|
4970
4972
|
}
|
|
4971
4973
|
/**
|
|
4972
|
-
*
|
|
4974
|
+
* An image for a node element.
|
|
4973
4975
|
* @i2since 1.5
|
|
4974
4976
|
*/
|
|
4975
4977
|
export interface IImageSetting extends data.IImage {
|
|
4976
4978
|
/**
|
|
4977
|
-
* Indicates whether the image is the default
|
|
4979
|
+
* Indicates whether the image is the default one for the node.
|
|
4978
4980
|
* @i2since 1.5
|
|
4979
4981
|
*/
|
|
4980
4982
|
readonly isDefault: boolean;
|