"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Image_1 = require("office-ui-fabric-react/lib/Image");
var Label_1 = require("office-ui-fabric-react/lib/Label");
var ImageContainExample = /** @class */ (function (_super) {
    tslib_1.__extends(ImageContainExample, _super);
    function ImageContainExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ImageContainExample.prototype.render = function () {
        var imageProps = {
            src: 'http://placehold.it/700x300',
            imageFit: Image_1.ImageFit.contain
        };
        return (React.createElement("div", null,
            React.createElement("p", null, "Setting the imageFit property to \"contain\" will scale the image up or down to fit the frame, while maintaining its natural aspect ratio and without cropping the image."),
            React.createElement(Label_1.Label, null, "The image has a wider aspect ratio (more landscape) than the frame, so the image is scaled to fit the width and centered in the available vertical space."),
            React.createElement(Image_1.Image, tslib_1.__assign({}, imageProps, { alt: "Example implementation of the property image fit using the contain value on an image wider than the frame.", width: 200, height: 200 })),
            React.createElement("br", null),
            React.createElement(Label_1.Label, null, "The image has a taller aspect ratio (more portrait) than the frame, so the image is scaled to fit the height and centered in the available horizontal space."),
            React.createElement(Image_1.Image, tslib_1.__assign({}, imageProps, { alt: "Example implementation of the property image fit using the contain value on an image taller than the frame.", width: 300, height: 50 }))));
    };
    return ImageContainExample;
}(React.Component));
exports.ImageContainExample = ImageContainExample;
//# sourceMappingURL=Image.Contain.Example.js.map