all files / range-navigator/model/ range-base.js

100% Statements 92/92
100% Branches 51/51
100% Functions 19/19
100% Lines 86/86
16 statements, 6 functions, 29 branches Ignored     
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172            34× 34× 34×                                             15×                         15×                 18×                     15×                 15×                                        
/* istanbul ignore next */ 
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* istanbul ignore next */ 
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
define(["require", "exports", "@syncfusion/ej2-base", "../../common/model/base", "../../index", "../utils/theme"], function (require, exports, ej2_base_1, base_1, index_1, theme_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var RangeNavigatorSeries = (function (_super) {
        __extends(RangeNavigatorSeries, _super);
        function RangeNavigatorSeries() {
            var _this = _super !== null && _super.apply(this, arguments) || this;
            _this.clipRect = new index_1.Rect(0, 0, 0, 0);
            return _this;
        }
        __decorate([
            ej2_base_1.Property(null)
        ], RangeNavigatorSeries.prototype, "dataSource", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeNavigatorSeries.prototype, "xName", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeNavigatorSeries.prototype, "yName", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeNavigatorSeries.prototype, "query", void 0);
        __decorate([
            ej2_base_1.Property('Line')
        ], RangeNavigatorSeries.prototype, "type", void 0);
        __decorate([
            ej2_base_1.Complex({ enable: false }, base_1.Animation)
        ], RangeNavigatorSeries.prototype, "animation", void 0);
        __decorate([
            ej2_base_1.Complex({ color: 'transparent', width: 2 }, base_1.Border)
        ], RangeNavigatorSeries.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeNavigatorSeries.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], RangeNavigatorSeries.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property('0')
        ], RangeNavigatorSeries.prototype, "dashArray", void 0);
        return RangeNavigatorSeries;
    }(ej2_base_1.ChildProperty));
    exports.RangeNavigatorSeries = RangeNavigatorSeries;
    var ThumbSettings = (function (_super) {
        __extends(ThumbSettings, _super);
        function ThumbSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(null)
        ], ThumbSettings.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ThumbSettings.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Complex({ width: 1, color: null }, base_1.Border)
        ], ThumbSettings.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], ThumbSettings.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property('Circle')
        ], ThumbSettings.prototype, "type", void 0);
        return ThumbSettings;
    }(ej2_base_1.ChildProperty));
    exports.ThumbSettings = ThumbSettings;
    var StyleSettings = (function (_super) {
        __extends(StyleSettings, _super);
        function StyleSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Complex({}, ThumbSettings)
        ], StyleSettings.prototype, "thumb", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StyleSettings.prototype, "selectedRegionColor", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], StyleSettings.prototype, "unselectedRegionColor", void 0);
        return StyleSettings;
    }(ej2_base_1.ChildProperty));
    exports.StyleSettings = StyleSettings;
    var Periods = (function (_super) {
        __extends(Periods, _super);
        function Periods() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('Years')
        ], Periods.prototype, "intervalType", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], Periods.prototype, "interval", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], Periods.prototype, "text", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], Periods.prototype, "selected", void 0);
        return Periods;
    }(ej2_base_1.ChildProperty));
    exports.Periods = Periods;
    var PeriodSelectorSettings = (function (_super) {
        __extends(PeriodSelectorSettings, _super);
        function PeriodSelectorSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(43)
        ], PeriodSelectorSettings.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property('Bottom')
        ], PeriodSelectorSettings.prototype, "position", void 0);
        __decorate([
            ej2_base_1.Collection([], Periods)
        ], PeriodSelectorSettings.prototype, "periods", void 0);
        return PeriodSelectorSettings;
    }(ej2_base_1.ChildProperty));
    exports.PeriodSelectorSettings = PeriodSelectorSettings;
    var RangeTooltipSettings = (function (_super) {
        __extends(RangeTooltipSettings, _super);
        function RangeTooltipSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(false)
        ], RangeTooltipSettings.prototype, "enable", void 0);
        __decorate([
            ej2_base_1.Property(0.85)
        ], RangeTooltipSettings.prototype, "opacity", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeTooltipSettings.prototype, "fill", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeTooltipSettings.prototype, "format", void 0);
        __decorate([
            ej2_base_1.Complex(theme_1.RangeNavigatorTheme.tooltipLabelFont, base_1.Font)
        ], RangeTooltipSettings.prototype, "textStyle", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], RangeTooltipSettings.prototype, "template", void 0);
        __decorate([
            ej2_base_1.Complex({ color: '#cccccc', width: 0.5 }, base_1.Border)
        ], RangeTooltipSettings.prototype, "border", void 0);
        __decorate([
            ej2_base_1.Property('OnDemand')
        ], RangeTooltipSettings.prototype, "displayMode", void 0);
        return RangeTooltipSettings;
    }(ej2_base_1.ChildProperty));
    exports.RangeTooltipSettings = RangeTooltipSettings;
});