i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > chart > IFitConstraints

    chart.IFitConstraints interface

    Constraints that control a view-fitting operation.

    Signature:

    interface IFitConstraints 
    

    Introduced: version 1.1

    Remarks

    Fitting the view to a collection of elements ordinarily zooms in or out to make those elements fill the viewport. However, you might want to limit this behavior to prevent zooming in beyond a particular level.

    For example, if you fit the view to a single element, you might not want to zoom so that the element fills the viewport. If you want to focus attention on a single element without making it too large, you can set maximumZoom to 1.

    Equally, if you want to pan the chart to show a particular element but not zoom in at all, you can set maximumZoom to current.

    Properties

    Property Modifiers Type Description
    maximumZoom? number | 'current' (Optional) Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
    In this article
    Back to top © N. Harris Computer Corporation