@i2analyze/notebook-sdk 1.1.0-dev.12 → 1.1.0-dev.16
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 +44 -0
- package/lib/gen/notebook-sdk-public.d.ts +495 -203
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.16
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add addRecordGroup API for Prayan
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Documented when setNodeCenter mutation throws
|
|
12
|
+
- Disable documentation contribution
|
|
13
|
+
- Update the docs, samples and json schemas for the i2group organization
|
|
14
|
+
- Add documentation for ISelectionEditor exceptions.
|
|
15
|
+
- Small modifications to API documentation
|
|
16
|
+
- Update the basic sample to include an .npmrc and uses public npm
|
|
17
|
+
|
|
18
|
+
## 1.1.0-dev.15
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- Deprecate INode.connectedEdges.
|
|
23
|
+
|
|
24
|
+
## 1.1.0-dev.14
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- Rename INode.connectedEdges to INode.edges.
|
|
29
|
+
- Add IChartEntityRecord.linkRecords property.
|
|
30
|
+
|
|
31
|
+
## 1.1.0-dev.13
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- Rename TrackedMutationListener to TrackedMutationHandler
|
|
36
|
+
Rename UntrackedMutationListener to UntrackedMutationHandler
|
|
37
|
+
Rename IApplication.runTrackedMutation() to IApplication.runTrackedMutations()
|
|
38
|
+
Rename IApplication.runUntrackedMutation() to IApplication.runUntrackedMutations()
|
|
39
|
+
Rename ITrackedMutations.deleteSelectedRecords() to ITrackedMutations.removeSelectedRecords()
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Update the API signature
|
|
44
|
+
- Add documentation to APIs associated with chart modification
|
|
45
|
+
- Edit to fix the API documentation build
|
|
46
|
+
|
|
3
47
|
## 1.1.0-dev.12
|
|
4
48
|
|
|
5
49
|
### Minor Changes
|
|
@@ -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,132 +68,195 @@ 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.
|
|
73
89
|
* @i2since 1.1
|
|
74
90
|
*/
|
|
75
|
-
|
|
76
|
-
runUntrackedMutation(mutationListener: UntrackedMutationListener): void;
|
|
91
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler): void;
|
|
77
92
|
}
|
|
78
93
|
/**
|
|
79
|
-
*
|
|
94
|
+
* A report on the result of one or more mutations.
|
|
80
95
|
* @i2since 1.1
|
|
81
96
|
*/
|
|
82
97
|
export type IMutationReport = ISuccessReport | IDetailedReport;
|
|
83
98
|
/**
|
|
84
|
-
*
|
|
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.
|
|
85
101
|
* @i2since 1.1
|
|
86
102
|
*/
|
|
87
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
|
+
*/
|
|
88
108
|
type: 'success';
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets some additional information about the completed mutations.
|
|
111
|
+
* @i2since 1.1
|
|
112
|
+
*/
|
|
89
113
|
details: string;
|
|
90
114
|
}
|
|
91
115
|
/**
|
|
92
|
-
*
|
|
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.
|
|
93
118
|
* @i2since 1.1
|
|
94
119
|
*/
|
|
95
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
|
+
*/
|
|
96
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
|
+
*/
|
|
97
130
|
title: string;
|
|
131
|
+
/**
|
|
132
|
+
* Gets or sets some additional information about the mutations.
|
|
133
|
+
* @i2since 1.1
|
|
134
|
+
*/
|
|
98
135
|
details: string;
|
|
99
136
|
}
|
|
100
137
|
/**
|
|
101
|
-
*
|
|
138
|
+
* A set of information that is common to requests to commit mutations of all types.
|
|
102
139
|
* @i2since 1.1
|
|
103
140
|
*/
|
|
104
141
|
export interface IMutationCommitBase {
|
|
105
142
|
/**
|
|
106
|
-
* Gets the type of
|
|
143
|
+
* Gets or sets the type of the request, which must be `"commit"` for commit requests.
|
|
107
144
|
* @i2since 1.1
|
|
108
145
|
*/
|
|
109
146
|
type: 'commit';
|
|
110
147
|
/**
|
|
111
|
-
* Gets
|
|
148
|
+
* Gets or sets a optional report that describes the result of one or more mutations.
|
|
112
149
|
* @i2since 1.1
|
|
113
150
|
*/
|
|
114
151
|
report?: IMutationReport;
|
|
115
152
|
}
|
|
116
153
|
/**
|
|
117
|
-
*
|
|
154
|
+
* A set of information that accompanies a request to commit a set of untracked mutations.
|
|
118
155
|
* @i2since 1.1
|
|
119
156
|
*/
|
|
120
157
|
export interface IUntrackedMutationCommit extends IMutationCommitBase {
|
|
121
158
|
}
|
|
122
159
|
/**
|
|
123
|
-
*
|
|
160
|
+
* A set of information that accompanies a request to commit a set of tracked mutations.
|
|
124
161
|
* @i2since 1.1
|
|
125
162
|
*/
|
|
126
163
|
export interface ITrackedMutationCommit extends IMutationCommitBase {
|
|
127
164
|
/**
|
|
128
|
-
* 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.
|
|
129
166
|
* @i2since 1.1
|
|
130
167
|
*/
|
|
131
168
|
actionDisplayName: string;
|
|
132
169
|
}
|
|
133
170
|
/**
|
|
134
|
-
*
|
|
171
|
+
* A set of information that accompanies a request to roll back a set of mutations.
|
|
135
172
|
* @i2since 1.1
|
|
136
173
|
*/
|
|
137
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
|
+
*/
|
|
138
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
|
+
*/
|
|
139
184
|
report?: IMutationReport;
|
|
140
185
|
}
|
|
141
186
|
/**
|
|
142
|
-
*
|
|
187
|
+
* A response from a tracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
143
188
|
* @i2since 1.1
|
|
144
189
|
*/
|
|
145
190
|
export type ITrackedMutationInfo = ITrackedMutationCommit | IMutationRollback;
|
|
146
191
|
/**
|
|
147
|
-
*
|
|
192
|
+
* A response from an untracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
148
193
|
* @i2since 1.1
|
|
149
194
|
*/
|
|
150
195
|
export type IUntrackedMutationInfo = IUntrackedMutationCommit | IMutationRollback;
|
|
151
196
|
/**
|
|
152
|
-
*
|
|
197
|
+
* A function that performs untracked mutations.
|
|
198
|
+
*
|
|
153
199
|
* @remarks
|
|
154
200
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
201
|
+
*
|
|
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.
|
|
155
205
|
* @i2since 1.1
|
|
156
206
|
*/
|
|
157
|
-
export type
|
|
207
|
+
export type UntrackedMutationHandler = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IUntrackedMutationInfo | Promise<IUntrackedMutationInfo>;
|
|
158
208
|
/**
|
|
159
|
-
*
|
|
209
|
+
* A function that performs tracked mutations.
|
|
210
|
+
*
|
|
160
211
|
* @remarks
|
|
161
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.
|
|
162
217
|
* @i2since 1.1
|
|
163
218
|
*/
|
|
164
|
-
export type
|
|
219
|
+
export type TrackedMutationHandler = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
|
|
165
220
|
/**
|
|
166
|
-
*
|
|
221
|
+
* A collection of methods and properties for handling the situation when a user cancels an operation.
|
|
222
|
+
*
|
|
167
223
|
* @remarks
|
|
168
|
-
*
|
|
169
|
-
* use depending on your scenario:
|
|
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:
|
|
170
226
|
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* operation.
|
|
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.
|
|
174
229
|
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* 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.
|
|
180
234
|
*
|
|
181
|
-
*
|
|
182
|
-
* property
|
|
235
|
+
* To check synchronously if the operation has been canceled, you can inspect the `signal.aborted`
|
|
236
|
+
* property.
|
|
183
237
|
*
|
|
184
238
|
* @i2since 1.1
|
|
185
239
|
*/
|
|
186
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
|
+
*/
|
|
187
249
|
waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
|
|
188
250
|
/**
|
|
189
|
-
* Gets an `AbortSignal`
|
|
251
|
+
* Gets an `AbortSignal` that indicates whether a user has requested that an operation be canceled.
|
|
252
|
+
*
|
|
190
253
|
* @i2since 1.1
|
|
191
254
|
*/
|
|
192
255
|
signal: AbortSignal;
|
|
193
256
|
}
|
|
194
257
|
export type TODO = unknown;
|
|
195
258
|
/**
|
|
196
|
-
*
|
|
259
|
+
* A set of methods for changing a status display while an asynchronous mutation is running.
|
|
197
260
|
* @i2since 1.1
|
|
198
261
|
*/
|
|
199
262
|
export interface IStatus {
|
|
@@ -201,31 +264,79 @@ export declare namespace app {
|
|
|
201
264
|
* Sets the status message in the blocking spinner display.
|
|
202
265
|
*
|
|
203
266
|
* @remarks
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* 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.
|
|
207
269
|
*
|
|
208
270
|
* @param text - The text to display.
|
|
209
|
-
*
|
|
210
271
|
* @i2since 1.1
|
|
211
272
|
*/
|
|
212
273
|
setMessage(text: string): void;
|
|
213
274
|
}
|
|
214
275
|
/**
|
|
215
|
-
* A common specifier for a record in mutation APIs.
|
|
276
|
+
* A common specifier for a record, for use in mutation APIs.
|
|
216
277
|
* @i2since 1.1
|
|
217
278
|
*/
|
|
218
279
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
280
|
+
/**
|
|
281
|
+
* An identifier for a record group.
|
|
282
|
+
* @i2since 1.1
|
|
283
|
+
*/
|
|
284
|
+
export type AnalyzeRecordGroupId = string;
|
|
285
|
+
/**
|
|
286
|
+
* Selection options used to determine what records are selected.
|
|
287
|
+
* @remarks Supported options:
|
|
288
|
+
* - addItemsToSelection: Adds items to the selection.
|
|
289
|
+
* - setSelectionToItems: Sets the selection to the items.
|
|
290
|
+
* - setNewItemsToSelection: Sets the selection to the new items on the chart from the action.
|
|
291
|
+
* @i2since 1.1
|
|
292
|
+
*/
|
|
293
|
+
export type AnalyzeSelectionOptions = 'addItemsToSelection' | 'setSelectionToItems' | 'setNewItemsToSelection';
|
|
294
|
+
/**
|
|
295
|
+
* A set of data that is common to creating records of all types.
|
|
296
|
+
* @i2since 1.1
|
|
297
|
+
*/
|
|
219
298
|
export interface IChartRecordBaseData {
|
|
299
|
+
/**
|
|
300
|
+
* Gets or sets the item type of the new record.
|
|
301
|
+
* @i2since 1.1
|
|
302
|
+
*/
|
|
220
303
|
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
304
|
+
/**
|
|
305
|
+
* Gets or sets the properties of the new record.
|
|
306
|
+
* @i2since 1.1
|
|
307
|
+
*/
|
|
221
308
|
properties: TODO;
|
|
309
|
+
/**
|
|
310
|
+
* Gets or sets the security settings of the new record.
|
|
311
|
+
* @i2since 1.1
|
|
312
|
+
*/
|
|
222
313
|
security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
|
|
314
|
+
/**
|
|
315
|
+
* Gets or sets the notes for the new record.
|
|
316
|
+
* @i2since 1.1
|
|
317
|
+
*/
|
|
223
318
|
notes?: readonly records.INoteData[];
|
|
319
|
+
/**
|
|
320
|
+
* Gets or sets the source references of the new record.
|
|
321
|
+
* @i2since 1.1
|
|
322
|
+
*/
|
|
224
323
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
324
|
+
/**
|
|
325
|
+
* Gets or sets the source identifiers of the new record.
|
|
326
|
+
* @i2since 1.1
|
|
327
|
+
*/
|
|
225
328
|
sourceIdentifiers?: readonly records.ISourceIdentifier[];
|
|
226
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* A set of data for creating an entity record.
|
|
332
|
+
* @i2since 1.1
|
|
333
|
+
*/
|
|
227
334
|
export interface IChartEntityRecordData extends IChartRecordBaseData {
|
|
228
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* A set of data for creating a link record.
|
|
338
|
+
* @i2since 1.1
|
|
339
|
+
*/
|
|
229
340
|
export interface IChartLinkRecordData extends IChartRecordBaseData {
|
|
230
341
|
/**
|
|
231
342
|
* Gets the record at the 'from' end of the link.
|
|
@@ -247,300 +358,468 @@ export declare namespace app {
|
|
|
247
358
|
readonly linkDirection: data.LinkDirection;
|
|
248
359
|
}
|
|
249
360
|
/**
|
|
250
|
-
*
|
|
361
|
+
* A set of methods for performing tracked or untracked mutations, organized by what they affect.
|
|
251
362
|
* @i2since 1.1
|
|
252
363
|
*/
|
|
253
364
|
export interface IMutationsBase {
|
|
254
365
|
/**
|
|
255
|
-
* Gets an object that provides
|
|
366
|
+
* Gets an object that provides methods for communicating progress information to users.
|
|
256
367
|
* @i2since 1.1
|
|
257
368
|
*/
|
|
258
369
|
readonly status: IStatus;
|
|
259
370
|
/**
|
|
260
|
-
* Gets an object that provides
|
|
371
|
+
* Gets an object that provides methods for modifying chart selection.
|
|
261
372
|
* @i2since 1.1
|
|
262
373
|
*/
|
|
263
374
|
readonly selection: ISelectionEditor;
|
|
264
375
|
/**
|
|
265
|
-
* Gets an object that provides
|
|
376
|
+
* Gets an object that provides methods for modifying the chart view.
|
|
266
377
|
* @i2since 1.1
|
|
267
378
|
*/
|
|
268
379
|
readonly view: IViewEditor;
|
|
269
380
|
}
|
|
270
381
|
/**
|
|
271
|
-
*
|
|
382
|
+
* A set of methods for performing untracked mutations, which do not require an entry in the undo stack.
|
|
272
383
|
* @i2since 1.1
|
|
273
384
|
*/
|
|
274
385
|
export interface IUntrackedMutations extends IMutationsBase {
|
|
275
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* A set of methods for modifying the contents of a record.
|
|
389
|
+
* @i2since 1.1
|
|
390
|
+
*/
|
|
276
391
|
export interface IRecordEditor {
|
|
392
|
+
/**
|
|
393
|
+
* Sets properties on the record.
|
|
394
|
+
*
|
|
395
|
+
* @param properties - The properties to set.
|
|
396
|
+
* @returns This record, with the new properties in place.
|
|
397
|
+
* @i2since 1.1
|
|
398
|
+
*/
|
|
277
399
|
setProperties(properties: TODO): this;
|
|
400
|
+
/**
|
|
401
|
+
* Adds a new note to the record.
|
|
402
|
+
*
|
|
403
|
+
* @param note - The data for the new note.
|
|
404
|
+
* @returns This record, with the new note in place.
|
|
405
|
+
* @i2since 1.1
|
|
406
|
+
*/
|
|
278
407
|
addNote(note: records.INoteData): this;
|
|
408
|
+
/**
|
|
409
|
+
* Replaces an existing note on the record with a new one.
|
|
410
|
+
*
|
|
411
|
+
* @param id - The identifier of the note to replace.
|
|
412
|
+
* @param note - The data for the new note.
|
|
413
|
+
* @returns This record, with the new note in place.
|
|
414
|
+
* @i2since 1.1
|
|
415
|
+
*/
|
|
279
416
|
replaceNote(id: records.NoteId, note: records.INoteData): this;
|
|
417
|
+
/**
|
|
418
|
+
* Removes a note from the record.
|
|
419
|
+
*
|
|
420
|
+
* @param id - The identifier of the note to remove.
|
|
421
|
+
* @returns This record, without the note.
|
|
422
|
+
* @i2since 1.1
|
|
423
|
+
*/
|
|
280
424
|
removeNote(id: records.NoteId): this;
|
|
425
|
+
/**
|
|
426
|
+
* Adds a new source reference to the record.
|
|
427
|
+
*
|
|
428
|
+
* @param ref - The data for the new source reference.
|
|
429
|
+
* @returns This record, with the new source reference in place.
|
|
430
|
+
* @i2since 1.1
|
|
431
|
+
*/
|
|
281
432
|
addSourceReference(ref: records.ISourceReferenceData): this;
|
|
433
|
+
/**
|
|
434
|
+
* Replaces an existing source reference on the record with a new one.
|
|
435
|
+
*
|
|
436
|
+
* @param id - The identifier of the source reference to replace.
|
|
437
|
+
* @param ref - The data for the new source reference.
|
|
438
|
+
* @returns This record, with the new source reference in place.
|
|
439
|
+
* @i2since 1.1
|
|
440
|
+
*/
|
|
282
441
|
replaceSourceReference(id: records.SourceReferenceId, ref: records.ISourceReferenceData): this;
|
|
442
|
+
/**
|
|
443
|
+
* Removes a source reference from the record.
|
|
444
|
+
*
|
|
445
|
+
* @param id - The identifier of the source reference to remove.
|
|
446
|
+
* @returns This record, without the source reference.
|
|
447
|
+
* @i2since 1.1
|
|
448
|
+
*/
|
|
283
449
|
removeSourceReference(id: records.SourceReferenceId): this;
|
|
450
|
+
/**
|
|
451
|
+
* Replaces the record's security settings with a new set.
|
|
452
|
+
* @param security - The new security settings.
|
|
453
|
+
* @returns This record, with the new security settings in place.
|
|
454
|
+
* @i2since 1.1
|
|
455
|
+
*/
|
|
284
456
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
285
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* A record that has been created in a transaction handler, but has not yet been added to a chart.
|
|
460
|
+
* @i2since 1.1
|
|
461
|
+
*/
|
|
286
462
|
export interface IPendingRecord extends IRecordEditor {
|
|
463
|
+
/**
|
|
464
|
+
* Gets or sets the identifier of the record.
|
|
465
|
+
* @i2since 1.1
|
|
466
|
+
*/
|
|
287
467
|
recordId: records.AnalyzeRecordId;
|
|
288
468
|
}
|
|
289
469
|
/**
|
|
290
|
-
*
|
|
470
|
+
* A set of utility functions for creating property and other values that can be reused across records.
|
|
291
471
|
* @i2since 1.1
|
|
292
472
|
*/
|
|
293
473
|
export interface IValueFactory {
|
|
294
474
|
/**
|
|
295
|
-
* Creates a
|
|
475
|
+
* Creates a security setting that you can use to configure record security.
|
|
476
|
+
*
|
|
477
|
+
* @remarks
|
|
478
|
+
* You can use the same security setting to configure the security of several records.
|
|
479
|
+
*
|
|
480
|
+
* @param data - The data for the new security setting.
|
|
481
|
+
* @returns The new security setting.
|
|
482
|
+
* @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
|
|
296
483
|
* @i2since 1.1
|
|
297
|
-
* @param data - The values to populate the new {@link records.ISecuritySetting} with.
|
|
298
|
-
* @returns A new {@link records.ISecuritySetting} object.
|
|
299
|
-
* @throws `Error` if the dimension or values did not exist in the security schema.
|
|
300
484
|
*/
|
|
301
485
|
createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
|
|
302
486
|
/**
|
|
303
|
-
* Creates a
|
|
487
|
+
* Creates a decimal value from a number or a string.
|
|
304
488
|
*
|
|
305
|
-
* @param value - The number or
|
|
306
|
-
* @returns
|
|
307
|
-
* @throws `Error` if the value was `NaN`, too large to
|
|
489
|
+
* @param value - The number or string to initialize the decimal value from.
|
|
490
|
+
* @returns The new decimal value.
|
|
491
|
+
* @throws `Error` if the value was `NaN`, or too large to be a decimal, or an invalid string.
|
|
308
492
|
* @i2since 1.1
|
|
309
493
|
*/
|
|
310
494
|
createDecimal(value: number | string): data.IDecimal;
|
|
311
495
|
/**
|
|
312
|
-
* Creates a local date object (
|
|
313
|
-
*
|
|
314
|
-
* @param
|
|
315
|
-
* @param
|
|
316
|
-
* @
|
|
496
|
+
* Creates a local date object (that does not have a time or a time zone) from year/month/day information.
|
|
497
|
+
*
|
|
498
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
499
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
500
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
501
|
+
* @returns The new local date object.
|
|
317
502
|
* @i2since 1.1
|
|
318
503
|
*/
|
|
319
504
|
createLocalDate(year: number, month: number, day: number): data.ILocalDate;
|
|
320
505
|
/**
|
|
321
|
-
* Creates a local date object (
|
|
322
|
-
*
|
|
323
|
-
* @
|
|
506
|
+
* Creates a local date object (that does not have a time or a time zone) from a JavaScript `Date` object.
|
|
507
|
+
*
|
|
508
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date values are used.
|
|
509
|
+
* @returns The new local date object.
|
|
324
510
|
* @i2since 1.1
|
|
325
511
|
*/
|
|
326
512
|
createLocalDate(jsDate: Date): data.ILocalDate;
|
|
327
513
|
/**
|
|
328
|
-
* Creates a local date object (
|
|
329
|
-
*
|
|
330
|
-
* @
|
|
331
|
-
* @
|
|
514
|
+
* Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
|
|
515
|
+
*
|
|
516
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date.
|
|
517
|
+
* @returns The new local date object.
|
|
518
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
332
519
|
* @i2since 1.1
|
|
333
520
|
*/
|
|
334
521
|
createLocalDate(iso8601: string): data.ILocalDate;
|
|
335
522
|
/**
|
|
336
|
-
* Creates a local time object (
|
|
337
|
-
*
|
|
338
|
-
* @param
|
|
339
|
-
* @param
|
|
340
|
-
* @param
|
|
341
|
-
* @
|
|
523
|
+
* Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
|
|
524
|
+
*
|
|
525
|
+
* @param hour - The hour of the day (0-23).
|
|
526
|
+
* @param minute - The minutes of the hour (0-59).
|
|
527
|
+
* @param second - The seconds of the minute (0-59).
|
|
528
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
529
|
+
* @returns The new local time object.
|
|
342
530
|
* @i2since 1.1
|
|
343
531
|
*/
|
|
344
532
|
createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
|
|
345
533
|
/**
|
|
346
|
-
* Creates a local time object (
|
|
347
|
-
*
|
|
348
|
-
* @
|
|
534
|
+
* Creates a local time object (that does not have a date or a time zone) from a JavaScript `Date` object.
|
|
535
|
+
*
|
|
536
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) time values are used.
|
|
537
|
+
* @returns The new local time object.
|
|
349
538
|
* @i2since 1.1
|
|
350
539
|
*/
|
|
351
540
|
createLocalTime(jsDate: Date): data.ILocalTime;
|
|
352
541
|
/**
|
|
353
|
-
* Creates a local time object (
|
|
354
|
-
*
|
|
355
|
-
* @
|
|
356
|
-
* @
|
|
542
|
+
* 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').
|
|
543
|
+
*
|
|
544
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the time.
|
|
545
|
+
* @returns The new local time object.
|
|
546
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
357
547
|
* @i2since 1.1
|
|
358
548
|
*/
|
|
359
549
|
createLocalTime(iso8601: string): data.ILocalTime;
|
|
360
550
|
/**
|
|
361
|
-
* Creates a local date-time object (
|
|
362
|
-
*
|
|
363
|
-
* @param
|
|
364
|
-
* @param
|
|
365
|
-
* @param
|
|
366
|
-
* @param
|
|
367
|
-
* @param
|
|
368
|
-
* @param
|
|
369
|
-
* @
|
|
551
|
+
* Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
|
|
552
|
+
*
|
|
553
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
554
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
555
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
556
|
+
* @param hour - The hour of the day (0-23).
|
|
557
|
+
* @param minute - The minutes of the hour (0-59).
|
|
558
|
+
* @param second - The seconds of the minute (0-59).
|
|
559
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
560
|
+
* @returns The new local date-time object.
|
|
370
561
|
* @i2since 1.1
|
|
371
562
|
*/
|
|
372
563
|
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
|
|
373
564
|
/**
|
|
374
|
-
* Creates a local date-time object (
|
|
375
|
-
*
|
|
376
|
-
* @
|
|
565
|
+
* Creates a local date-time object (that does not have a time zone) from a JavaScript `Date` object.
|
|
566
|
+
*
|
|
567
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date and time values are used.
|
|
568
|
+
* @returns The new local date-time object.
|
|
377
569
|
* @i2since 1.1
|
|
378
570
|
*/
|
|
379
571
|
createLocalDateTime(jsDate: Date): data.ILocalDateTime;
|
|
380
572
|
/**
|
|
381
|
-
* Creates a local date-time object (
|
|
573
|
+
* Creates a local date-time object (that does not have a time zone) from a local date and a local time object.
|
|
574
|
+
*
|
|
382
575
|
* @param date - A local date.
|
|
383
576
|
* @param time - A local time.
|
|
384
|
-
* @returns
|
|
577
|
+
* @returns The new local date-time object.
|
|
385
578
|
* @i2since 1.1
|
|
386
579
|
*/
|
|
387
580
|
createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
|
|
388
581
|
/**
|
|
389
|
-
* Creates a local date-time object (
|
|
390
|
-
*
|
|
391
|
-
* @
|
|
392
|
-
* @
|
|
582
|
+
* 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').
|
|
583
|
+
*
|
|
584
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
585
|
+
* @returns The new local date-time object.
|
|
586
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
393
587
|
* @i2since 1.1
|
|
394
588
|
*/
|
|
395
589
|
createLocalDateTime(iso8601: string): data.ILocalDateTime;
|
|
396
590
|
/**
|
|
397
|
-
* Creates a
|
|
591
|
+
* Creates a date-time object that has a time zone from a local date, a local time, and a time zone.
|
|
592
|
+
*
|
|
398
593
|
* @param date - A local date.
|
|
399
594
|
* @param time - A local time.
|
|
400
|
-
* @param timeZone - A time zone or time zone
|
|
401
|
-
* @param isDst -
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
* @
|
|
595
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
596
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
597
|
+
*
|
|
598
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
599
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
600
|
+
* @returns The new date-time object.
|
|
601
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
406
602
|
* @i2since 1.1
|
|
407
603
|
*/
|
|
408
604
|
createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
409
605
|
/**
|
|
410
|
-
* Creates a
|
|
411
|
-
*
|
|
412
|
-
* @param
|
|
413
|
-
* @param
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
606
|
+
* Creates a date-time object that has a time zone from a local date-time (or a JavaScript `Date` object) and a time zone.
|
|
607
|
+
*
|
|
608
|
+
* @param dateTime - A local date-time, or a JavaScript `Date`.
|
|
609
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
610
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
611
|
+
*
|
|
612
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
613
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
614
|
+
* @returns The new date-time object.
|
|
615
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
418
616
|
* @i2since 1.1
|
|
419
617
|
*/
|
|
420
618
|
createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
421
619
|
/**
|
|
422
|
-
* Creates a
|
|
423
|
-
*
|
|
424
|
-
* @param
|
|
425
|
-
* @param
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* @
|
|
620
|
+
* 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.
|
|
621
|
+
*
|
|
622
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
623
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
624
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
625
|
+
*
|
|
626
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
627
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
628
|
+
* @returns The new date-time object.
|
|
629
|
+
* @throws `Error` if the string was not in valid ISO 8601 format, or `timeZone` did not specify a valid time zone.
|
|
431
630
|
* @i2since 1.1
|
|
432
631
|
*/
|
|
433
|
-
createZonedDateTime(
|
|
632
|
+
createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
434
633
|
/**
|
|
435
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
634
|
+
* Creates a {@link data.IGeoPoint} object from a pair of latitude and longitude values.
|
|
635
|
+
*
|
|
636
|
+
* @param latitude - The latitude of the geospatial position, in the range from -90 to +90 degrees.
|
|
637
|
+
* @param longitude - The longitude of the geospatial position, in the range from -180 to 180 degrees.
|
|
638
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
639
|
+
* @throws `Error` if either the latitude or the longitude was out of range.
|
|
436
640
|
* @i2since 1.1
|
|
437
|
-
* @param latitude - The latitude [-90 to +90] of the point.
|
|
438
|
-
* @param longitude - The longitude [-180 to +180] of the point.
|
|
439
|
-
* @returns A {@link data.IGeoPoint}.
|
|
440
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
441
641
|
*/
|
|
442
642
|
createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
|
|
443
643
|
/**
|
|
444
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
644
|
+
* Creates a {@link data.IGeoPoint} object from a {@link data.IGeoPointData} object.
|
|
645
|
+
*
|
|
646
|
+
* @param data - A set of data that specifies the geospatial position.
|
|
647
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
648
|
+
* @throws `Error` if the specified data was out of range or otherwise not valid.
|
|
445
649
|
* @i2since 1.1
|
|
446
|
-
* @param data - An object containing the latitude [-90 to +90] and longitude [-180 to +180] of the point.
|
|
447
|
-
* @returns A {@link data.IGeoPoint}.
|
|
448
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
449
650
|
*/
|
|
450
651
|
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
451
652
|
}
|
|
452
653
|
/**
|
|
453
|
-
*
|
|
654
|
+
* A set of methods for performing tracked mutations, which require an entry in the undo stack.
|
|
454
655
|
* @i2since 1.1
|
|
455
656
|
*/
|
|
456
657
|
export interface ITrackedMutations extends IMutationsBase {
|
|
658
|
+
/**
|
|
659
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
660
|
+
* @i2since 1.1
|
|
661
|
+
*/
|
|
457
662
|
readonly valueFactory: IValueFactory;
|
|
663
|
+
/**
|
|
664
|
+
* Creates an entity record that will be added to the chart when the mutation is committed.
|
|
665
|
+
*
|
|
666
|
+
* @param recordTemplate - The data from which to create the record.
|
|
667
|
+
* @param hints - A TODO.
|
|
668
|
+
* @returns The new, "pending" record.
|
|
669
|
+
* @i2since 1.1
|
|
670
|
+
*/
|
|
458
671
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
672
|
+
/**
|
|
673
|
+
* Creates a link record that will be added to the chart when the mutation is committed.
|
|
674
|
+
*
|
|
675
|
+
* @param recordTemplate - The data from which to create the record.
|
|
676
|
+
* @param hints - A TODO.
|
|
677
|
+
* @returns The new, "pending" record.
|
|
678
|
+
* @i2since 1.1
|
|
679
|
+
*/
|
|
459
680
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
681
|
+
/**
|
|
682
|
+
* Adds an existing record group to the chart using a specified record group identifier.
|
|
683
|
+
*
|
|
684
|
+
* @param recordGroupId - The record group identifier to be used.
|
|
685
|
+
* @param selectionOption - A set of options used to define how the items are selected when added to the chart.
|
|
686
|
+
* @i2since 1.1
|
|
687
|
+
*/
|
|
688
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: AnalyzeSelectionOptions): void;
|
|
689
|
+
/**
|
|
690
|
+
* Gets an object with methods for editing a record.
|
|
691
|
+
*
|
|
692
|
+
* @param record - The record to be edited.
|
|
693
|
+
* @returns The record-editing object.
|
|
694
|
+
* @i2since 1.1
|
|
695
|
+
*/
|
|
460
696
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
697
|
+
/**
|
|
698
|
+
* Removes a record from the chart.
|
|
699
|
+
*
|
|
700
|
+
* @param record - The record to be removed.
|
|
701
|
+
* @i2since 1.1
|
|
702
|
+
*/
|
|
461
703
|
removeRecord(record: RecordSpecifier): void;
|
|
704
|
+
/**
|
|
705
|
+
* Moves a node to a particular location on the chart.
|
|
706
|
+
*
|
|
707
|
+
* @param node - The node to be moved.
|
|
708
|
+
* @param position - The location to move the node to.
|
|
709
|
+
* @throws `Error` if the node cannot be found on the chart, if either of the position coordinates aren't finite numbers.
|
|
710
|
+
* @i2since 1.1
|
|
711
|
+
*/
|
|
462
712
|
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
713
|
+
/**
|
|
714
|
+
* Moves all the nodes that contain selected records by the same displacement.
|
|
715
|
+
*
|
|
716
|
+
* @param centerDelta - The displacement on the x and y axes, in chart coordinates.
|
|
717
|
+
* @i2since 1.1
|
|
718
|
+
*/
|
|
463
719
|
moveSelectedNodesRelative(centerDelta: {
|
|
464
720
|
xDelta: number;
|
|
465
721
|
yDelta: number;
|
|
466
722
|
}): void;
|
|
467
723
|
/**
|
|
468
|
-
*
|
|
724
|
+
* Removes the selected records from the chart.
|
|
469
725
|
* @i2since 1.1
|
|
470
726
|
*/
|
|
471
|
-
|
|
727
|
+
removeSelectedRecords(): void;
|
|
472
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* A collection of elements and records that together represent a selection on the chart surface.
|
|
731
|
+
* @i2since 1.1
|
|
732
|
+
*/
|
|
473
733
|
export interface IElementsAndRecords {
|
|
734
|
+
/**
|
|
735
|
+
* Gets or sets the records in the set.
|
|
736
|
+
* @i2since 1.1
|
|
737
|
+
*/
|
|
474
738
|
records?: Iterable<RecordSpecifier>;
|
|
739
|
+
/**
|
|
740
|
+
* Gets or sets the elements in the set.
|
|
741
|
+
* @i2since 1.1
|
|
742
|
+
*/
|
|
475
743
|
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
476
744
|
}
|
|
477
745
|
/**
|
|
478
|
-
* A
|
|
746
|
+
* A set of methods that change the chart view.
|
|
479
747
|
* @i2since 1.1
|
|
480
748
|
*/
|
|
481
749
|
export interface IViewEditor {
|
|
482
750
|
/**
|
|
483
|
-
* Sets the
|
|
484
|
-
*
|
|
751
|
+
* Sets the location on the chart that appears in the center of the viewport, and the zoom level.
|
|
752
|
+
*
|
|
753
|
+
* @param viewport - The new position and zoom level of the chart in the viewport.
|
|
485
754
|
* @i2since 1.1
|
|
486
755
|
*/
|
|
487
756
|
setViewport(viewport: chart.IViewportData): void;
|
|
488
757
|
/**
|
|
489
|
-
* Adjusts the
|
|
490
|
-
*
|
|
758
|
+
* Adjusts the position and zoom of the chart so that all elements on it are visible.
|
|
759
|
+
*
|
|
760
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
491
761
|
* @i2since 1.1
|
|
492
762
|
*/
|
|
493
763
|
fitToChart(options?: chart.IFitConstraints): void;
|
|
494
764
|
/**
|
|
495
|
-
* Adjusts the
|
|
496
|
-
*
|
|
765
|
+
* Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
|
|
766
|
+
*
|
|
767
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
497
768
|
* @i2since 1.1
|
|
498
769
|
*/
|
|
499
770
|
fitToHeight(options?: chart.IFitConstraints): void;
|
|
500
771
|
/**
|
|
501
|
-
* Adjusts the
|
|
502
|
-
*
|
|
772
|
+
* Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
|
|
773
|
+
*
|
|
774
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
503
775
|
* @i2since 1.1
|
|
504
776
|
*/
|
|
505
777
|
fitToSelection(options?: chart.IFitConstraints): void;
|
|
506
778
|
/**
|
|
507
|
-
* Adjusts the
|
|
508
|
-
*
|
|
509
|
-
* @param
|
|
779
|
+
* Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
|
|
780
|
+
*
|
|
781
|
+
* @param items - The elements to make visible, and the records whose containing elements are to be visible.
|
|
782
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
510
783
|
* @i2since 1.1
|
|
511
784
|
*/
|
|
512
785
|
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
|
|
513
786
|
}
|
|
514
787
|
/**
|
|
515
|
-
* A
|
|
788
|
+
* A set of methods that can change the chart selection.
|
|
516
789
|
* @i2since 1.1
|
|
517
790
|
*/
|
|
518
791
|
export interface ISelectionEditor {
|
|
519
792
|
/**
|
|
520
|
-
* Selects all records on the chart.
|
|
793
|
+
* Selects all the records on the chart.
|
|
521
794
|
* @i2since 1.1
|
|
522
795
|
*/
|
|
523
796
|
selectAll(): void;
|
|
524
797
|
/**
|
|
525
|
-
* Clears the chart selection.
|
|
798
|
+
* Clears the chart selection, so that no records are selected.
|
|
526
799
|
* @i2since 1.1
|
|
527
800
|
*/
|
|
528
801
|
clear(): void;
|
|
529
802
|
/**
|
|
530
|
-
* Replaces the chart selection with one
|
|
531
|
-
*
|
|
803
|
+
* Replaces the chart selection with one that contains the specified records.
|
|
804
|
+
*
|
|
805
|
+
* @param records - The records to use in the new selection.
|
|
806
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
532
807
|
* @i2since 1.1
|
|
533
808
|
*/
|
|
534
809
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
535
810
|
/**
|
|
536
|
-
* Adds
|
|
537
|
-
*
|
|
811
|
+
* Adds the specified records to the chart selection.
|
|
812
|
+
*
|
|
813
|
+
* @param records - The records to add to the selection.
|
|
814
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
538
815
|
* @i2since 1.1
|
|
539
816
|
*/
|
|
540
817
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
541
818
|
/**
|
|
542
|
-
* Removes
|
|
543
|
-
*
|
|
819
|
+
* Removes the specified records from the chart selection.
|
|
820
|
+
*
|
|
821
|
+
* @param records - The records to remove from the selection.
|
|
822
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
544
823
|
* @i2since 1.1
|
|
545
824
|
*/
|
|
546
825
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -590,7 +869,7 @@ export declare namespace app {
|
|
|
590
869
|
removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
|
|
591
870
|
}
|
|
592
871
|
/**
|
|
593
|
-
* A callback function that performs work on the application or its contents.
|
|
872
|
+
* A callback function that performs read-only work on the application or its contents.
|
|
594
873
|
*
|
|
595
874
|
* @remarks
|
|
596
875
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
@@ -972,24 +1251,19 @@ export declare namespace chart {
|
|
|
972
1251
|
readonly zoomScale: number;
|
|
973
1252
|
}
|
|
974
1253
|
/**
|
|
975
|
-
*
|
|
976
|
-
*
|
|
1254
|
+
* A set of data that defines a viewport.
|
|
977
1255
|
* @i2since 1.1
|
|
978
1256
|
*/
|
|
979
1257
|
export interface IViewportData {
|
|
980
1258
|
/**
|
|
981
|
-
* Gets or sets the
|
|
982
|
-
*
|
|
983
|
-
* @see {@link chart.IChartView#center}.
|
|
984
|
-
*
|
|
1259
|
+
* Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
|
|
1260
|
+
* See also {@link chart.IChartView#zoomScale}.
|
|
985
1261
|
* @i2since 1.1
|
|
986
1262
|
*/
|
|
987
1263
|
zoomScale?: number;
|
|
988
1264
|
/**
|
|
989
|
-
* Gets or sets the
|
|
990
|
-
*
|
|
991
|
-
* @see {@link chart.IChartView#zoomScale}.
|
|
992
|
-
*
|
|
1265
|
+
* Gets or sets the position of the center of the viewport, in chart coordinates.
|
|
1266
|
+
* See also {@link chart.IChartView#center}.
|
|
993
1267
|
* @i2since 1.1
|
|
994
1268
|
*/
|
|
995
1269
|
center?: visual.IPosition;
|
|
@@ -1062,25 +1336,24 @@ export declare namespace chart {
|
|
|
1062
1336
|
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1063
1337
|
/**
|
|
1064
1338
|
* Constraints that control a view-fitting operation.
|
|
1339
|
+
*
|
|
1065
1340
|
* @remarks
|
|
1066
|
-
* Fitting the view to a collection of
|
|
1067
|
-
*
|
|
1341
|
+
* Fitting the view to a collection of elements ordinarily zooms in or out to make those
|
|
1342
|
+
* elements fill the viewport. However, you might want to limit this behavior to prevent
|
|
1068
1343
|
* zooming in beyond a particular level.
|
|
1069
1344
|
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
* so if you want to focus attention on a single element without making it overly large, you may want
|
|
1074
|
-
* to limit the `maximumZoom` level to `1`.
|
|
1345
|
+
* For example, if you fit the view to a single element, you might not want to zoom so that
|
|
1346
|
+
* the element fills the viewport. If you want to focus attention on a single element without
|
|
1347
|
+
* making it too large, you can set `maximumZoom` to `1`.
|
|
1075
1348
|
*
|
|
1076
|
-
*
|
|
1077
|
-
* `maximumZoom` to `current`.
|
|
1349
|
+
* Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
|
|
1350
|
+
* you can set `maximumZoom` to `current`.
|
|
1078
1351
|
*
|
|
1079
1352
|
* @i2since 1.1
|
|
1080
1353
|
*/
|
|
1081
1354
|
export interface IFitConstraints {
|
|
1082
1355
|
/**
|
|
1083
|
-
* Gets a value that controls the maximum zoom level
|
|
1356
|
+
* Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
|
|
1084
1357
|
* @i2since 1.1
|
|
1085
1358
|
*/
|
|
1086
1359
|
maximumZoom?: number | 'current';
|
|
@@ -1351,11 +1624,11 @@ export declare namespace commands {
|
|
|
1351
1624
|
*/
|
|
1352
1625
|
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1353
1626
|
/**
|
|
1354
|
-
* Locates the area of the user interface that appears immediately before
|
|
1627
|
+
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1355
1628
|
*
|
|
1356
|
-
* @param command - The
|
|
1629
|
+
* @param command - The surfaced command to use as a reference.
|
|
1357
1630
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1358
|
-
* @throws `Error` if
|
|
1631
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1359
1632
|
* @i2since 1.1
|
|
1360
1633
|
*/
|
|
1361
1634
|
before(command: ICommand): IActionArea<undefined>;
|
|
@@ -1369,11 +1642,11 @@ export declare namespace commands {
|
|
|
1369
1642
|
*/
|
|
1370
1643
|
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1371
1644
|
/**
|
|
1372
|
-
* Locates the area of the user interface that appears immediately after
|
|
1645
|
+
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1373
1646
|
*
|
|
1374
|
-
* @param command - The
|
|
1647
|
+
* @param command - The surfaced command to use as a reference.
|
|
1375
1648
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1376
|
-
* @throws `Error` if
|
|
1649
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1377
1650
|
* @i2since 1.1
|
|
1378
1651
|
*/
|
|
1379
1652
|
after(command: ICommand): IActionArea<undefined>;
|
|
@@ -1726,7 +1999,7 @@ export declare namespace commands {
|
|
|
1726
1999
|
*/
|
|
1727
2000
|
export interface IHomeTabSystemGroups {
|
|
1728
2001
|
/**
|
|
1729
|
-
* Gets the identifier of the system action group named "
|
|
2002
|
+
* Gets the identifier of the system action group named "Manage".
|
|
1730
2003
|
* @i2since 1.1
|
|
1731
2004
|
*/
|
|
1732
2005
|
readonly chartManagement: GroupId;
|
|
@@ -1994,17 +2267,17 @@ export declare namespace data {
|
|
|
1994
2267
|
readonly longitude: number;
|
|
1995
2268
|
}
|
|
1996
2269
|
/**
|
|
1997
|
-
*
|
|
2270
|
+
* A set of data for creating a geospatial position.
|
|
1998
2271
|
* @i2since 1.1
|
|
1999
2272
|
*/
|
|
2000
2273
|
export interface IGeoPointData {
|
|
2001
2274
|
/**
|
|
2002
|
-
* Gets the latitude of the position, in degrees north.
|
|
2275
|
+
* Gets the latitude of the new position, in degrees north.
|
|
2003
2276
|
* @i2since 1.1
|
|
2004
2277
|
*/
|
|
2005
2278
|
readonly latitude: number;
|
|
2006
2279
|
/**
|
|
2007
|
-
* Gets the longitude of the position, in degrees east.
|
|
2280
|
+
* Gets the longitude of the new position, in degrees east.
|
|
2008
2281
|
* @i2since 1.1
|
|
2009
2282
|
*/
|
|
2010
2283
|
readonly longitude: number;
|
|
@@ -2736,6 +3009,11 @@ export declare namespace records {
|
|
|
2736
3009
|
* @i2since 1.0
|
|
2737
3010
|
*/
|
|
2738
3011
|
readonly itemType: schema.IChartEntityType;
|
|
3012
|
+
/**
|
|
3013
|
+
* Gets all the link records that are connected to the entity record.
|
|
3014
|
+
* @i2since 1.1
|
|
3015
|
+
*/
|
|
3016
|
+
readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
|
|
2739
3017
|
}
|
|
2740
3018
|
/**
|
|
2741
3019
|
* A link record.
|
|
@@ -2772,10 +3050,14 @@ export declare namespace records {
|
|
|
2772
3050
|
*/
|
|
2773
3051
|
export type NoteId = string;
|
|
2774
3052
|
/**
|
|
2775
|
-
*
|
|
3053
|
+
* A set of data for creating a note.
|
|
2776
3054
|
* @i2since 1.1
|
|
2777
3055
|
*/
|
|
2778
3056
|
export interface INoteData {
|
|
3057
|
+
/**
|
|
3058
|
+
* Gets the contents of the new note.
|
|
3059
|
+
* @i2since 1.1
|
|
3060
|
+
*/
|
|
2779
3061
|
readonly contents: string;
|
|
2780
3062
|
}
|
|
2781
3063
|
/**
|
|
@@ -2873,32 +3155,32 @@ export declare namespace records {
|
|
|
2873
3155
|
readonly imageUrl?: string;
|
|
2874
3156
|
}
|
|
2875
3157
|
/**
|
|
2876
|
-
*
|
|
3158
|
+
* A set of data for creating a source reference.
|
|
2877
3159
|
* @i2since 1.1
|
|
2878
3160
|
*/
|
|
2879
3161
|
export interface ISourceReferenceData {
|
|
2880
3162
|
/**
|
|
2881
|
-
* Gets the name of the source that the source reference describes.
|
|
3163
|
+
* Gets the name of the source that the new source reference describes.
|
|
2882
3164
|
* @i2since 1.1
|
|
2883
3165
|
*/
|
|
2884
3166
|
readonly name: string;
|
|
2885
3167
|
/**
|
|
2886
|
-
* Gets the type of the source that the source reference describes.
|
|
3168
|
+
* Gets the type of the source that the new source reference describes.
|
|
2887
3169
|
* @i2since 1.1
|
|
2888
3170
|
*/
|
|
2889
3171
|
readonly type?: string;
|
|
2890
3172
|
/**
|
|
2891
|
-
* Gets the location of the source that the source reference describes.
|
|
3173
|
+
* Gets the location of the source that the new source reference describes.
|
|
2892
3174
|
* @i2since 1.1
|
|
2893
3175
|
*/
|
|
2894
3176
|
readonly location?: string;
|
|
2895
3177
|
/**
|
|
2896
|
-
* Gets the description of the source that the source reference describes.
|
|
3178
|
+
* Gets the description of the source that the new source reference describes.
|
|
2897
3179
|
* @i2since 1.1
|
|
2898
3180
|
*/
|
|
2899
3181
|
readonly description?: string;
|
|
2900
3182
|
/**
|
|
2901
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
3183
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
2902
3184
|
* @i2since 1.1
|
|
2903
3185
|
*/
|
|
2904
3186
|
readonly imageUrl?: string;
|
|
@@ -2920,17 +3202,17 @@ export declare namespace records {
|
|
|
2920
3202
|
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
2921
3203
|
}
|
|
2922
3204
|
/**
|
|
2923
|
-
*
|
|
3205
|
+
* A set of data for creating a security setting.
|
|
2924
3206
|
* @i2since 1.1
|
|
2925
3207
|
*/
|
|
2926
3208
|
export interface ISecuritySettingData {
|
|
2927
3209
|
/**
|
|
2928
|
-
* Gets or sets the dimension for the new
|
|
3210
|
+
* Gets or sets the security dimension for the new security setting.
|
|
2929
3211
|
* @i2since 1.1
|
|
2930
3212
|
*/
|
|
2931
3213
|
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
2932
3214
|
/**
|
|
2933
|
-
* Gets or sets the values for the new
|
|
3215
|
+
* Gets or sets the dimension values for the new security setting.
|
|
2934
3216
|
* @i2since 1.1
|
|
2935
3217
|
*/
|
|
2936
3218
|
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
@@ -2944,7 +3226,7 @@ export declare namespace records {
|
|
|
2944
3226
|
*/
|
|
2945
3227
|
export interface ISourceIdentifier {
|
|
2946
3228
|
/**
|
|
2947
|
-
* Gets the type of
|
|
3229
|
+
* Gets the type of the source identifier.
|
|
2948
3230
|
* @i2since 1.0
|
|
2949
3231
|
*/
|
|
2950
3232
|
readonly type: string;
|
|
@@ -2954,15 +3236,19 @@ export declare namespace records {
|
|
|
2954
3236
|
*/
|
|
2955
3237
|
readonly key: string[];
|
|
2956
3238
|
}
|
|
3239
|
+
/**
|
|
3240
|
+
* A set of data for creating a source identifier.
|
|
3241
|
+
* @i2since 1.1
|
|
3242
|
+
*/
|
|
2957
3243
|
export interface ISourceIdentifierData {
|
|
2958
3244
|
/**
|
|
2959
|
-
* Gets the type of
|
|
2960
|
-
* @i2since 1.
|
|
3245
|
+
* Gets the type of the new source identifier.
|
|
3246
|
+
* @i2since 1.1
|
|
2961
3247
|
*/
|
|
2962
3248
|
readonly type: string;
|
|
2963
3249
|
/**
|
|
2964
|
-
* Gets the values that make up the source identifier key.
|
|
2965
|
-
* @i2since 1.
|
|
3250
|
+
* Gets the values that make up the new source identifier key.
|
|
3251
|
+
* @i2since 1.1
|
|
2966
3252
|
*/
|
|
2967
3253
|
readonly key: string[];
|
|
2968
3254
|
}
|
|
@@ -3043,7 +3329,7 @@ export declare namespace schema {
|
|
|
3043
3329
|
*/
|
|
3044
3330
|
readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
|
|
3045
3331
|
/**
|
|
3046
|
-
* Gets the
|
|
3332
|
+
* Gets the security dimension values to apply to new records by default.
|
|
3047
3333
|
* @i2since 1.1
|
|
3048
3334
|
*/
|
|
3049
3335
|
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
|
|
@@ -3785,9 +4071,15 @@ export declare namespace visual {
|
|
|
3785
4071
|
* @i2since 1.0
|
|
3786
4072
|
*/
|
|
3787
4073
|
readonly style: INodeStyle;
|
|
4074
|
+
/**
|
|
4075
|
+
* Gets all the edges that are connected to the node.
|
|
4076
|
+
* @i2since 1.1
|
|
4077
|
+
*/
|
|
4078
|
+
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3788
4079
|
/**
|
|
3789
4080
|
* Gets all the edges that are connected to the node.
|
|
3790
4081
|
* @i2since 1.0
|
|
4082
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
3791
4083
|
*/
|
|
3792
4084
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3793
4085
|
}
|