W-CF Documentation - v11.0.0
    Preparing search index...

    Interface CameraZoomToFitOptions

    interface CameraZoomToFitOptions {
        adjustFixedTarget?: boolean;
        margin?: number;
        marginH?: number;
        minMarginPx?: number;
        minMarginPxH?: number;
        useBoundingSphere?: boolean;
    }
    Index
    adjustFixedTarget?: boolean

    if true and the camera has a fixed target, the targed will be adjusted (default: true)

    margin?: number

    margin for the zoom (range: [0, 1], default: 0.05) A value of 0.1 means a 5% border on all sides.

    marginH?: number

    horizontal margin for the zoom (range: [0, 1], default: 0.05) A value of 0.1 means a 5% border on all sides. If undefined margin will be used.

    minMarginPx?: number

    minimum margin in pixel for the zoom (default: 0) A value of 10 means a 5 pixel border on all sides.

    minMarginPxH?: number

    minimum horizontal margin in pixel for the zoom (default: 0) A value of 10 means a 5 pixel border on all sides. If undefined minMarginPx will be used.

    useBoundingSphere?: boolean

    if true the bounding spheres instead of the bounding boxes will be used for the calculation (default: false)