@i2analyze/notebook-sdk 1.1.0-dev.2 → 1.1.0-dev.20
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/CHANGELOG.md +135 -0
- package/lib/gen/notebook-sdk-public.d.ts +714 -195
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare namespace app {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface IApplication extends IApplicationEvents {
|
|
20
20
|
/**
|
|
21
|
-
* Queues a function that performs work on the application contents at the next available opportunity.
|
|
21
|
+
* Queues a function that performs read-only work on the application contents at the next available opportunity.
|
|
22
22
|
*
|
|
23
23
|
* @param handler - The function to perform the work.
|
|
24
24
|
* @param options - An object that can control the transaction.
|
|
@@ -68,97 +68,283 @@ export declare namespace app {
|
|
|
68
68
|
*/
|
|
69
69
|
readonly serverComponents: IServerComponents;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
71
|
+
* Queues a function that performs tracked mutations on the application contents at the next available opportunity.
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* A mutation is an operation that can read or modify the contents of the application.
|
|
75
|
+
* A successful set of tracked mutations is added as a single entry to the undo stack.
|
|
76
|
+
*
|
|
77
|
+
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
78
|
+
* @i2since 1.1
|
|
79
|
+
*/
|
|
80
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler): void;
|
|
81
|
+
/**
|
|
82
|
+
* Queues a function that performs untracked mutations on the application contents at the next available opportunity.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* A mutation is an operation that can read or modify the contents of the application.
|
|
86
|
+
* Untracked mutations are not added to the undo stack, and therefore cannot be undone.
|
|
87
|
+
*
|
|
88
|
+
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
89
|
+
* @i2since 1.1
|
|
90
|
+
*/
|
|
91
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler): void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A report on the result of one or more mutations.
|
|
95
|
+
* @i2since 1.1
|
|
96
|
+
*/
|
|
97
|
+
export type IMutationReport = ISuccessReport | IDetailedReport;
|
|
98
|
+
/**
|
|
99
|
+
* A report on the result of an entirely successful set of mutations.
|
|
100
|
+
* The report is typically displayed through a transient, 'toast'-style notification.
|
|
101
|
+
* @i2since 1.1
|
|
102
|
+
*/
|
|
103
|
+
export interface ISuccessReport {
|
|
104
|
+
/**
|
|
105
|
+
* Gets or sets the type of the report, which must be `'success'` for an `ISuccessReport`.
|
|
106
|
+
* @i2since 1.1
|
|
107
|
+
*/
|
|
108
|
+
type: 'success';
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets some additional information about the completed mutations.
|
|
73
111
|
* @i2since 1.1
|
|
74
112
|
*/
|
|
75
|
-
|
|
76
|
-
runUntrackedMutation(mutationListener: UntrackedMutationListener): void;
|
|
113
|
+
details: string;
|
|
77
114
|
}
|
|
78
|
-
|
|
115
|
+
/**
|
|
116
|
+
* A report on the result of a set of mutations that were not entirely successful.
|
|
117
|
+
* The report is typically displayed through a 'dialog'-style notification.
|
|
118
|
+
* @i2since 1.1
|
|
119
|
+
*/
|
|
120
|
+
export interface IDetailedReport {
|
|
121
|
+
/**
|
|
122
|
+
* Gets or sets the type of the report, which can be `'information'`, `'warning'`, or `'error'` for an `IDetailedReport`.
|
|
123
|
+
* @i2since 1.1
|
|
124
|
+
*/
|
|
125
|
+
type: 'information' | 'warning' | 'error';
|
|
126
|
+
/**
|
|
127
|
+
* Gets or sets a title for the report, which is typically used as the title of a notification dialog.
|
|
128
|
+
* @i2since 1.1
|
|
129
|
+
*/
|
|
130
|
+
title: string;
|
|
131
|
+
/**
|
|
132
|
+
* Gets or sets some additional information about the mutations.
|
|
133
|
+
* @i2since 1.1
|
|
134
|
+
*/
|
|
135
|
+
details: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A set of information that is common to requests to commit mutations of all types.
|
|
139
|
+
* @i2since 1.1
|
|
140
|
+
*/
|
|
141
|
+
export interface IMutationCommitBase {
|
|
142
|
+
/**
|
|
143
|
+
* Gets or sets the type of the request, which must be `"commit"` for commit requests.
|
|
144
|
+
* @i2since 1.1
|
|
145
|
+
*/
|
|
79
146
|
type: 'commit';
|
|
147
|
+
/**
|
|
148
|
+
* Gets or sets a optional report that describes the result of one or more mutations.
|
|
149
|
+
* @i2since 1.1
|
|
150
|
+
*/
|
|
80
151
|
report?: IMutationReport;
|
|
81
152
|
}
|
|
82
|
-
|
|
153
|
+
/**
|
|
154
|
+
* A set of information that accompanies a request to commit a set of untracked mutations.
|
|
155
|
+
* @i2since 1.1
|
|
156
|
+
*/
|
|
157
|
+
export interface IUntrackedMutationCommit extends IMutationCommitBase {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A set of information that accompanies a request to commit a set of tracked mutations.
|
|
161
|
+
* @i2since 1.1
|
|
162
|
+
*/
|
|
163
|
+
export interface ITrackedMutationCommit extends IMutationCommitBase {
|
|
83
164
|
/**
|
|
84
|
-
* Gets the name to use in the undo stack
|
|
165
|
+
* Gets or sets the name to use for the entry in the undo stack that represents the commit.
|
|
85
166
|
* @i2since 1.1
|
|
86
167
|
*/
|
|
87
168
|
actionDisplayName: string;
|
|
88
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* A set of information that accompanies a request to roll back a set of mutations.
|
|
172
|
+
* @i2since 1.1
|
|
173
|
+
*/
|
|
89
174
|
export interface IMutationRollback {
|
|
175
|
+
/**
|
|
176
|
+
* Gets or sets the type of the request, which must be `"rollback"` for rollback requests.
|
|
177
|
+
* @i2since 1.1
|
|
178
|
+
*/
|
|
90
179
|
type: 'rollback';
|
|
180
|
+
/**
|
|
181
|
+
* Gets or sets a optional report that describes the result of one or more mutations.
|
|
182
|
+
* @i2since 1.1
|
|
183
|
+
*/
|
|
91
184
|
report?: IMutationReport;
|
|
92
185
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
186
|
+
/**
|
|
187
|
+
* A response from a tracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
188
|
+
* @i2since 1.1
|
|
189
|
+
*/
|
|
97
190
|
export type ITrackedMutationInfo = ITrackedMutationCommit | IMutationRollback;
|
|
98
|
-
export type IMutationInfo = IMutationCommit | IMutationRollback;
|
|
99
|
-
export type UntrackedMutationListener = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IMutationInfo | Promise<IMutationInfo>;
|
|
100
|
-
export type TrackedMutationListener = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
|
|
101
191
|
/**
|
|
102
|
-
*
|
|
192
|
+
* A response from an untracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
193
|
+
* @i2since 1.1
|
|
194
|
+
*/
|
|
195
|
+
export type IUntrackedMutationInfo = IUntrackedMutationCommit | IMutationRollback;
|
|
196
|
+
/**
|
|
197
|
+
* A function that performs untracked mutations.
|
|
198
|
+
*
|
|
103
199
|
* @remarks
|
|
104
|
-
*
|
|
105
|
-
* use depending on your scenario:
|
|
200
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
106
201
|
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
202
|
+
* @param application - The contents of the application that the function can operate on.
|
|
203
|
+
* @param mutations - A collection of methods that can perform untracked mutations.
|
|
204
|
+
* @param cancelation - An object that detects when a user requests cancelation of the mutations.
|
|
205
|
+
* @i2since 1.1
|
|
206
|
+
*/
|
|
207
|
+
export type UntrackedMutationHandler = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IUntrackedMutationInfo | Promise<IUntrackedMutationInfo>;
|
|
208
|
+
/**
|
|
209
|
+
* A function that performs tracked mutations.
|
|
210
|
+
*
|
|
211
|
+
* @remarks
|
|
212
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
213
|
+
*
|
|
214
|
+
* @param application - The contents of the application that the function can operate on.
|
|
215
|
+
* @param mutations - A collection of methods that can perform tracked mutations.
|
|
216
|
+
* @param cancelation - An object that detects when a user requests cancelation of the mutations.
|
|
217
|
+
* @i2since 1.1
|
|
218
|
+
*/
|
|
219
|
+
export type TrackedMutationHandler = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
|
|
220
|
+
/**
|
|
221
|
+
* A collection of methods and properties for handling the situation when a user cancels an operation.
|
|
222
|
+
*
|
|
223
|
+
* @remarks
|
|
224
|
+
* The i2 Notebook SDK provides two cancelation APIs: An `AbortSignal`-based API and a `Promise`-based
|
|
225
|
+
* API, which you can use depending on your scenario:
|
|
226
|
+
*
|
|
227
|
+
* - To launch an asynchronous operation (for example, a `fetch` call) that can itself be canceled by
|
|
228
|
+
* an `AbortSignal`, you can pass `signal` directly to that operation.
|
|
110
229
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* if the user cancels the operation.
|
|
230
|
+
* - To launch an asynchronous operation that cannot itself be canceled but is to be abandoned if the
|
|
231
|
+
* user requests cancelation, call `waitForPromiseOrCancel()` with the `Promise` from your operation.
|
|
232
|
+
* The returned `Promise` resolves or rejects just as your operation's `Promise` does, and it rejects
|
|
233
|
+
* immediately with an `AbortError` if the user cancels the operation.
|
|
116
234
|
*
|
|
117
|
-
*
|
|
118
|
-
* property
|
|
235
|
+
* To check synchronously if the operation has been canceled, you can inspect the `signal.aborted`
|
|
236
|
+
* property.
|
|
119
237
|
*
|
|
120
238
|
* @i2since 1.1
|
|
121
239
|
*/
|
|
122
240
|
export interface ICancelation {
|
|
241
|
+
/**
|
|
242
|
+
* Launches an asynchronous operation through the specified promise.
|
|
243
|
+
*
|
|
244
|
+
* @typeParam T - The type of the output from the operation.
|
|
245
|
+
* @param promise - A promise that resolves to the output from the operation.
|
|
246
|
+
* @returns A promise that also resolves to the output from the operation.
|
|
247
|
+
* @i2since 1.1
|
|
248
|
+
*/
|
|
123
249
|
waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
|
|
124
250
|
/**
|
|
125
|
-
* Gets an `AbortSignal`
|
|
251
|
+
* Gets an `AbortSignal` that indicates whether a user has requested that an operation be canceled.
|
|
252
|
+
*
|
|
126
253
|
* @i2since 1.1
|
|
127
254
|
*/
|
|
128
255
|
signal: AbortSignal;
|
|
129
256
|
}
|
|
130
257
|
export type TODO = unknown;
|
|
131
258
|
/**
|
|
132
|
-
*
|
|
259
|
+
* A set of methods for changing a status display while an asynchronous mutation is running.
|
|
133
260
|
* @i2since 1.1
|
|
134
261
|
*/
|
|
135
|
-
export interface
|
|
262
|
+
export interface IStatus {
|
|
136
263
|
/**
|
|
137
|
-
* Sets the status
|
|
264
|
+
* Sets the status message in the blocking spinner display.
|
|
138
265
|
*
|
|
139
266
|
* @remarks
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* It will be prefixed by the name of your plug-in.
|
|
267
|
+
* Use this method to update users about the progress of a particularly long-running operation.
|
|
268
|
+
* In the user interface, the text you provide is prefixed by the name of your plug-in.
|
|
143
269
|
*
|
|
144
270
|
* @param text - The text to display.
|
|
145
|
-
*
|
|
146
271
|
* @i2since 1.1
|
|
147
272
|
*/
|
|
148
|
-
|
|
273
|
+
setMessage(text: string): void;
|
|
149
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* A common specifier for a record, for use in mutation APIs.
|
|
277
|
+
* @i2since 1.1
|
|
278
|
+
*/
|
|
150
279
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
151
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The identifier of a record group.
|
|
282
|
+
* @i2since 1.1
|
|
283
|
+
*/
|
|
284
|
+
export type AnalyzeRecordGroupId = string;
|
|
285
|
+
/**
|
|
286
|
+
* The effect on chart selection of adding a record group to the chart.
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
*
|
|
290
|
+
* `addRecordsToSelection` adds the records from the group to the current selection;
|
|
291
|
+
* `setSelectionToRecords` sets the selection to the records from the group;
|
|
292
|
+
* `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
|
|
293
|
+
* @i2since 1.1
|
|
294
|
+
*/
|
|
295
|
+
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
296
|
+
/**
|
|
297
|
+
* A common specifier for record properties used to pass record properties when adding or editing a record.
|
|
298
|
+
* @i2since 1.1
|
|
299
|
+
*/
|
|
300
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.IChartPropertyType | schema.ChartPropertyTypeId, data.PropertyValue]>;
|
|
301
|
+
/**
|
|
302
|
+
* A set of data that is common to creating records of all types.
|
|
303
|
+
* @i2since 1.1
|
|
304
|
+
*/
|
|
305
|
+
export interface IChartRecordBaseData {
|
|
306
|
+
/**
|
|
307
|
+
* Gets or sets the item type of the new record.
|
|
308
|
+
* @i2since 1.1
|
|
309
|
+
*/
|
|
152
310
|
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
311
|
+
/**
|
|
312
|
+
* Gets or sets the properties of the new record.
|
|
313
|
+
* @i2since 1.1
|
|
314
|
+
*/
|
|
315
|
+
properties?: RecordPropertiesSpecifier;
|
|
316
|
+
/**
|
|
317
|
+
* Gets or sets the security settings of the new record.
|
|
318
|
+
* @i2since 1.1
|
|
319
|
+
*/
|
|
320
|
+
security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
|
|
321
|
+
/**
|
|
322
|
+
* Gets or sets the notes for the new record.
|
|
323
|
+
* @i2since 1.1
|
|
324
|
+
*/
|
|
325
|
+
notes?: readonly records.INoteData[];
|
|
326
|
+
/**
|
|
327
|
+
* Gets or sets the source references of the new record.
|
|
328
|
+
* @i2since 1.1
|
|
329
|
+
*/
|
|
156
330
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
331
|
+
/**
|
|
332
|
+
* Gets or sets the source identifiers of the new record.
|
|
333
|
+
* @i2since 1.1
|
|
334
|
+
*/
|
|
157
335
|
sourceIdentifiers?: readonly records.ISourceIdentifier[];
|
|
158
336
|
}
|
|
159
|
-
|
|
337
|
+
/**
|
|
338
|
+
* A set of data for creating an entity record.
|
|
339
|
+
* @i2since 1.1
|
|
340
|
+
*/
|
|
341
|
+
export interface IChartEntityRecordData extends IChartRecordBaseData {
|
|
160
342
|
}
|
|
161
|
-
|
|
343
|
+
/**
|
|
344
|
+
* A set of data for creating a link record.
|
|
345
|
+
* @i2since 1.1
|
|
346
|
+
*/
|
|
347
|
+
export interface IChartLinkRecordData extends IChartRecordBaseData {
|
|
162
348
|
/**
|
|
163
349
|
* Gets the record at the 'from' end of the link.
|
|
164
350
|
* @i2since 1.1
|
|
@@ -178,263 +364,469 @@ export declare namespace app {
|
|
|
178
364
|
*/
|
|
179
365
|
readonly linkDirection: data.LinkDirection;
|
|
180
366
|
}
|
|
181
|
-
export interface INoteData {
|
|
182
|
-
content: string;
|
|
183
|
-
}
|
|
184
367
|
/**
|
|
185
|
-
*
|
|
368
|
+
* A set of methods for performing tracked or untracked mutations, organized by what they affect.
|
|
186
369
|
* @i2since 1.1
|
|
187
370
|
*/
|
|
188
371
|
export interface IMutationsBase {
|
|
189
372
|
/**
|
|
190
|
-
* Gets an object that provides
|
|
373
|
+
* Gets an object that provides methods for communicating progress information to users.
|
|
374
|
+
* @i2since 1.1
|
|
375
|
+
*/
|
|
376
|
+
readonly status: IStatus;
|
|
377
|
+
/**
|
|
378
|
+
* Gets an object that provides methods for modifying chart selection.
|
|
191
379
|
* @i2since 1.1
|
|
192
380
|
*/
|
|
193
|
-
readonly
|
|
381
|
+
readonly selection: ISelectionEditor;
|
|
194
382
|
/**
|
|
195
|
-
* Gets an object that provides
|
|
383
|
+
* Gets an object that provides methods for modifying the chart view.
|
|
196
384
|
* @i2since 1.1
|
|
197
385
|
*/
|
|
198
|
-
readonly
|
|
199
|
-
readonly view: IViewMutations;
|
|
386
|
+
readonly view: IViewEditor;
|
|
200
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* A set of methods for performing untracked mutations, which do not require an entry in the undo stack.
|
|
390
|
+
* @i2since 1.1
|
|
391
|
+
*/
|
|
201
392
|
export interface IUntrackedMutations extends IMutationsBase {
|
|
202
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* A set of methods for modifying the contents of a record.
|
|
396
|
+
* @i2since 1.1
|
|
397
|
+
*/
|
|
203
398
|
export interface IRecordEditor {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
399
|
+
/**
|
|
400
|
+
* Sets properties on the record.
|
|
401
|
+
*
|
|
402
|
+
* @param properties - The properties to set.
|
|
403
|
+
* @returns This record, with the new properties in place.
|
|
404
|
+
* @i2since 1.1
|
|
405
|
+
*/
|
|
406
|
+
setProperties(properties: RecordPropertiesSpecifier): this;
|
|
407
|
+
/**
|
|
408
|
+
* Adds a new note to the record.
|
|
409
|
+
*
|
|
410
|
+
* @param note - The data for the new note.
|
|
411
|
+
* @returns This record, with the new note in place.
|
|
412
|
+
* @i2since 1.1
|
|
413
|
+
*/
|
|
414
|
+
addNote(note: records.INoteData): this;
|
|
415
|
+
/**
|
|
416
|
+
* Replaces an existing note on the record with a new one.
|
|
417
|
+
*
|
|
418
|
+
* @param id - The identifier of the note to replace.
|
|
419
|
+
* @param note - The data for the new note.
|
|
420
|
+
* @returns This record, with the new note in place.
|
|
421
|
+
* @i2since 1.1
|
|
422
|
+
*/
|
|
423
|
+
replaceNote(id: records.NoteId, note: records.INoteData): this;
|
|
424
|
+
/**
|
|
425
|
+
* Removes a note from the record.
|
|
426
|
+
*
|
|
427
|
+
* @param id - The identifier of the note to remove.
|
|
428
|
+
* @returns This record, without the note.
|
|
429
|
+
* @i2since 1.1
|
|
430
|
+
*/
|
|
207
431
|
removeNote(id: records.NoteId): this;
|
|
432
|
+
/**
|
|
433
|
+
* Adds a new source reference to the record.
|
|
434
|
+
*
|
|
435
|
+
* @param ref - The data for the new source reference.
|
|
436
|
+
* @returns This record, with the new source reference in place.
|
|
437
|
+
* @i2since 1.1
|
|
438
|
+
*/
|
|
208
439
|
addSourceReference(ref: records.ISourceReferenceData): this;
|
|
440
|
+
/**
|
|
441
|
+
* Replaces an existing source reference on the record with a new one.
|
|
442
|
+
*
|
|
443
|
+
* @param id - The identifier of the source reference to replace.
|
|
444
|
+
* @param ref - The data for the new source reference.
|
|
445
|
+
* @returns This record, with the new source reference in place.
|
|
446
|
+
* @i2since 1.1
|
|
447
|
+
*/
|
|
209
448
|
replaceSourceReference(id: records.SourceReferenceId, ref: records.ISourceReferenceData): this;
|
|
449
|
+
/**
|
|
450
|
+
* Removes a source reference from the record.
|
|
451
|
+
*
|
|
452
|
+
* @param id - The identifier of the source reference to remove.
|
|
453
|
+
* @returns This record, without the source reference.
|
|
454
|
+
* @i2since 1.1
|
|
455
|
+
*/
|
|
210
456
|
removeSourceReference(id: records.SourceReferenceId): this;
|
|
457
|
+
/**
|
|
458
|
+
* Replaces the record's security settings with a new set.
|
|
459
|
+
* @param security - The new security settings.
|
|
460
|
+
* @returns This record, with the new security settings in place.
|
|
461
|
+
* @i2since 1.1
|
|
462
|
+
*/
|
|
211
463
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
212
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* A record that has been created in a transaction handler, but has not yet been added to a chart.
|
|
467
|
+
* @i2since 1.1
|
|
468
|
+
*/
|
|
213
469
|
export interface IPendingRecord extends IRecordEditor {
|
|
470
|
+
/**
|
|
471
|
+
* Gets or sets the identifier of the record.
|
|
472
|
+
* @i2since 1.1
|
|
473
|
+
*/
|
|
214
474
|
recordId: records.AnalyzeRecordId;
|
|
215
475
|
}
|
|
216
|
-
|
|
217
|
-
|
|
476
|
+
/**
|
|
477
|
+
* A set of utility functions for creating property and other values that can be reused across records.
|
|
478
|
+
* @i2since 1.1
|
|
479
|
+
*/
|
|
480
|
+
export interface IValueFactory {
|
|
218
481
|
/**
|
|
219
|
-
* Creates a
|
|
482
|
+
* Creates a security setting that you can use to configure record security.
|
|
483
|
+
*
|
|
484
|
+
* @remarks
|
|
485
|
+
* You can use the same security setting to configure the security of several records.
|
|
486
|
+
*
|
|
487
|
+
* @param data - The data for the new security setting.
|
|
488
|
+
* @returns The new security setting.
|
|
489
|
+
* @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
|
|
220
490
|
* @i2since 1.1
|
|
221
|
-
* @param data - The values to populate the new {@link records.ISecuritySetting} with.
|
|
222
|
-
* @returns A new {@link records.ISecuritySetting} object.
|
|
223
|
-
* @throws `Error` if the dimension or values did not exist in the security schema.
|
|
224
491
|
*/
|
|
225
|
-
createSecuritySetting(data: ISecuritySettingData): records.ISecuritySetting;
|
|
492
|
+
createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
|
|
226
493
|
/**
|
|
227
|
-
* Creates a
|
|
494
|
+
* Creates a decimal value from a number or a string.
|
|
228
495
|
*
|
|
229
|
-
* @param value - The number or
|
|
230
|
-
* @returns
|
|
231
|
-
* @throws `Error` if the value was `NaN`, too large to
|
|
496
|
+
* @param value - The number or string to initialize the decimal value from.
|
|
497
|
+
* @returns The new decimal value.
|
|
498
|
+
* @throws `Error` if the value was `NaN`, or too large to be a decimal, or an invalid string.
|
|
232
499
|
* @i2since 1.1
|
|
233
500
|
*/
|
|
234
501
|
createDecimal(value: number | string): data.IDecimal;
|
|
235
502
|
/**
|
|
236
|
-
* Creates a local date object (
|
|
237
|
-
*
|
|
238
|
-
* @param
|
|
239
|
-
* @param
|
|
240
|
-
* @
|
|
503
|
+
* Creates a local date object (that does not have a time or a time zone) from year/month/day information.
|
|
504
|
+
*
|
|
505
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
506
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
507
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
508
|
+
* @returns The new local date object.
|
|
241
509
|
* @i2since 1.1
|
|
242
510
|
*/
|
|
243
511
|
createLocalDate(year: number, month: number, day: number): data.ILocalDate;
|
|
244
512
|
/**
|
|
245
|
-
* Creates a local date object (
|
|
246
|
-
*
|
|
247
|
-
* @
|
|
513
|
+
* Creates a local date object (that does not have a time or a time zone) from a JavaScript `Date` object.
|
|
514
|
+
*
|
|
515
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date values are used.
|
|
516
|
+
* @returns The new local date object.
|
|
248
517
|
* @i2since 1.1
|
|
249
518
|
*/
|
|
250
519
|
createLocalDate(jsDate: Date): data.ILocalDate;
|
|
251
520
|
/**
|
|
252
|
-
* Creates a local date object (
|
|
253
|
-
*
|
|
254
|
-
* @
|
|
255
|
-
* @
|
|
521
|
+
* Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
|
|
522
|
+
*
|
|
523
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date.
|
|
524
|
+
* @returns The new local date object.
|
|
525
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
256
526
|
* @i2since 1.1
|
|
257
527
|
*/
|
|
258
528
|
createLocalDate(iso8601: string): data.ILocalDate;
|
|
259
529
|
/**
|
|
260
|
-
* Creates a local time object (
|
|
261
|
-
*
|
|
262
|
-
* @param
|
|
263
|
-
* @param
|
|
264
|
-
* @param
|
|
265
|
-
* @
|
|
530
|
+
* Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
|
|
531
|
+
*
|
|
532
|
+
* @param hour - The hour of the day (0-23).
|
|
533
|
+
* @param minute - The minutes of the hour (0-59).
|
|
534
|
+
* @param second - The seconds of the minute (0-59).
|
|
535
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
536
|
+
* @returns The new local time object.
|
|
266
537
|
* @i2since 1.1
|
|
267
538
|
*/
|
|
268
539
|
createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
|
|
269
540
|
/**
|
|
270
|
-
* Creates a local time object (
|
|
271
|
-
*
|
|
272
|
-
* @
|
|
541
|
+
* Creates a local time object (that does not have a date or a time zone) from a JavaScript `Date` object.
|
|
542
|
+
*
|
|
543
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) time values are used.
|
|
544
|
+
* @returns The new local time object.
|
|
273
545
|
* @i2since 1.1
|
|
274
546
|
*/
|
|
275
547
|
createLocalTime(jsDate: Date): data.ILocalTime;
|
|
276
548
|
/**
|
|
277
|
-
* Creates a local time object (
|
|
278
|
-
*
|
|
279
|
-
* @
|
|
280
|
-
* @
|
|
549
|
+
* Creates a local time object (that does not have a date or a time zone) from an ISO 8601 string ('hh:mm:ss' or 'hh:mm:ss.sss').
|
|
550
|
+
*
|
|
551
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the time.
|
|
552
|
+
* @returns The new local time object.
|
|
553
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
281
554
|
* @i2since 1.1
|
|
282
555
|
*/
|
|
283
556
|
createLocalTime(iso8601: string): data.ILocalTime;
|
|
284
557
|
/**
|
|
285
|
-
* Creates a local date-time object (
|
|
286
|
-
*
|
|
287
|
-
* @param
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
291
|
-
* @param
|
|
292
|
-
* @param
|
|
293
|
-
* @
|
|
558
|
+
* Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
|
|
559
|
+
*
|
|
560
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
561
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
562
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
563
|
+
* @param hour - The hour of the day (0-23).
|
|
564
|
+
* @param minute - The minutes of the hour (0-59).
|
|
565
|
+
* @param second - The seconds of the minute (0-59).
|
|
566
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
567
|
+
* @returns The new local date-time object.
|
|
294
568
|
* @i2since 1.1
|
|
295
569
|
*/
|
|
296
|
-
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.
|
|
570
|
+
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
|
|
297
571
|
/**
|
|
298
|
-
* Creates a local date-time object (
|
|
299
|
-
*
|
|
300
|
-
* @
|
|
572
|
+
* Creates a local date-time object (that does not have a time zone) from a JavaScript `Date` object.
|
|
573
|
+
*
|
|
574
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date and time values are used.
|
|
575
|
+
* @returns The new local date-time object.
|
|
301
576
|
* @i2since 1.1
|
|
302
577
|
*/
|
|
303
578
|
createLocalDateTime(jsDate: Date): data.ILocalDateTime;
|
|
304
579
|
/**
|
|
305
|
-
* Creates a local date-time object (
|
|
580
|
+
* Creates a local date-time object (that does not have a time zone) from a local date and a local time object.
|
|
581
|
+
*
|
|
306
582
|
* @param date - A local date.
|
|
307
583
|
* @param time - A local time.
|
|
308
|
-
* @returns
|
|
584
|
+
* @returns The new local date-time object.
|
|
309
585
|
* @i2since 1.1
|
|
310
586
|
*/
|
|
311
587
|
createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
|
|
312
588
|
/**
|
|
313
|
-
* Creates a local date-time object (
|
|
314
|
-
*
|
|
315
|
-
* @
|
|
316
|
-
* @
|
|
589
|
+
* Creates a local date-time object (that does not have a time zone) from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss').
|
|
590
|
+
*
|
|
591
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
592
|
+
* @returns The new local date-time object.
|
|
593
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
317
594
|
* @i2since 1.1
|
|
318
595
|
*/
|
|
319
596
|
createLocalDateTime(iso8601: string): data.ILocalDateTime;
|
|
320
597
|
/**
|
|
321
|
-
* Creates a
|
|
598
|
+
* Creates a date-time object that has a time zone from a local date, a local time, and a time zone.
|
|
599
|
+
*
|
|
322
600
|
* @param date - A local date.
|
|
323
601
|
* @param time - A local time.
|
|
324
|
-
* @param timeZone - A time zone or time zone
|
|
325
|
-
* @param isDst -
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* @
|
|
602
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
603
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
604
|
+
*
|
|
605
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
606
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
607
|
+
* @returns The new date-time object.
|
|
608
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
330
609
|
* @i2since 1.1
|
|
331
610
|
*/
|
|
332
611
|
createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
333
612
|
/**
|
|
334
|
-
* Creates a
|
|
335
|
-
*
|
|
336
|
-
* @param
|
|
337
|
-
* @param
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
613
|
+
* Creates a date-time object that has a time zone from a local date-time (or a JavaScript `Date` object) and a time zone.
|
|
614
|
+
*
|
|
615
|
+
* @param dateTime - A local date-time, or a JavaScript `Date`.
|
|
616
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
617
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
618
|
+
*
|
|
619
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
620
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
621
|
+
* @returns The new date-time object.
|
|
622
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
342
623
|
* @i2since 1.1
|
|
343
624
|
*/
|
|
344
625
|
createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
345
626
|
/**
|
|
346
|
-
* Creates a
|
|
347
|
-
*
|
|
348
|
-
* @param
|
|
349
|
-
* @param
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
* @
|
|
627
|
+
* Creates a date-time object that has a time zone from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss') and a time zone.
|
|
628
|
+
*
|
|
629
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
630
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
631
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
632
|
+
*
|
|
633
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
634
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
635
|
+
* @returns The new date-time object.
|
|
636
|
+
* @throws `Error` if the string was not in valid ISO 8601 format, or `timeZone` did not specify a valid time zone.
|
|
355
637
|
* @i2since 1.1
|
|
356
638
|
*/
|
|
357
|
-
createZonedDateTime(
|
|
639
|
+
createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
358
640
|
/**
|
|
359
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
641
|
+
* Creates a {@link data.IGeoPoint} object from a pair of latitude and longitude values.
|
|
642
|
+
*
|
|
643
|
+
* @param latitude - The latitude of the geospatial position, in the range from -90 to +90 degrees.
|
|
644
|
+
* @param longitude - The longitude of the geospatial position, in the range from -180 to 180 degrees.
|
|
645
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
646
|
+
* @throws `Error` if either the latitude or the longitude was out of range.
|
|
360
647
|
* @i2since 1.1
|
|
361
|
-
* @param latitude - The latitude [-90 to +90] of the point.
|
|
362
|
-
* @param longitude - The longitude [-180 to +180] of the point.
|
|
363
|
-
* @returns A {@link data.IGeoPoint}.
|
|
364
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
365
648
|
*/
|
|
366
649
|
createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
|
|
367
650
|
/**
|
|
368
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
651
|
+
* Creates a {@link data.IGeoPoint} object from a {@link data.IGeoPointData} object.
|
|
652
|
+
*
|
|
653
|
+
* @param data - A set of data that specifies the geospatial position.
|
|
654
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
655
|
+
* @throws `Error` if the specified data was out of range or otherwise not valid.
|
|
369
656
|
* @i2since 1.1
|
|
370
|
-
* @param data - An object containing the latitude [-90 to +90] and longitude [-180 to +180] of the point.
|
|
371
|
-
* @returns A {@link data.IGeoPoint}.
|
|
372
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
373
657
|
*/
|
|
374
|
-
createGeoPoint(data: IGeoPointData): data.IGeoPoint;
|
|
658
|
+
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
375
659
|
}
|
|
376
|
-
|
|
660
|
+
/**
|
|
661
|
+
* A set of methods for performing tracked mutations, which require an entry in the undo stack.
|
|
662
|
+
* @i2since 1.1
|
|
663
|
+
*/
|
|
664
|
+
export interface ITrackedMutations extends IMutationsBase {
|
|
665
|
+
/**
|
|
666
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
667
|
+
* @i2since 1.1
|
|
668
|
+
*/
|
|
669
|
+
readonly valueFactory: IValueFactory;
|
|
670
|
+
/**
|
|
671
|
+
* Creates an entity record that will be added to the chart when the mutation is committed.
|
|
672
|
+
*
|
|
673
|
+
* @param recordTemplate - The data from which to create the record.
|
|
674
|
+
* @param hints - A TODO.
|
|
675
|
+
* @returns The new, "pending" record.
|
|
676
|
+
* @i2since 1.1
|
|
677
|
+
*/
|
|
377
678
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
679
|
+
/**
|
|
680
|
+
* Creates a link record that will be added to the chart when the mutation is committed.
|
|
681
|
+
*
|
|
682
|
+
* @param recordTemplate - The data from which to create the record.
|
|
683
|
+
* @param hints - A TODO.
|
|
684
|
+
* @returns The new, "pending" record.
|
|
685
|
+
* @i2since 1.1
|
|
686
|
+
*/
|
|
378
687
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
688
|
+
/**
|
|
689
|
+
* Adds the records from a record group to the chart.
|
|
690
|
+
*
|
|
691
|
+
* @param recordGroupId - The identifier of the record group to add.
|
|
692
|
+
* @param selectionOption - The effect on chart selection of adding the record group.
|
|
693
|
+
* @i2since 1.1
|
|
694
|
+
*/
|
|
695
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
|
|
696
|
+
/**
|
|
697
|
+
* Gets an object with methods for editing a record.
|
|
698
|
+
*
|
|
699
|
+
* @param record - The record to be edited.
|
|
700
|
+
* @returns The record-editing object.
|
|
701
|
+
* @i2since 1.1
|
|
702
|
+
*/
|
|
379
703
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
704
|
+
/**
|
|
705
|
+
* Removes a record from the chart.
|
|
706
|
+
*
|
|
707
|
+
* @param record - The record to be removed.
|
|
708
|
+
* @i2since 1.1
|
|
709
|
+
*/
|
|
380
710
|
removeRecord(record: RecordSpecifier): void;
|
|
381
|
-
|
|
382
|
-
|
|
711
|
+
/**
|
|
712
|
+
* Moves a node to a particular location on the chart.
|
|
713
|
+
*
|
|
714
|
+
* @param node - The node to be moved.
|
|
715
|
+
* @param position - The location to move the node to.
|
|
716
|
+
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
717
|
+
* @i2since 1.1
|
|
718
|
+
*/
|
|
719
|
+
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
720
|
+
/**
|
|
721
|
+
* Moves all the nodes that contain selected records by the same displacement.
|
|
722
|
+
*
|
|
723
|
+
* @param centerDelta - The displacement on the x and y axes, in chart coordinates.
|
|
724
|
+
* @i2since 1.1
|
|
725
|
+
*/
|
|
726
|
+
moveSelectedNodesRelative(centerDelta: {
|
|
383
727
|
xDelta: number;
|
|
384
728
|
yDelta: number;
|
|
385
729
|
}): void;
|
|
730
|
+
/**
|
|
731
|
+
* Removes the selected records from the chart.
|
|
732
|
+
* @i2since 1.1
|
|
733
|
+
*/
|
|
734
|
+
removeSelectedRecords(): void;
|
|
386
735
|
}
|
|
387
|
-
|
|
736
|
+
/**
|
|
737
|
+
* A collection of elements and records that together represent a selection on the chart surface.
|
|
738
|
+
* @i2since 1.1
|
|
739
|
+
*/
|
|
740
|
+
export interface IElementsAndRecords {
|
|
388
741
|
/**
|
|
389
|
-
* Gets
|
|
742
|
+
* Gets or sets the records in the set.
|
|
390
743
|
* @i2since 1.1
|
|
391
744
|
*/
|
|
392
|
-
|
|
745
|
+
records?: Iterable<RecordSpecifier>;
|
|
393
746
|
/**
|
|
394
|
-
* Gets
|
|
747
|
+
* Gets or sets the elements in the set.
|
|
395
748
|
* @i2since 1.1
|
|
396
749
|
*/
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
export interface ISecuritySettingData {
|
|
400
|
-
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
401
|
-
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
750
|
+
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
402
751
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
752
|
+
/**
|
|
753
|
+
* A set of methods that change the chart view.
|
|
754
|
+
* @i2since 1.1
|
|
755
|
+
*/
|
|
756
|
+
export interface IViewEditor {
|
|
757
|
+
/**
|
|
758
|
+
* Sets the location on the chart that appears in the center of the viewport, and the zoom level.
|
|
759
|
+
*
|
|
760
|
+
* @param viewport - The new position and zoom level of the chart in the viewport.
|
|
761
|
+
* @i2since 1.1
|
|
762
|
+
*/
|
|
763
|
+
setViewport(viewport: chart.IViewportData): void;
|
|
764
|
+
/**
|
|
765
|
+
* Adjusts the position and zoom of the chart so that all elements on it are visible.
|
|
766
|
+
*
|
|
767
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
768
|
+
* @i2since 1.1
|
|
769
|
+
*/
|
|
770
|
+
fitToChart(options?: chart.IFitConstraints): void;
|
|
771
|
+
/**
|
|
772
|
+
* Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
|
|
773
|
+
*
|
|
774
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
775
|
+
* @i2since 1.1
|
|
776
|
+
*/
|
|
777
|
+
fitToHeight(options?: chart.IFitConstraints): void;
|
|
778
|
+
/**
|
|
779
|
+
* Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
|
|
780
|
+
*
|
|
781
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
782
|
+
* @i2since 1.1
|
|
783
|
+
*/
|
|
784
|
+
fitToSelection(options?: chart.IFitConstraints): void;
|
|
785
|
+
/**
|
|
786
|
+
* Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
|
|
787
|
+
*
|
|
788
|
+
* @param items - The elements to make visible, and the records whose containing elements are to be visible.
|
|
789
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
790
|
+
* @i2since 1.1
|
|
791
|
+
*/
|
|
792
|
+
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
|
|
411
793
|
}
|
|
412
|
-
|
|
794
|
+
/**
|
|
795
|
+
* A set of methods that can change the chart selection.
|
|
796
|
+
* @i2since 1.1
|
|
797
|
+
*/
|
|
798
|
+
export interface ISelectionEditor {
|
|
413
799
|
/**
|
|
414
|
-
* Selects all records on the chart.
|
|
800
|
+
* Selects all the records on the chart.
|
|
415
801
|
* @i2since 1.1
|
|
416
802
|
*/
|
|
417
803
|
selectAll(): void;
|
|
418
804
|
/**
|
|
419
|
-
* Clears the chart selection.
|
|
805
|
+
* Clears the chart selection, so that no records are selected.
|
|
420
806
|
* @i2since 1.1
|
|
421
807
|
*/
|
|
422
808
|
clear(): void;
|
|
423
809
|
/**
|
|
424
|
-
* Replaces the chart selection with one
|
|
425
|
-
*
|
|
810
|
+
* Replaces the chart selection with one that contains the specified records.
|
|
811
|
+
*
|
|
812
|
+
* @param records - The records to use in the new selection.
|
|
813
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
426
814
|
* @i2since 1.1
|
|
427
815
|
*/
|
|
428
816
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
429
817
|
/**
|
|
430
|
-
* Adds
|
|
431
|
-
*
|
|
818
|
+
* Adds the specified records to the chart selection.
|
|
819
|
+
*
|
|
820
|
+
* @param records - The records to add to the selection.
|
|
821
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
432
822
|
* @i2since 1.1
|
|
433
823
|
*/
|
|
434
824
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
435
825
|
/**
|
|
436
|
-
* Removes
|
|
437
|
-
*
|
|
826
|
+
* Removes the specified records from the chart selection.
|
|
827
|
+
*
|
|
828
|
+
* @param records - The records to remove from the selection.
|
|
829
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
438
830
|
* @i2since 1.1
|
|
439
831
|
*/
|
|
440
832
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -484,7 +876,7 @@ export declare namespace app {
|
|
|
484
876
|
removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
|
|
485
877
|
}
|
|
486
878
|
/**
|
|
487
|
-
* A callback function that performs work on the application or its contents.
|
|
879
|
+
* A callback function that performs read-only work on the application or its contents.
|
|
488
880
|
*
|
|
489
881
|
* @remarks
|
|
490
882
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
@@ -865,6 +1257,24 @@ export declare namespace chart {
|
|
|
865
1257
|
*/
|
|
866
1258
|
readonly zoomScale: number;
|
|
867
1259
|
}
|
|
1260
|
+
/**
|
|
1261
|
+
* A set of data that defines a viewport.
|
|
1262
|
+
* @i2since 1.1
|
|
1263
|
+
*/
|
|
1264
|
+
export interface IViewportData {
|
|
1265
|
+
/**
|
|
1266
|
+
* Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
|
|
1267
|
+
* See also {@link chart.IChartView#zoomScale}.
|
|
1268
|
+
* @i2since 1.1
|
|
1269
|
+
*/
|
|
1270
|
+
zoomScale?: number;
|
|
1271
|
+
/**
|
|
1272
|
+
* Gets or sets the position of the center of the viewport, in chart coordinates.
|
|
1273
|
+
* See also {@link chart.IChartView#center}.
|
|
1274
|
+
* @i2since 1.1
|
|
1275
|
+
*/
|
|
1276
|
+
center?: visual.IPosition;
|
|
1277
|
+
}
|
|
868
1278
|
/**
|
|
869
1279
|
* A mapping of chart event types to their listener types.
|
|
870
1280
|
* @i2since 1.0
|
|
@@ -931,6 +1341,30 @@ export declare namespace chart {
|
|
|
931
1341
|
* @i2since 1.0
|
|
932
1342
|
*/
|
|
933
1343
|
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1344
|
+
/**
|
|
1345
|
+
* Constraints that control a view-fitting operation.
|
|
1346
|
+
*
|
|
1347
|
+
* @remarks
|
|
1348
|
+
* Fitting the view to a collection of elements ordinarily zooms in or out to make those
|
|
1349
|
+
* elements fill the viewport. However, you might want to limit this behavior to prevent
|
|
1350
|
+
* zooming in beyond a particular level.
|
|
1351
|
+
*
|
|
1352
|
+
* For example, if you fit the view to a single element, you might not want to zoom so that
|
|
1353
|
+
* the element fills the viewport. If you want to focus attention on a single element without
|
|
1354
|
+
* making it too large, you can set `maximumZoom` to `1`.
|
|
1355
|
+
*
|
|
1356
|
+
* Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
|
|
1357
|
+
* you can set `maximumZoom` to `current`.
|
|
1358
|
+
*
|
|
1359
|
+
* @i2since 1.1
|
|
1360
|
+
*/
|
|
1361
|
+
export interface IFitConstraints {
|
|
1362
|
+
/**
|
|
1363
|
+
* Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
|
|
1364
|
+
* @i2since 1.1
|
|
1365
|
+
*/
|
|
1366
|
+
maximumZoom?: number | 'current';
|
|
1367
|
+
}
|
|
934
1368
|
}
|
|
935
1369
|
|
|
936
1370
|
/**
|
|
@@ -946,9 +1380,9 @@ export declare namespace commands {
|
|
|
946
1380
|
*
|
|
947
1381
|
* @remarks
|
|
948
1382
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
949
|
-
* @i2since 1.
|
|
1383
|
+
* @i2since 1.1
|
|
950
1384
|
*/
|
|
951
|
-
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search';
|
|
1385
|
+
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
952
1386
|
/**
|
|
953
1387
|
* A type for a command, which determines the payload it receives when a user invokes it.
|
|
954
1388
|
* @i2since 1.0
|
|
@@ -1197,11 +1631,11 @@ export declare namespace commands {
|
|
|
1197
1631
|
*/
|
|
1198
1632
|
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1199
1633
|
/**
|
|
1200
|
-
* Locates the area of the user interface that appears immediately before
|
|
1634
|
+
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1201
1635
|
*
|
|
1202
|
-
* @param command - The
|
|
1636
|
+
* @param command - The surfaced command to use as a reference.
|
|
1203
1637
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1204
|
-
* @throws `Error` if
|
|
1638
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1205
1639
|
* @i2since 1.1
|
|
1206
1640
|
*/
|
|
1207
1641
|
before(command: ICommand): IActionArea<undefined>;
|
|
@@ -1215,11 +1649,11 @@ export declare namespace commands {
|
|
|
1215
1649
|
*/
|
|
1216
1650
|
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1217
1651
|
/**
|
|
1218
|
-
* Locates the area of the user interface that appears immediately after
|
|
1652
|
+
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1219
1653
|
*
|
|
1220
|
-
* @param command - The
|
|
1654
|
+
* @param command - The surfaced command to use as a reference.
|
|
1221
1655
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1222
|
-
* @throws `Error` if
|
|
1656
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1223
1657
|
* @i2since 1.1
|
|
1224
1658
|
*/
|
|
1225
1659
|
after(command: ICommand): IActionArea<undefined>;
|
|
@@ -1560,12 +1994,22 @@ export declare namespace commands {
|
|
|
1560
1994
|
* @i2since 1.0
|
|
1561
1995
|
*/
|
|
1562
1996
|
readonly deleteSelected: CommandId;
|
|
1997
|
+
/**
|
|
1998
|
+
* Gets the identifier of the system command that saves the current chart.
|
|
1999
|
+
* @i2since 1.1
|
|
2000
|
+
*/
|
|
2001
|
+
readonly saveChart: CommandId;
|
|
1563
2002
|
}
|
|
1564
2003
|
/**
|
|
1565
2004
|
* A lookup table for the group identifiers of the default system action groups.
|
|
1566
2005
|
* @i2since 1.0
|
|
1567
2006
|
*/
|
|
1568
2007
|
export interface IHomeTabSystemGroups {
|
|
2008
|
+
/**
|
|
2009
|
+
* Gets the identifier of the system action group named "Manage".
|
|
2010
|
+
* @i2since 1.1
|
|
2011
|
+
*/
|
|
2012
|
+
readonly chartManagement: GroupId;
|
|
1569
2013
|
/**
|
|
1570
2014
|
* Gets the identifier of the system action group named "History".
|
|
1571
2015
|
* @i2since 1.0
|
|
@@ -1829,6 +2273,22 @@ export declare namespace data {
|
|
|
1829
2273
|
*/
|
|
1830
2274
|
readonly longitude: number;
|
|
1831
2275
|
}
|
|
2276
|
+
/**
|
|
2277
|
+
* A set of data for creating a geospatial position.
|
|
2278
|
+
* @i2since 1.1
|
|
2279
|
+
*/
|
|
2280
|
+
export interface IGeoPointData {
|
|
2281
|
+
/**
|
|
2282
|
+
* Gets the latitude of the new position, in degrees north.
|
|
2283
|
+
* @i2since 1.1
|
|
2284
|
+
*/
|
|
2285
|
+
readonly latitude: number;
|
|
2286
|
+
/**
|
|
2287
|
+
* Gets the longitude of the new position, in degrees east.
|
|
2288
|
+
* @i2since 1.1
|
|
2289
|
+
*/
|
|
2290
|
+
readonly longitude: number;
|
|
2291
|
+
}
|
|
1832
2292
|
/**
|
|
1833
2293
|
* A logical type for the value of a record property.
|
|
1834
2294
|
*
|
|
@@ -2556,6 +3016,11 @@ export declare namespace records {
|
|
|
2556
3016
|
* @i2since 1.0
|
|
2557
3017
|
*/
|
|
2558
3018
|
readonly itemType: schema.IChartEntityType;
|
|
3019
|
+
/**
|
|
3020
|
+
* Gets all the link records that are connected to the entity record.
|
|
3021
|
+
* @i2since 1.1
|
|
3022
|
+
*/
|
|
3023
|
+
readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
|
|
2559
3024
|
}
|
|
2560
3025
|
/**
|
|
2561
3026
|
* A link record.
|
|
@@ -2592,10 +3057,14 @@ export declare namespace records {
|
|
|
2592
3057
|
*/
|
|
2593
3058
|
export type NoteId = string;
|
|
2594
3059
|
/**
|
|
2595
|
-
*
|
|
3060
|
+
* A set of data for creating a note.
|
|
2596
3061
|
* @i2since 1.1
|
|
2597
3062
|
*/
|
|
2598
3063
|
export interface INoteData {
|
|
3064
|
+
/**
|
|
3065
|
+
* Gets the contents of the new note.
|
|
3066
|
+
* @i2since 1.1
|
|
3067
|
+
*/
|
|
2599
3068
|
readonly contents: string;
|
|
2600
3069
|
}
|
|
2601
3070
|
/**
|
|
@@ -2692,29 +3161,33 @@ export declare namespace records {
|
|
|
2692
3161
|
*/
|
|
2693
3162
|
readonly imageUrl?: string;
|
|
2694
3163
|
}
|
|
3164
|
+
/**
|
|
3165
|
+
* A set of data for creating a source reference.
|
|
3166
|
+
* @i2since 1.1
|
|
3167
|
+
*/
|
|
2695
3168
|
export interface ISourceReferenceData {
|
|
2696
3169
|
/**
|
|
2697
|
-
* Gets the name of the source that the source reference describes.
|
|
3170
|
+
* Gets the name of the source that the new source reference describes.
|
|
2698
3171
|
* @i2since 1.1
|
|
2699
3172
|
*/
|
|
2700
3173
|
readonly name: string;
|
|
2701
3174
|
/**
|
|
2702
|
-
* Gets the type of the source that the source reference describes.
|
|
3175
|
+
* Gets the type of the source that the new source reference describes.
|
|
2703
3176
|
* @i2since 1.1
|
|
2704
3177
|
*/
|
|
2705
3178
|
readonly type?: string;
|
|
2706
3179
|
/**
|
|
2707
|
-
* Gets the location of the source that the source reference describes.
|
|
3180
|
+
* Gets the location of the source that the new source reference describes.
|
|
2708
3181
|
* @i2since 1.1
|
|
2709
3182
|
*/
|
|
2710
3183
|
readonly location?: string;
|
|
2711
3184
|
/**
|
|
2712
|
-
* Gets the description of the source that the source reference describes.
|
|
3185
|
+
* Gets the description of the source that the new source reference describes.
|
|
2713
3186
|
* @i2since 1.1
|
|
2714
3187
|
*/
|
|
2715
3188
|
readonly description?: string;
|
|
2716
3189
|
/**
|
|
2717
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
3190
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
2718
3191
|
* @i2since 1.1
|
|
2719
3192
|
*/
|
|
2720
3193
|
readonly imageUrl?: string;
|
|
@@ -2735,6 +3208,22 @@ export declare namespace records {
|
|
|
2735
3208
|
*/
|
|
2736
3209
|
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
2737
3210
|
}
|
|
3211
|
+
/**
|
|
3212
|
+
* A set of data for creating a security setting.
|
|
3213
|
+
* @i2since 1.1
|
|
3214
|
+
*/
|
|
3215
|
+
export interface ISecuritySettingData {
|
|
3216
|
+
/**
|
|
3217
|
+
* Gets or sets the security dimension for the new security setting.
|
|
3218
|
+
* @i2since 1.1
|
|
3219
|
+
*/
|
|
3220
|
+
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
3221
|
+
/**
|
|
3222
|
+
* Gets or sets the dimension values for the new security setting.
|
|
3223
|
+
* @i2since 1.1
|
|
3224
|
+
*/
|
|
3225
|
+
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
3226
|
+
}
|
|
2738
3227
|
/**
|
|
2739
3228
|
* A source identifier for a record.
|
|
2740
3229
|
*
|
|
@@ -2744,7 +3233,7 @@ export declare namespace records {
|
|
|
2744
3233
|
*/
|
|
2745
3234
|
export interface ISourceIdentifier {
|
|
2746
3235
|
/**
|
|
2747
|
-
* Gets the type of
|
|
3236
|
+
* Gets the type of the source identifier.
|
|
2748
3237
|
* @i2since 1.0
|
|
2749
3238
|
*/
|
|
2750
3239
|
readonly type: string;
|
|
@@ -2754,15 +3243,19 @@ export declare namespace records {
|
|
|
2754
3243
|
*/
|
|
2755
3244
|
readonly key: string[];
|
|
2756
3245
|
}
|
|
3246
|
+
/**
|
|
3247
|
+
* A set of data for creating a source identifier.
|
|
3248
|
+
* @i2since 1.1
|
|
3249
|
+
*/
|
|
2757
3250
|
export interface ISourceIdentifierData {
|
|
2758
3251
|
/**
|
|
2759
|
-
* Gets the type of
|
|
2760
|
-
* @i2since 1.
|
|
3252
|
+
* Gets the type of the new source identifier.
|
|
3253
|
+
* @i2since 1.1
|
|
2761
3254
|
*/
|
|
2762
3255
|
readonly type: string;
|
|
2763
3256
|
/**
|
|
2764
|
-
* Gets the values that make up the source identifier key.
|
|
2765
|
-
* @i2since 1.
|
|
3257
|
+
* Gets the values that make up the new source identifier key.
|
|
3258
|
+
* @i2since 1.1
|
|
2766
3259
|
*/
|
|
2767
3260
|
readonly key: string[];
|
|
2768
3261
|
}
|
|
@@ -2831,6 +3324,21 @@ export declare namespace schema {
|
|
|
2831
3324
|
* @i2since 1.0
|
|
2832
3325
|
*/
|
|
2833
3326
|
readonly maximumSourceIdentifiers: number;
|
|
3327
|
+
/**
|
|
3328
|
+
* Gets the maximum string length of a source identifier key.
|
|
3329
|
+
* @i2since 1.1
|
|
3330
|
+
*/
|
|
3331
|
+
readonly maxKeyStringLength: data.ICharLimit;
|
|
3332
|
+
/**
|
|
3333
|
+
* Gets the maximum string length of a source identifier type.
|
|
3334
|
+
* @i2since 1.1
|
|
3335
|
+
*/
|
|
3336
|
+
readonly maxTypeStringLength: data.ICharLimit;
|
|
3337
|
+
/**
|
|
3338
|
+
* Gets a collection of reserved source identifier types.
|
|
3339
|
+
* @i2since 1.1
|
|
3340
|
+
*/
|
|
3341
|
+
readonly reservedTypes: data.IReadOnlyCollection<string>;
|
|
2834
3342
|
}
|
|
2835
3343
|
/**
|
|
2836
3344
|
* A security schema, which defines the available security dimensions and their dimension values.
|
|
@@ -2843,7 +3351,7 @@ export declare namespace schema {
|
|
|
2843
3351
|
*/
|
|
2844
3352
|
readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
|
|
2845
3353
|
/**
|
|
2846
|
-
* Gets the
|
|
3354
|
+
* Gets the security dimension values to apply to new records by default.
|
|
2847
3355
|
* @i2since 1.1
|
|
2848
3356
|
*/
|
|
2849
3357
|
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
|
|
@@ -3007,6 +3515,11 @@ export declare namespace schema {
|
|
|
3007
3515
|
* @i2since 1.0
|
|
3008
3516
|
*/
|
|
3009
3517
|
readonly isOrphaned: boolean;
|
|
3518
|
+
/**
|
|
3519
|
+
* Indicates whether the item type exists in the Information Store.
|
|
3520
|
+
* @i2since 1.1
|
|
3521
|
+
*/
|
|
3522
|
+
readonly isInfoStore: boolean;
|
|
3010
3523
|
/**
|
|
3011
3524
|
* Gets the label definition for the item type, which describes how record labels are formed.
|
|
3012
3525
|
* @i2since 1.0
|
|
@@ -3585,9 +4098,15 @@ export declare namespace visual {
|
|
|
3585
4098
|
* @i2since 1.0
|
|
3586
4099
|
*/
|
|
3587
4100
|
readonly style: INodeStyle;
|
|
4101
|
+
/**
|
|
4102
|
+
* Gets all the edges that are connected to the node.
|
|
4103
|
+
* @i2since 1.1
|
|
4104
|
+
*/
|
|
4105
|
+
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3588
4106
|
/**
|
|
3589
4107
|
* Gets all the edges that are connected to the node.
|
|
3590
4108
|
* @i2since 1.0
|
|
4109
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
3591
4110
|
*/
|
|
3592
4111
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3593
4112
|
}
|