all files / chart3d/utils/ doubleRange.js

100% Statements 17/17
100% Branches 2/2
100% Functions 6/6
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   5136× 5112× 5112×     24× 24×       3530×           3530×           4238×              
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DoubleRange = (function () {
        function DoubleRange(start, end) {
            if (start < end) {
                this.mStart = start;
                this.mEnd = end;
            }
            else {
                this.mStart = end;
                this.mEnd = start;
            }
        }
        Object.defineProperty(DoubleRange.prototype, "start", {
            get: function () {
                return this.mStart;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(DoubleRange.prototype, "end", {
            get: function () {
                return this.mEnd;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(DoubleRange.prototype, "delta", {
            get: function () {
                return (this.mEnd - this.mStart);
            },
            enumerable: true,
            configurable: true
        });
        return DoubleRange;
    }());
    exports.DoubleRange = DoubleRange;
});