all files / diagram/primitives/ size.js

100% Statements 12/12
100% Branches 2/2
100% Functions 5/5
100% Lines 12/12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19   2186080× 2186080×   52×   761579×        
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var Size = (function () {
        function Size(width, height) {
            this.width = width;
            this.height = height;
        }
        Size.prototype.isEmpty = function () {
            return this.height === 0 && this.width === 0;
        };
        Size.prototype.clone = function () {
            return new Size(this.width, this.height);
        };
        return Size;
    }());
    exports.Size = Size;
});