@maxgraph/core
    Preparing search index...

    Type Alias FitOptions

    Options of the FitPlugin.fit method.

    0.21.0

    type FitOptions = {
        border?: number;
        enabled?: boolean;
        ignoreHeight?: boolean;
        ignoreWidth?: boolean;
        keepOrigin?: boolean;
        margin?: number;
        maxHeight?: number | null;
    }
    Index

    Properties

    border?: number

    Optional number that specifies the border. @defaultGraph.getBorder

    enabled?: boolean

    Optional boolean that specifies if the scale should be set (when true) or just returned.

    true
    
    ignoreHeight?: boolean

    Optional boolean that specifies if the height should be ignored.

    false
    
    ignoreWidth?: boolean

    Optional boolean that specifies if the width should be ignored.

    false
    
    keepOrigin?: boolean

    Optional boolean that specifies if the "translate" should be changed.

    false
    
    margin?: number

    Optional margin in pixels.

    0
    
    maxHeight?: number | null

    Optional maximum height. When set to null, the height is ignored i.e. use the maximum available height within the container.

    null