@i2analyze/notebook-sdk 1.2.0-dev.3 → 1.2.0-dev.4
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 +27 -15
- package/package.json +1 -1
|
@@ -164,6 +164,17 @@ export declare namespace app {
|
|
|
164
164
|
*/
|
|
165
165
|
details: string;
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Unique identifiers relating to a change made.
|
|
169
|
+
* @i2since 1.2
|
|
170
|
+
*/
|
|
171
|
+
export interface IChangeSource {
|
|
172
|
+
/**
|
|
173
|
+
* Gets the id of a plug-in responsible for a change.
|
|
174
|
+
* @i2since 1.2
|
|
175
|
+
*/
|
|
176
|
+
readonly pluginId?: string;
|
|
177
|
+
}
|
|
167
178
|
/**
|
|
168
179
|
* A set of information that is common to requests to commit mutations of all types.
|
|
169
180
|
* @i2since 1.1
|
|
@@ -1439,27 +1450,27 @@ export declare namespace chart {
|
|
|
1439
1450
|
/**
|
|
1440
1451
|
* A callback function that handles chart selection events.
|
|
1441
1452
|
*
|
|
1442
|
-
* @param selection -The selection on the chart at the moment the callback was invoked.
|
|
1453
|
+
* @param selection -The selection on the chart at the moment the callback was invoked and the source of change.
|
|
1443
1454
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1444
1455
|
* @i2since 1.0
|
|
1445
1456
|
*/
|
|
1446
|
-
export type SelectionListener = (selection: ISelection, applicationContents: app.IApplicationContents) => void;
|
|
1457
|
+
export type SelectionListener = (selection: ISelection & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1447
1458
|
/**
|
|
1448
1459
|
* A callback function that handles chart events.
|
|
1449
1460
|
*
|
|
1450
|
-
* @param change - The change that took place on the chart and caused the callback to be invoked.
|
|
1461
|
+
* @param change - The change that took place on the chart and caused the callback to be invoked and the source of change.
|
|
1451
1462
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1452
1463
|
* @i2since 1.0
|
|
1453
1464
|
*/
|
|
1454
|
-
export type ChangeListener = (change: IChartChange, applicationContents: app.IApplicationContents) => void;
|
|
1465
|
+
export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1455
1466
|
/**
|
|
1456
1467
|
* A callback function that handles chart view events.
|
|
1457
1468
|
*
|
|
1458
|
-
* @param view -The appearance of the chart following the change that caused the callback to be invoked.
|
|
1469
|
+
* @param view -The appearance of the chart following the change that caused the callback to be invoked and the source of change.
|
|
1459
1470
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1460
1471
|
* @i2since 1.0
|
|
1461
1472
|
*/
|
|
1462
|
-
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1473
|
+
export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1463
1474
|
/**
|
|
1464
1475
|
* Constraints that control a view-fitting operation.
|
|
1465
1476
|
*
|
|
@@ -1602,10 +1613,10 @@ export declare namespace commands {
|
|
|
1602
1613
|
/**
|
|
1603
1614
|
* A callback function that handles records context change events.
|
|
1604
1615
|
*
|
|
1605
|
-
* @param recordsContext - The records that are pertinent in the context of the surfaced command.
|
|
1616
|
+
* @param recordsContext - The records that are pertinent in the context of the surfaced command and the source of change.
|
|
1606
1617
|
* @i2since 1.0
|
|
1607
1618
|
*/
|
|
1608
|
-
export type RecordsContextChangeListener = (recordsContext: IRecordsContext) => void;
|
|
1619
|
+
export type RecordsContextChangeListener = (recordsContext: IRecordsContext & app.IChangeSource) => void;
|
|
1609
1620
|
/**
|
|
1610
1621
|
* An identifier of a command.
|
|
1611
1622
|
* @i2since 1.0
|
|
@@ -3972,13 +3983,14 @@ export declare namespace toolview {
|
|
|
3972
3983
|
*/
|
|
3973
3984
|
export type ToolViewUnloadListener = (isClosing: boolean) => void;
|
|
3974
3985
|
/**
|
|
3975
|
-
* A callback function that handles tool view minimized
|
|
3986
|
+
* A callback function that handles tool view minimized events.
|
|
3976
3987
|
*
|
|
3977
3988
|
* @remarks
|
|
3978
|
-
* This listener receives an event
|
|
3989
|
+
* This listener receives an event after the docked tool view changes visibility in the i2 Notebook user interface,
|
|
3990
|
+
* as a result of a chart or another docked tool being maximized or restored.
|
|
3979
3991
|
*
|
|
3980
|
-
* @param isMinimized - `true` if the tool view is
|
|
3981
|
-
* `false` if
|
|
3992
|
+
* @param isMinimized - `true` if the tool view is now invisible for one of the reasons given;
|
|
3993
|
+
* `false` if it is now visible in the opposite circumstances.
|
|
3982
3994
|
* @i2since 1.2
|
|
3983
3995
|
*/
|
|
3984
3996
|
export type ToolViewMinimizedListener = (isMinimized: boolean) => void;
|
|
@@ -4060,10 +4072,10 @@ export declare namespace toolview {
|
|
|
4060
4072
|
*/
|
|
4061
4073
|
readonly isOpen: boolean;
|
|
4062
4074
|
/**
|
|
4063
|
-
* Indicates whether the
|
|
4075
|
+
* Indicates whether the tool view is open and docked but not visible in the user interface.
|
|
4064
4076
|
*
|
|
4065
|
-
* @returns `true` if the tool view is
|
|
4066
|
-
* `false` if
|
|
4077
|
+
* @returns `true` if the tool view is not visible because a chart or another tool view is maximized;
|
|
4078
|
+
* `false` if nothing is maximized, or if the tool view is closed or undocked.
|
|
4067
4079
|
* @i2since 1.2
|
|
4068
4080
|
*/
|
|
4069
4081
|
readonly isMinimized: boolean;
|