@i2analyze/notebook-sdk 1.1.0-dev.4 → 1.1.0-dev.8
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 +30 -0
- package/lib/gen/notebook-sdk-public.d.ts +47 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.8
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Merged view.setCenter and view.setZoom into view.setViewport.
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.7
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add options to fit commands.
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.6
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Split records + elements in fitToItems API.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Add an example of specifying several servers in a CSP directive
|
|
24
|
+
- Small changes to source code links
|
|
25
|
+
|
|
26
|
+
## 1.1.0-dev.5
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- Correct the details type from 'string' to string
|
|
31
|
+
- Add code sample links to the tutorials documentation.
|
|
32
|
+
|
|
3
33
|
## 1.1.0-dev.4
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -78,7 +78,7 @@ export declare namespace app {
|
|
|
78
78
|
export type IMutationReport = ISuccessReport | IDetailedReport;
|
|
79
79
|
export interface ISuccessReport {
|
|
80
80
|
type: 'success';
|
|
81
|
-
details:
|
|
81
|
+
details: string;
|
|
82
82
|
}
|
|
83
83
|
export interface IDetailedReport {
|
|
84
84
|
type: 'information' | 'warning' | 'error';
|
|
@@ -406,14 +406,53 @@ export declare namespace app {
|
|
|
406
406
|
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
407
407
|
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
408
408
|
}
|
|
409
|
+
export interface IElementsAndRecords {
|
|
410
|
+
records?: Iterable<RecordSpecifier>;
|
|
411
|
+
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Constraints that control a view-fitting operation.
|
|
415
|
+
* @remarks
|
|
416
|
+
* Fitting the view to a collection of items will ordinarily zoom in or out to make those
|
|
417
|
+
* items fill the viewport. Sometimes, however, you may wish to limit this behavior to prevent
|
|
418
|
+
* zooming in or out beyond a particular level.
|
|
419
|
+
*
|
|
420
|
+
* Examples:
|
|
421
|
+
*
|
|
422
|
+
* You may not want a single element to fill the entire viewport, so if you want to focus
|
|
423
|
+
* attention on a single element without making it large, you may want to limit the `maximumZoom` level to
|
|
424
|
+
* `1`.
|
|
425
|
+
*
|
|
426
|
+
* You may wish to pan the chart to show a particular element but not change the zoom level _at all_: set
|
|
427
|
+
* both `minimumZoom` and `maximumZoom` to `current`.
|
|
428
|
+
*
|
|
429
|
+
* @i2since 1.1
|
|
430
|
+
*/
|
|
431
|
+
export interface IFitConstraints {
|
|
432
|
+
/**
|
|
433
|
+
* Gets a value that controls the minimum zoom level that may be applied when performing a fit operation.
|
|
434
|
+
* @i2since 1.1
|
|
435
|
+
*/
|
|
436
|
+
minimumZoom?: number | 'current';
|
|
437
|
+
/**
|
|
438
|
+
* Gets a value that controls the maximum zoom level that may be applied when performing a fit operation.
|
|
439
|
+
* @i2since 1.1
|
|
440
|
+
*/
|
|
441
|
+
maximumZoom?: number | 'current';
|
|
442
|
+
}
|
|
443
|
+
export interface ISetViewportZoom {
|
|
444
|
+
zoomScale: number;
|
|
445
|
+
}
|
|
446
|
+
export interface ISetViewportCenter {
|
|
447
|
+
center: visual.IPosition;
|
|
448
|
+
}
|
|
449
|
+
export type ISetViewportCenterAndZoom = ISetViewportCenter & ISetViewportZoom;
|
|
409
450
|
export interface IViewMutations {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
fitToItems(items: Iterable<RecordSpecifier | visual.ElementId | visual.IElement>): void;
|
|
416
|
-
fitToItems(...items: readonly (RecordSpecifier | visual.ElementId | visual.IElement)[]): void;
|
|
451
|
+
setViewport(viewport: ISetViewportCenter | ISetViewportZoom | ISetViewportCenterAndZoom): void;
|
|
452
|
+
fitToChart(options?: IFitConstraints): void;
|
|
453
|
+
fitToHeight(options?: IFitConstraints): void;
|
|
454
|
+
fitToSelection(options?: IFitConstraints): void;
|
|
455
|
+
fitToItems(items: IElementsAndRecords, options?: IFitConstraints): void;
|
|
417
456
|
}
|
|
418
457
|
export interface ISelectionMutations {
|
|
419
458
|
/**
|