all files / document-editor/implementation/utility/ size.js

83.33% Statements 10/12
0% Branches 0/2
60% Functions 3/5
83.33% Lines 10/12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19   6933× 6933×                
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;
});