@i2analyze/notebook-sdk 1.9.0-dev.12 → 1.9.0-dev.13
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.
|
@@ -78,9 +78,11 @@ export declare namespace app {
|
|
|
78
78
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
79
79
|
* @param responseHandler - A callback that receives the changes caused by the mutations.
|
|
80
80
|
* @param options - An object that can control the transaction.
|
|
81
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
81
82
|
* @i2since 1.1
|
|
83
|
+
* @deprecated Use the options-only overload and await the returned Promise instead.
|
|
82
84
|
*/
|
|
83
|
-
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler
|
|
85
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler: MutationResponseHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
84
86
|
/**
|
|
85
87
|
* Queues a function that performs tracked mutations on the application contents at the next available opportunity.
|
|
86
88
|
*
|
|
@@ -90,9 +92,10 @@ export declare namespace app {
|
|
|
90
92
|
*
|
|
91
93
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
92
94
|
* @param options - An object that can control the transaction.
|
|
95
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
93
96
|
* @i2since 1.1
|
|
94
97
|
*/
|
|
95
|
-
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions):
|
|
98
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
96
99
|
/**
|
|
97
100
|
* Queues a function that performs untracked mutations on the application contents at the next available opportunity,
|
|
98
101
|
* and can respond to the changes that the mutations cause.
|
|
@@ -104,9 +107,11 @@ export declare namespace app {
|
|
|
104
107
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
105
108
|
* @param responseHandler - A callback that receives the changes produced by the mutations.
|
|
106
109
|
* @param options - An object that can control the transaction.
|
|
110
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
107
111
|
* @i2since 1.1
|
|
112
|
+
* @deprecated Use the options-only overload and await the returned Promise instead.
|
|
108
113
|
*/
|
|
109
|
-
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler
|
|
114
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler: MutationResponseHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
110
115
|
/**
|
|
111
116
|
* Queues a function that performs untracked mutations on the application contents at the next available opportunity.
|
|
112
117
|
*
|
|
@@ -116,9 +121,10 @@ export declare namespace app {
|
|
|
116
121
|
*
|
|
117
122
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
118
123
|
* @param options - An object that can control the transaction.
|
|
124
|
+
* @returns A promise that is fulfilled with the result of the mutations if they complete successfully, or rejected if there is a problem performing them.
|
|
119
125
|
* @i2since 1.1
|
|
120
126
|
*/
|
|
121
|
-
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions):
|
|
127
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): Promise<IMutationResult>;
|
|
122
128
|
/**
|
|
123
129
|
* Gets the identifiers of the system dialog actions.
|
|
124
130
|
* @i2since 1.4
|
|
@@ -129,6 +135,11 @@ export declare namespace app {
|
|
|
129
135
|
* @i2since 1.9
|
|
130
136
|
*/
|
|
131
137
|
readonly brushSets: visual.IBrushSetsManager;
|
|
138
|
+
/**
|
|
139
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
140
|
+
* @i2since 1.9
|
|
141
|
+
*/
|
|
142
|
+
readonly valueFactory: IValueFactory;
|
|
132
143
|
}
|
|
133
144
|
/**
|
|
134
145
|
* A report on the result of one or more mutations.
|
|
@@ -4350,7 +4361,7 @@ export declare namespace dialog {
|
|
|
4350
4361
|
*
|
|
4351
4362
|
* @i2since 1.4
|
|
4352
4363
|
*/
|
|
4353
|
-
export interface IDialogApi extends app.IApplication {
|
|
4364
|
+
export interface IDialogApi extends app.IApplication, app.IApplicationContents {
|
|
4354
4365
|
/**
|
|
4355
4366
|
* Updates the label or the enabled state of the specified dialog action.
|
|
4356
4367
|
*
|
|
@@ -4494,15 +4505,18 @@ export declare function getToolViewApi(): Promise<toolview.IToolViewApi>;
|
|
|
4494
4505
|
* @public
|
|
4495
4506
|
* @i2since 1.0
|
|
4496
4507
|
*/
|
|
4497
|
-
export declare interface IEntryPointApi extends app.IApplication {
|
|
4508
|
+
export declare interface IEntryPointApi extends app.IApplication, app.IApplicationContents {
|
|
4498
4509
|
/**
|
|
4499
4510
|
* Allows plug-ins to indicate when their registrations are complete, so that the i2 Notebook user interface can start.
|
|
4500
4511
|
*
|
|
4501
4512
|
* @remarks
|
|
4502
4513
|
* If a plug-in does not call this method after completing registration, i2 Notebook abandons its attempt to load it.
|
|
4514
|
+
*
|
|
4515
|
+
* When the plug-in awaits the returned promise, the `chart` and `view` properties become available.
|
|
4516
|
+
* @returns A promise that resolves when the application has finished loading.
|
|
4503
4517
|
* @i2since 1.0
|
|
4504
4518
|
*/
|
|
4505
|
-
initializationComplete(): void
|
|
4519
|
+
initializationComplete(): Promise<void>;
|
|
4506
4520
|
/**
|
|
4507
4521
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
4508
4522
|
* @i2since 1.0
|
|
@@ -5995,7 +6009,7 @@ export declare namespace toolview {
|
|
|
5995
6009
|
* A collection of methods and properties that allow plug-in tool views to interact with i2 Notebook.
|
|
5996
6010
|
* @i2since 1.0
|
|
5997
6011
|
*/
|
|
5998
|
-
export interface IToolViewApi extends IToolView, app.IApplication {
|
|
6012
|
+
export interface IToolViewApi extends IToolView, app.IApplication, app.IApplicationContents {
|
|
5999
6013
|
/**
|
|
6000
6014
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
6001
6015
|
* @i2since 1.0
|