@i2analyze/notebook-sdk 1.4.0 → 1.5.0-dev.0
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 +73 -7
- 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 of the node.
|
|
627
|
+
*
|
|
628
|
+
* @param href - The URL of the image.
|
|
629
|
+
* @param description - The 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 of the node to the default.
|
|
636
|
+
*
|
|
637
|
+
* @param href - `undefined`
|
|
638
|
+
* @returns The node, with its image reset to the default value.
|
|
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.
|
|
@@ -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.
|
|
@@ -3024,13 +3054,19 @@ export declare namespace data {
|
|
|
3024
3054
|
/**
|
|
3025
3055
|
* A label for an element or a record.
|
|
3026
3056
|
* @i2since 1.0
|
|
3057
|
+
* @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 label for an element or a record.
|
|
3062
|
+
* @i2since 1.5
|
|
3027
3063
|
*/
|
|
3028
|
-
export interface
|
|
3064
|
+
export interface ILabelDetailsBase {
|
|
3029
3065
|
/**
|
|
3030
3066
|
* Gets the label or, if not present, a standard fallback string such as '\<No value\>'.
|
|
3031
3067
|
*
|
|
3032
3068
|
* @remarks
|
|
3033
|
-
* To distinguish between a real label and a fallback string, inspect {@link data.
|
|
3069
|
+
* To distinguish between a real label and a fallback string, inspect {@link data.ILabelDetailsBase.hasLabel | hasLabel}.
|
|
3034
3070
|
* @i2since 1.0
|
|
3035
3071
|
*/
|
|
3036
3072
|
readonly labelOrFallback: string;
|
|
@@ -3042,7 +3078,7 @@ export declare namespace data {
|
|
|
3042
3078
|
/**
|
|
3043
3079
|
* Indicates whether a real label is present.
|
|
3044
3080
|
*
|
|
3045
|
-
* @returns `true` if {@link data.
|
|
3081
|
+
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} contains a real label; `false` if it contains a fallback.
|
|
3046
3082
|
* @i2since 1.0
|
|
3047
3083
|
*/
|
|
3048
3084
|
readonly hasLabel: boolean;
|
|
@@ -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
|
|
@@ -4757,6 +4799,19 @@ 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 explicity set value for the element, or is generated from the schema label definition.
|
|
4809
|
+
*
|
|
4810
|
+
* @returns `true` if {@link data.ILabelDetailsBase.labelOrFallback | labelOrFallback} is generated from the schema; `false` if has been explicity set.
|
|
4811
|
+
* @i2since 1.5
|
|
4812
|
+
*/
|
|
4813
|
+
readonly isDefault: boolean;
|
|
4814
|
+
}
|
|
4760
4815
|
/**
|
|
4761
4816
|
* A set of information and functionality that is common to all elements on an i2 Notebook chart.
|
|
4762
4817
|
* @i2since 1.0
|
|
@@ -4786,7 +4841,7 @@ export declare namespace visual {
|
|
|
4786
4841
|
* @returns The label (or a fallback string) and an indication of whether the label is real.
|
|
4787
4842
|
* @i2since 1.0
|
|
4788
4843
|
*/
|
|
4789
|
-
getLabelDetails():
|
|
4844
|
+
getLabelDetails(): IElementLabelDetails;
|
|
4790
4845
|
/**
|
|
4791
4846
|
* Gets the records that the element represents, indexed by their identifiers.
|
|
4792
4847
|
* @i2since 1.0
|
|
@@ -4913,6 +4968,17 @@ export declare namespace visual {
|
|
|
4913
4968
|
*/
|
|
4914
4969
|
readonly color: IElementSetting<string>;
|
|
4915
4970
|
}
|
|
4971
|
+
/**
|
|
4972
|
+
* A value for the node image setting.
|
|
4973
|
+
* @i2since 1.5
|
|
4974
|
+
*/
|
|
4975
|
+
export interface IImageSetting extends data.IImage {
|
|
4976
|
+
/**
|
|
4977
|
+
* Indicates whether the image is the default image for this element.
|
|
4978
|
+
* @i2since 1.5
|
|
4979
|
+
*/
|
|
4980
|
+
readonly isDefault: boolean;
|
|
4981
|
+
}
|
|
4916
4982
|
/**
|
|
4917
4983
|
* A style for a node, which affects its appearance.
|
|
4918
4984
|
* @i2since 1.0
|
|
@@ -4922,7 +4988,7 @@ export declare namespace visual {
|
|
|
4922
4988
|
* Gets the image to display for the node.
|
|
4923
4989
|
* @i2since 1.0
|
|
4924
4990
|
*/
|
|
4925
|
-
readonly image:
|
|
4991
|
+
readonly image: IImageSetting;
|
|
4926
4992
|
/**
|
|
4927
4993
|
* Gets the size of the node.
|
|
4928
4994
|
* @i2since 1.2
|
package/lib/index.js
CHANGED