office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
30 lines (29 loc) • 1.45 kB
JavaScript
define(["require", "exports"], function (require, exports) {
    "use strict";
    /**
     * The possible methods that can be used to fit the image.
     */
    (function (ImageFit) {
        /**
         * The image is not scaled. The image is centered and cropped within the content box.
         */
        ImageFit[ImageFit["center"] = 0] = "center";
        /**
         * The image is scaled to maintain its aspect ratio while being fully contained within the frame. The image will
         * be centered horizontally and vertically within the frame. The space in the top and bottom or in the sides of
         * the frame will be empty depending on the difference in aspect ratio between the image and the frame.
         */
        ImageFit[ImageFit["contain"] = 1] = "contain";
        /**
         * The image is scaled to maintain its aspect ratio while filling the frame. Portions of the image will be cropped from
         * the top and bottom, or from the sides, depending on the difference in aspect ratio between the image and the frame.
         */
        ImageFit[ImageFit["cover"] = 2] = "cover";
        /**
         * Neither the image nor the frame are scaled. If their sizes do not match, the image will either be cropped or the
         * frame will have empty space.
         */
        ImageFit[ImageFit["none"] = 3] = "none";
    })(exports.ImageFit || (exports.ImageFit = {}));
    var ImageFit = exports.ImageFit;
});