UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

39 lines (37 loc) 1.14 kB
"use strict"; var Rectangle = (function () { function Rectangle(left, right, top, bottom) { if (left === void 0) { left = 0; } if (right === void 0) { right = 0; } if (top === void 0) { top = 0; } if (bottom === void 0) { bottom = 0; } this.top = top; this.bottom = bottom; this.left = left; this.right = right; } Object.defineProperty(Rectangle.prototype, "width", { /** * Calculated automatically by subtracting the right from left */ get: function () { return this.right - this.left; }, enumerable: true, configurable: true }); Object.defineProperty(Rectangle.prototype, "height", { /** * Calculated automatically by subtracting the bottom from top. */ get: function () { return this.bottom - this.top; }, enumerable: true, configurable: true }); return Rectangle; }()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Rectangle; //# sourceMappingURL=Rectangle.js.map