@i2analyze/notebook-sdk 1.9.0-dev.11 → 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.
- package/lib/gen/notebook-sdk-public.d.ts +40 -68
- package/package.json +1 -1
|
@@ -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.
|
|
@@ -2092,6 +2103,11 @@ export declare namespace chart {
|
|
|
2092
2103
|
* @i2since 1.5
|
|
2093
2104
|
*/
|
|
2094
2105
|
readonly chartschemachange: ChartSchemaChangeListener;
|
|
2106
|
+
/**
|
|
2107
|
+
* Gets the type of the callback method that listens for "brushsetchange" events.
|
|
2108
|
+
* @i2since 1.9
|
|
2109
|
+
*/
|
|
2110
|
+
readonly brushsetchange: BrushSetChangeListener;
|
|
2095
2111
|
}
|
|
2096
2112
|
/**
|
|
2097
2113
|
* A mapping of chart event types to their listener options types.
|
|
@@ -2118,6 +2134,11 @@ export declare namespace chart {
|
|
|
2118
2134
|
* @i2since 1.5
|
|
2119
2135
|
*/
|
|
2120
2136
|
readonly chartschemachange: app.ISubscriptionOptions;
|
|
2137
|
+
/**
|
|
2138
|
+
* Gets the type of the object that provides control over "brushsetchange" event listeners.
|
|
2139
|
+
* @i2since 1.9
|
|
2140
|
+
*/
|
|
2141
|
+
readonly brushsetchange: app.ISubscriptionOptions;
|
|
2121
2142
|
}
|
|
2122
2143
|
/**
|
|
2123
2144
|
* A callback function that handles chart selection events.
|
|
@@ -2151,6 +2172,14 @@ export declare namespace chart {
|
|
|
2151
2172
|
* @i2since 1.0
|
|
2152
2173
|
*/
|
|
2153
2174
|
export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
2175
|
+
/**
|
|
2176
|
+
* A callback function that handles brush set change events.
|
|
2177
|
+
*
|
|
2178
|
+
* @param brushSet - The brush set that changed.
|
|
2179
|
+
* @param applicationContents - The contents of the application, including the current chart.
|
|
2180
|
+
* @i2since 1.9
|
|
2181
|
+
*/
|
|
2182
|
+
export type BrushSetChangeListener = (brushSet: visual.IBrushSet, applicationContents: app.IApplicationContents) => void;
|
|
2154
2183
|
/**
|
|
2155
2184
|
* Constraints that control a view-fitting operation.
|
|
2156
2185
|
*
|
|
@@ -4332,7 +4361,7 @@ export declare namespace dialog {
|
|
|
4332
4361
|
*
|
|
4333
4362
|
* @i2since 1.4
|
|
4334
4363
|
*/
|
|
4335
|
-
export interface IDialogApi extends app.IApplication {
|
|
4364
|
+
export interface IDialogApi extends app.IApplication, app.IApplicationContents {
|
|
4336
4365
|
/**
|
|
4337
4366
|
* Updates the label or the enabled state of the specified dialog action.
|
|
4338
4367
|
*
|
|
@@ -4476,15 +4505,18 @@ export declare function getToolViewApi(): Promise<toolview.IToolViewApi>;
|
|
|
4476
4505
|
* @public
|
|
4477
4506
|
* @i2since 1.0
|
|
4478
4507
|
*/
|
|
4479
|
-
export declare interface IEntryPointApi extends app.IApplication {
|
|
4508
|
+
export declare interface IEntryPointApi extends app.IApplication, app.IApplicationContents {
|
|
4480
4509
|
/**
|
|
4481
4510
|
* Allows plug-ins to indicate when their registrations are complete, so that the i2 Notebook user interface can start.
|
|
4482
4511
|
*
|
|
4483
4512
|
* @remarks
|
|
4484
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.
|
|
4485
4517
|
* @i2since 1.0
|
|
4486
4518
|
*/
|
|
4487
|
-
initializationComplete(): void
|
|
4519
|
+
initializationComplete(): Promise<void>;
|
|
4488
4520
|
/**
|
|
4489
4521
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
4490
4522
|
* @i2since 1.0
|
|
@@ -5977,7 +6009,7 @@ export declare namespace toolview {
|
|
|
5977
6009
|
* A collection of methods and properties that allow plug-in tool views to interact with i2 Notebook.
|
|
5978
6010
|
* @i2since 1.0
|
|
5979
6011
|
*/
|
|
5980
|
-
export interface IToolViewApi extends IToolView, app.IApplication {
|
|
6012
|
+
export interface IToolViewApi extends IToolView, app.IApplication, app.IApplicationContents {
|
|
5981
6013
|
/**
|
|
5982
6014
|
* Gets an object that can be used to perform plug-in logging operations.
|
|
5983
6015
|
* @i2since 1.0
|
|
@@ -6550,55 +6582,6 @@ export declare namespace visual {
|
|
|
6550
6582
|
*/
|
|
6551
6583
|
clear(): void;
|
|
6552
6584
|
}
|
|
6553
|
-
/**
|
|
6554
|
-
* An event that is fired when a brush set changes.
|
|
6555
|
-
* @i2since 1.9
|
|
6556
|
-
*/
|
|
6557
|
-
export interface IBrushSetChangeEvent {
|
|
6558
|
-
/**
|
|
6559
|
-
* Gets the brush set that changed.
|
|
6560
|
-
* @i2since 1.9
|
|
6561
|
-
*/
|
|
6562
|
-
readonly brushSet: IBrushSet;
|
|
6563
|
-
}
|
|
6564
|
-
/**
|
|
6565
|
-
* A listener for brush set change events.
|
|
6566
|
-
* @i2since 1.9
|
|
6567
|
-
*/
|
|
6568
|
-
export type BrushSetChangeListener = (event: IBrushSetChangeEvent) => void;
|
|
6569
|
-
/**
|
|
6570
|
-
* Options for adding a brush set change event listener.
|
|
6571
|
-
* @i2since 1.9
|
|
6572
|
-
*/
|
|
6573
|
-
export interface IBrushSetEventOptions {
|
|
6574
|
-
/**
|
|
6575
|
-
* Gets the brush set to listen to changes for. If not specified, listens to all brush sets.
|
|
6576
|
-
* @i2since 1.9
|
|
6577
|
-
*/
|
|
6578
|
-
readonly brushSet?: IBrushSet;
|
|
6579
|
-
}
|
|
6580
|
-
/**
|
|
6581
|
-
* A map of brush sets event types to their listener functions.
|
|
6582
|
-
* @i2since 1.9
|
|
6583
|
-
*/
|
|
6584
|
-
export interface BrushSetsEventMap {
|
|
6585
|
-
/**
|
|
6586
|
-
* Gets the listener function for brush set change events.
|
|
6587
|
-
* @i2since 1.9
|
|
6588
|
-
*/
|
|
6589
|
-
brushsetchange: BrushSetChangeListener;
|
|
6590
|
-
}
|
|
6591
|
-
/**
|
|
6592
|
-
* A map of brush sets event types to their options.
|
|
6593
|
-
* @i2since 1.9
|
|
6594
|
-
*/
|
|
6595
|
-
export interface BrushSetsEventOptionsMap {
|
|
6596
|
-
/**
|
|
6597
|
-
* Gets the options for the `brushsetchange` event.
|
|
6598
|
-
* @i2since 1.9
|
|
6599
|
-
*/
|
|
6600
|
-
brushsetchange: IBrushSetEventOptions;
|
|
6601
|
-
}
|
|
6602
6585
|
/**
|
|
6603
6586
|
* A manager for brush sets that controls their lifecycle and provides color resolution.
|
|
6604
6587
|
* @i2since 1.9
|
|
@@ -6679,17 +6662,6 @@ export declare namespace visual {
|
|
|
6679
6662
|
* @i2since 1.9
|
|
6680
6663
|
*/
|
|
6681
6664
|
getColorForElement(elementId: ElementId): string | null;
|
|
6682
|
-
/**
|
|
6683
|
-
* Adds an event listener for brush set events.
|
|
6684
|
-
*
|
|
6685
|
-
* @typeParam K - The type of event to listen for.
|
|
6686
|
-
* @param type - The type of event to listen for.
|
|
6687
|
-
* @param listener - The function to call when the event is fired.
|
|
6688
|
-
* @param options - An optional configuration for the event listener.
|
|
6689
|
-
* @returns A function that removes the event listener when called.
|
|
6690
|
-
* @i2since 1.9
|
|
6691
|
-
*/
|
|
6692
|
-
addEventListener<K extends keyof BrushSetsEventMap>(type: K, listener: BrushSetsEventMap[K], options?: BrushSetsEventOptionsMap[K]): () => void;
|
|
6693
6665
|
}
|
|
6694
6666
|
}
|
|
6695
6667
|
|