@i2analyze/notebook-sdk 1.1.0-dev.6 → 1.1.0-dev.7
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 +6 -0
- package/lib/gen/notebook-sdk-public.d.ts +34 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -410,13 +410,43 @@ export declare namespace app {
|
|
|
410
410
|
records?: Iterable<RecordSpecifier>;
|
|
411
411
|
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
412
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
|
+
}
|
|
413
443
|
export interface IViewMutations {
|
|
414
444
|
setCenter(): void;
|
|
415
445
|
setZoom(): void;
|
|
416
|
-
fitToChart(): void;
|
|
417
|
-
fitToHeight(): void;
|
|
418
|
-
fitToSelection(): void;
|
|
419
|
-
fitToItems(items: IElementsAndRecords): void;
|
|
446
|
+
fitToChart(options?: IFitConstraints): void;
|
|
447
|
+
fitToHeight(options?: IFitConstraints): void;
|
|
448
|
+
fitToSelection(options?: IFitConstraints): void;
|
|
449
|
+
fitToItems(items: IElementsAndRecords, options?: IFitConstraints): void;
|
|
420
450
|
}
|
|
421
451
|
export interface ISelectionMutations {
|
|
422
452
|
/**
|