# all files / lib/utilities/ Rectangle.js

80.95% Statements 17/21
50% Branches 4/8
100% Functions 4/4
100% Lines 17/17

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    1×
    1×
    44×
    44×
    44×
    44×
    44×
    44×
    44×
    44×

    1×

    44×

    1×

    21×

    1×

    1×
    1×

     "use strict";
    var Rectangle = (function () {
        function Rectangle(left, right, top, bottom) {
            Iif (left === void 0) { left = 0; }
            Iif (right === void 0) { right = 0; }
            Iif (top === void 0) { top = 0; }
            Iif (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